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
39 changes: 39 additions & 0 deletions packages/cost/providers/gonkabroker/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
*
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs
*/

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

export const costs: ModelRow[] = [
{
model: {
operator: "equals",
value: "MiniMaxAI/MiniMax-M2.7",
},
cost: {
prompt_token: 0.0000003,
completion_token: 0.0000003,
},
},
{
model: {
operator: "equals",
value: "moonshotai/Kimi-K2.6",
},
cost: {
prompt_token: 0.00000035,
completion_token: 0.00000035,
},
},
{
model: {
operator: "equals",
value: "deepseek-ai/DeepSeek-V4-Flash-0731",
},
cost: {
prompt_token: 0.00000025,
completion_token: 0.00000025,
},
},
];
10 changes: 10 additions & 0 deletions packages/cost/providers/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { costs as nvidiaCosts } from "./nvidia";
import { costs as cohereCosts } from "./cohere";
import { costs as deepseekCosts } from "./deepseek";
import { costs as fireworksAICosts } from "./fireworks";
import { costs as gonkabrokerCosts } from "./gonkabroker";
import { costs as groqCosts } from "./groq";
import { costs as mistralCosts } from "./mistral";
import { costs as nebiusCosts } from "./nebius";
Expand Down Expand Up @@ -82,6 +83,9 @@ const vercelGateway = /^https:\/\/ai-gateway\.vercel\.sh/;
// https://api.novita.ai
const novita = /^https:\/\/api\.novita\.ai/;

// https://proxy.gonkabroker.com
const gonkabroker = /^https:\/\/proxy\.gonkabroker\.com/;

// api.openpipe.ai
const openpipe = /^https:\/\/api\.openpipe\.ai/;

Expand Down Expand Up @@ -132,6 +136,7 @@ export const providersNames = [
"CEREBRAS",
"BASETEN",
"CANOPYWAVE",
"GONKABROKER",
] as const;

export type ProviderName = (typeof providersNames)[number];
Expand Down Expand Up @@ -301,6 +306,11 @@ export const providers: {
provider: "NOVITA",
costs: novitaCosts,
},
{
pattern: gonkabroker,
provider: "GONKABROKER",
costs: gonkabrokerCosts,
},
{
pattern: openpipe,
provider: "OPENPIPE",
Expand Down