Skip to content

feat(cost): add Cerebras inference pricing for all models#5618

Open
nspady wants to merge 1 commit intoHelicone:mainfrom
nspady:feat/cerebras-model-pricing
Open

feat(cost): add Cerebras inference pricing for all models#5618
nspady wants to merge 1 commit intoHelicone:mainfrom
nspady:feat/cerebras-model-pricing

Conversation

@nspady
Copy link

@nspady nspady commented Mar 3, 2026

Summary

Adds cost tracking for all four Cerebras inference models. Previously, the Cerebras provider entry in mappings.ts had an empty costs array, so all Cerebras requests showed $0.00 in the dashboard.

Pricing

Per Cerebras pricing page (Developer tier):

Model Speed Input Output
llama3.1-8b ~2200 tok/s $0.10/1M $0.10/1M
gpt-oss-120b ~3000 tok/s $0.35/1M $0.75/1M
qwen-3-235b-a22b-instruct-2507 ~1400 tok/s $0.60/1M $1.20/1M
zai-glm-4.7 ~1000 tok/s $2.25/1M $2.75/1M

Note: qwen-3-235b-a22b-instruct-2507 and zai-glm-4.7 are preview models.

Changes

Legacy cost entry (providers/cerebras/index.ts)

New file with ModelRow entries for all four Cerebras models using exact model IDs from the Cerebras API.

Provider mapping (providers/mappings.ts)

Replaced empty costs: [] with costs: cerebrasCosts for the existing Cerebras provider pattern.

Adds cost tracking for all four Cerebras inference models:

| Model | Input | Output |
|---|---|---|
| Llama 3.1 8B | $0.10/1M | $0.10/1M |
| GPT OSS 120B | $0.35/1M | $0.75/1M |
| Qwen 3 235B Instruct | $0.60/1M | $1.20/1M |
| Z.ai GLM 4.7 | $2.25/1M | $2.75/1M |

Pricing per https://www.cerebras.ai/pricing (Developer tier).

Previously, the Cerebras provider entry in mappings.ts had an empty
costs array, so all Cerebras requests showed $0.00 in the dashboard.
@vercel
Copy link

vercel bot commented Mar 3, 2026

@nspady is attempting to deploy a commit to the Helicone Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant