Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions packages/cost/providers/cerebras/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
*
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs
*/

import { ModelRow } from "../../interfaces/Cost";

export const costs: ModelRow[] = [
{
model: {
operator: "equals",
value: "llama3.1-8b",
},
cost: {
prompt_token: 0.0000001, // $0.10/1M tokens
completion_token: 0.0000001, // $0.10/1M tokens
},
},
{
model: {
operator: "equals",
value: "gpt-oss-120b",
},
cost: {
prompt_token: 0.00000035, // $0.35/1M tokens
completion_token: 0.00000075, // $0.75/1M tokens
},
},
{
model: {
operator: "equals",
value: "qwen-3-235b-a22b-instruct-2507",
},
cost: {
prompt_token: 0.0000006, // $0.60/1M tokens
completion_token: 0.0000012, // $1.20/1M tokens
},
},
{
model: {
operator: "equals",
value: "zai-glm-4.7",
},
cost: {
prompt_token: 0.00000225, // $2.25/1M tokens
completion_token: 0.00000275, // $2.75/1M tokens
},
},
];
3 changes: 2 additions & 1 deletion packages/cost/providers/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { costs as awsNovaCosts } from "./aws/awsNova";
import { costs as azureCosts } from "./azure";
import { costs as llamaCosts } from "./llama";
import { costs as nvidiaCosts } from "./nvidia";
import { costs as cerebrasCosts } from "./cerebras";
import { costs as cohereCosts } from "./cohere";
import { costs as deepseekCosts } from "./deepseek";
import { costs as fireworksAICosts } from "./fireworks";
Expand Down Expand Up @@ -319,7 +320,7 @@ export const providers: {
{
pattern: cerebras,
provider: "CEREBRAS",
costs: [],
costs: cerebrasCosts,
},
{
pattern: canopywave,
Expand Down