diff --git a/bun.lock b/bun.lock index 54496708..6957acb9 100644 --- a/bun.lock +++ b/bun.lock @@ -33,7 +33,7 @@ }, "apps/agent": { "name": "@shumai/agent-app", - "version": "0.2.3", + "version": "0.3.2", "bin": { "shumai-agent": "./src/index.ts", }, @@ -45,7 +45,7 @@ }, "apps/cli": { "name": "@shumai/cli", - "version": "0.2.3", + "version": "0.3.2", "bin": { "shumai-cli": "./src/index.ts", }, @@ -60,7 +60,7 @@ }, "apps/transcode": { "name": "@shumai/transcode-app", - "version": "0.2.3", + "version": "0.3.2", "bin": { "shumai-transcode": "./src/index.ts", }, @@ -72,7 +72,7 @@ }, "apps/web": { "name": "@shumai/web-app", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@shumai/agent": "workspace:*", "@shumai/api": "workspace:*", @@ -92,7 +92,7 @@ }, "packages/agent": { "name": "@shumai/agent", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@anthropic-ai/sandbox-runtime": "0.0.66", "@earendil-works/pi-agent-core": "0.78.0", @@ -117,7 +117,7 @@ }, "packages/api": { "name": "@shumai/api", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@hono/zod-validator": "0.7.6", "@shumai/core": "workspace:*", @@ -131,9 +131,10 @@ }, "packages/core": { "name": "@shumai/core", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@earendil-works/pi-agent-core": "0.78.0", + "@earendil-works/pi-ai": "0.82.1", "@shumai/db": "workspace:*", "@shumai/dtos": "workspace:*", "@sinclair/typebox": "0.34.49", @@ -162,7 +163,7 @@ }, "packages/db": { "name": "@shumai/db", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@earendil-works/pi-agent-core": "0.78.0", "@prisma/adapter-pg": "7.8.0", @@ -178,7 +179,7 @@ }, "packages/dtos": { "name": "@shumai/dtos", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@earendil-works/pi-agent-core": "0.78.0", "zod": "4.4.3", @@ -186,7 +187,7 @@ }, "packages/e2e": { "name": "@shumai/e2e", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@earendil-works/pi-agent-core": "0.78.0", "@google/genai": "1.52.0", @@ -201,11 +202,11 @@ }, "packages/tableprinter": { "name": "@shumai/tableprinter", - "version": "0.2.3", + "version": "0.3.2", }, "packages/transcode": { "name": "@shumai/transcode", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@shumai/core": "workspace:*", "@shumai/db": "workspace:*", @@ -219,7 +220,7 @@ }, "packages/webui": { "name": "@shumai/webui", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@base-ui/react": "1.5.0", "@dnd-kit/abstract": "0.4.0", @@ -317,7 +318,7 @@ }, "packages/workflow-core": { "name": "@shumai/workflow-core", - "version": "0.2.3", + "version": "0.3.2", "dependencies": { "@shumai/core": "workspace:*", "@shumai/db": "workspace:*", @@ -3038,6 +3039,8 @@ "@reduxjs/toolkit/immer": ["immer@11.1.8", "", {}, "sha512-/tbkHMW7y10Lx6i1crLjD4/OhNkRG+Fo7byZHtah0547nIeXYcpIXaUh0IAQY6gO5459qpGGYapcEOHtFXkIuA=="], + "@shumai/core/@earendil-works/pi-ai": ["@earendil-works/pi-ai@0.82.1", "", { "dependencies": { "@anthropic-ai/sdk": "0.91.1", "@aws-sdk/client-bedrock-runtime": "3.1048.0", "@google/genai": "1.52.0", "@mistralai/mistralai": "2.2.6", "@opentelemetry/api": "1.9.0", "@smithy/node-http-handler": "4.7.3", "http-proxy-agent": "7.0.2", "https-proxy-agent": "7.0.6", "openai": "6.26.0", "partial-json": "0.1.7", "typebox": "1.1.38" }, "bin": { "pi-ai": "dist/cli.js" } }, "sha512-3WFYRhEp3lQB3444EhPMBcM7zSaEUE3eJgHOR7s4081NLqbw/FsWilIKWXSua0Gv3sRr7m9xMidR3pPDE7jI/A=="], + "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.10.0", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.1", "tslib": "^2.4.0" }, "bundled": true }, "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw=="], "@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.10.0", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA=="], diff --git a/package.json b/package.json index 55eb1d32..d4400691 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "db:migrate": "bun run prisma migrate dev", "db:deploy": "bun run prisma migrate deploy", "db:generate": "cd packages/db && bunx prisma generate", - "generate-providers": "bun run scripts/generate-builtin-providers.ts", "worker:agent": "bun apps/agent/src/index.ts", "worker:transcode": "bun apps/transcode/src/index.ts", "build": "bun run build.ts", diff --git a/packages/core/package.json b/packages/core/package.json index fad6e1e3..4d50bdef 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,6 +7,7 @@ "types": "./src/index.ts", "dependencies": { "@earendil-works/pi-agent-core": "0.78.0", + "@earendil-works/pi-ai": "0.82.1", "@shumai/db": "workspace:*", "@shumai/dtos": "workspace:*", "@sinclair/typebox": "0.34.49", diff --git a/packages/core/src/generated/providers.generated.ts b/packages/core/src/generated/providers.generated.ts deleted file mode 100644 index fbe68ef4..00000000 --- a/packages/core/src/generated/providers.generated.ts +++ /dev/null @@ -1,80 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -import { providerConfig as openai } from './providers/openai' -import { providerConfig as anthropic } from './providers/anthropic' -import { providerConfig as google } from './providers/google' -import { providerConfig as deepseek } from './providers/deepseek' -import { providerConfig as groq } from './providers/groq' -import { providerConfig as openrouter } from './providers/openrouter' -import { providerConfig as mistral } from './providers/mistral' -import { providerConfig as amazonBedrock } from './providers/amazon-bedrock' -import { providerConfig as antLing } from './providers/ant-ling' -import { providerConfig as azureOpenaiResponses } from './providers/azure-openai-responses' -import { providerConfig as cerebras } from './providers/cerebras' -import { providerConfig as cloudflareAiGateway } from './providers/cloudflare-ai-gateway' -import { providerConfig as cloudflareWorkersAi } from './providers/cloudflare-workers-ai' -import { providerConfig as fireworks } from './providers/fireworks' -import { providerConfig as githubCopilot } from './providers/github-copilot' -import { providerConfig as googleVertex } from './providers/google-vertex' -import { providerConfig as huggingface } from './providers/huggingface' -import { providerConfig as kimiCoding } from './providers/kimi-coding' -import { providerConfig as minimax } from './providers/minimax' -import { providerConfig as minimaxCn } from './providers/minimax-cn' -import { providerConfig as moonshotai } from './providers/moonshotai' -import { providerConfig as moonshotaiCn } from './providers/moonshotai-cn' -import { providerConfig as nvidia } from './providers/nvidia' -import { providerConfig as openaiCodex } from './providers/openai-codex' -import { providerConfig as opencode } from './providers/opencode' -import { providerConfig as opencodeGo } from './providers/opencode-go' -import { providerConfig as qwenTokenPlan } from './providers/qwen-token-plan' -import { providerConfig as qwenTokenPlanCn } from './providers/qwen-token-plan-cn' -import { providerConfig as together } from './providers/together' -import { providerConfig as vercelAiGateway } from './providers/vercel-ai-gateway' -import { providerConfig as xai } from './providers/xai' -import { providerConfig as xiaomi } from './providers/xiaomi' -import { providerConfig as xiaomiTokenPlanAms } from './providers/xiaomi-token-plan-ams' -import { providerConfig as xiaomiTokenPlanCn } from './providers/xiaomi-token-plan-cn' -import { providerConfig as xiaomiTokenPlanSgp } from './providers/xiaomi-token-plan-sgp' -import { providerConfig as zai } from './providers/zai' -import { providerConfig as zaiCodingCn } from './providers/zai-coding-cn' - -export const builtinProviders: Record = { - openai, - anthropic, - google, - deepseek, - groq, - openrouter, - mistral, - "amazon-bedrock": amazonBedrock, - "ant-ling": antLing, - "azure-openai-responses": azureOpenaiResponses, - cerebras, - "cloudflare-ai-gateway": cloudflareAiGateway, - "cloudflare-workers-ai": cloudflareWorkersAi, - fireworks, - "github-copilot": githubCopilot, - "google-vertex": googleVertex, - huggingface, - "kimi-coding": kimiCoding, - minimax, - "minimax-cn": minimaxCn, - moonshotai, - "moonshotai-cn": moonshotaiCn, - nvidia, - "openai-codex": openaiCodex, - opencode, - "opencode-go": opencodeGo, - "qwen-token-plan": qwenTokenPlan, - "qwen-token-plan-cn": qwenTokenPlanCn, - together, - "vercel-ai-gateway": vercelAiGateway, - xai, - xiaomi, - "xiaomi-token-plan-ams": xiaomiTokenPlanAms, - "xiaomi-token-plan-cn": xiaomiTokenPlanCn, - "xiaomi-token-plan-sgp": xiaomiTokenPlanSgp, - zai, - "zai-coding-cn": zaiCodingCn, -} as unknown as Record diff --git a/packages/core/src/generated/providers/amazon-bedrock.ts b/packages/core/src/generated/providers/amazon-bedrock.ts deleted file mode 100644 index ed688924..00000000 --- a/packages/core/src/generated/providers/amazon-bedrock.ts +++ /dev/null @@ -1,2157 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "amazon-bedrock" -export const providerConfig = { - "name": "amazon-bedrock", - "config": { - "api": "bedrock-converse-stream", - "baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com", - "apiKey": "" - }, - "models": [ - { - "modelId": "amazon.nova-2-lite-v1:0", - "name": "Nova 2 Lite", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.33, - "output": 2.75, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon.nova-lite-v1:0", - "name": "Nova Lite", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 8192, - "cost": { - "input": 0.06, - "output": 0.24, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon.nova-micro-v1:0", - "name": "Nova Micro", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.035, - "output": 0.14, - "cacheRead": 0.00875, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon.nova-pro-v1:0", - "name": "Nova Pro", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 8192, - "cost": { - "input": 0.8, - "output": 3.2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "anthropic.claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "anthropic.claude-opus-4-1-20250805-v1:0", - "name": "Claude Opus 4.1", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "anthropic.claude-opus-4-5-20251101-v1:0", - "name": "Claude Opus 4.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic.claude-opus-4-6-v1", - "name": "Claude Opus 4.6", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic.claude-opus-4-7", - "name": "Claude Opus 4.7", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic.claude-sonnet-4-6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "au.anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5 (AU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "au.anthropic.claude-opus-4-6-v1", - "name": "AU Anthropic Claude Opus 4.6", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 16.5, - "output": 82.5, - "cacheRead": 1.65, - "cacheWrite": 20.625 - } - } - }, - { - "modelId": "au.anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8 (AU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "au.anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5 (AU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "au.anthropic.claude-sonnet-4-6", - "name": "AU Anthropic Claude Sonnet 4.6", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 3.3, - "output": 16.5, - "cacheRead": 0.33, - "cacheWrite": 4.125 - } - } - }, - { - "modelId": "au.anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5 (AU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "deepseek.r1-v1:0", - "name": "DeepSeek-R1", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 32768, - "cost": { - "input": 1.35, - "output": 5.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek.v3-v1:0", - "name": "DeepSeek-V3.1", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 81920, - "cost": { - "input": 0.58, - "output": 1.68, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek.v3.2", - "name": "DeepSeek-V3.2", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 81920, - "cost": { - "input": 0.62, - "output": 1.85, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "eu.anthropic.claude-fable-5", - "name": "Claude Fable 5 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 11, - "output": 55, - "cacheRead": 1.1, - "cacheWrite": 13.75 - } - } - }, - { - "modelId": "eu.anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1.1, - "output": 5.5, - "cacheRead": 0.11, - "cacheWrite": 1.375 - } - } - }, - { - "modelId": "eu.anthropic.claude-opus-4-5-20251101-v1:0", - "name": "Claude Opus 4.5 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5.5, - "output": 27.5, - "cacheRead": 0.55, - "cacheWrite": 6.875 - } - } - }, - { - "modelId": "eu.anthropic.claude-opus-4-6-v1", - "name": "Claude Opus 4.6 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5.5, - "output": 27.5, - "cacheRead": 0.55, - "cacheWrite": 6.875 - } - } - }, - { - "modelId": "eu.anthropic.claude-opus-4-7", - "name": "Claude Opus 4.7 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5.5, - "output": 27.5, - "cacheRead": 0.55, - "cacheWrite": 6.875 - } - } - }, - { - "modelId": "eu.anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5.5, - "output": 27.5, - "cacheRead": 0.55, - "cacheWrite": 6.875 - } - } - }, - { - "modelId": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3.3, - "output": 16.5, - "cacheRead": 0.33, - "cacheWrite": 4.125 - } - } - }, - { - "modelId": "eu.anthropic.claude-sonnet-4-6", - "name": "Claude Sonnet 4.6 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3.3, - "output": 16.5, - "cacheRead": 0.33, - "cacheWrite": 4.125 - } - } - }, - { - "modelId": "eu.anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5 (EU)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2.2, - "output": 11, - "cacheRead": 0.22, - "cacheWrite": 2.75 - } - } - }, - { - "modelId": "global.anthropic.claude-fable-5", - "name": "Claude Fable 5 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "global.anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "global.anthropic.claude-opus-4-5-20251101-v1:0", - "name": "Claude Opus 4.5 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "global.anthropic.claude-opus-4-6-v1", - "name": "Claude Opus 4.6 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "global.anthropic.claude-opus-4-7", - "name": "Claude Opus 4.7 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "global.anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "global.anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "global.anthropic.claude-sonnet-4-6", - "name": "Claude Sonnet 4.6 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "global.anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5 (Global)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "google.gemma-3-27b-it", - "name": "Google Gemma 3 27B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 202752, - "maxTokens": 8192, - "cost": { - "input": 0.12, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google.gemma-3-4b-it", - "name": "Gemma 3 4B IT", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.04, - "output": 0.08, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "jp.anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "jp.anthropic.claude-opus-4-7", - "name": "Claude Opus 4.7 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "jp.anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "jp.anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "jp.anthropic.claude-sonnet-4-6", - "name": "Claude Sonnet 4.6 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "jp.anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5 (JP)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "meta.llama3-1-70b-instruct-v1:0", - "name": "Llama 3.1 70B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.72, - "output": 0.72, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta.llama3-1-8b-instruct-v1:0", - "name": "Llama 3.1 8B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.22, - "output": 0.22, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta.llama3-3-70b-instruct-v1:0", - "name": "Llama 3.3 70B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.72, - "output": 0.72, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta.llama4-maverick-17b-instruct-v1:0", - "name": "Llama 4 Maverick 17B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 16384, - "cost": { - "input": 0.24, - "output": 0.97, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta.llama4-scout-17b-instruct-v1:0", - "name": "Llama 4 Scout 17B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 3500000, - "maxTokens": 16384, - "cost": { - "input": 0.17, - "output": 0.66, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax.minimax-m2", - "name": "MiniMax M2", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204608, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax.minimax-m2.1", - "name": "MiniMax M2.1", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax.minimax-m2.5", - "name": "MiniMax M2.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 98304, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.devstral-2-123b", - "name": "Devstral 2 123B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 8192, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.magistral-small-2509", - "name": "Magistral Small 1.2", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 40000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.ministral-3-14b-instruct", - "name": "Ministral 14B 3.0", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.2, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.ministral-3-3b-instruct", - "name": "Ministral 3 3B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 8192, - "cost": { - "input": 0.1, - "output": 0.1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.ministral-3-8b-instruct", - "name": "Ministral 3 8B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.mistral-large-3-675b-instruct", - "name": "Mistral Large 3", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 8192, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.pixtral-large-2502-v1:0", - "name": "Pixtral Large (25.02)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.voxtral-mini-3b-2507", - "name": "Voxtral Mini 3B 2507", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.04, - "output": 0.04, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral.voxtral-small-24b-2507", - "name": "Voxtral Small 24B 2507", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32000, - "maxTokens": 8192, - "cost": { - "input": 0.15, - "output": 0.35, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshot.kimi-k2-thinking", - "name": "Kimi K2 Thinking", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262143, - "maxTokens": 16000, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai.kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262143, - "maxTokens": 16000, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia.nemotron-nano-12b-v2", - "name": "NVIDIA Nemotron Nano 12B v2 VL BF16", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.2, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia.nemotron-nano-3-30b", - "name": "NVIDIA Nemotron Nano 3 30B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.06, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia.nemotron-nano-9b-v2", - "name": "NVIDIA Nemotron Nano 9B v2", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.06, - "output": 0.23, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia.nemotron-super-3-120b", - "name": "NVIDIA Nemotron 3 Super 120B A12B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.15, - "output": 0.65, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.75, - "output": 16.5, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5.5, - "output": 33, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "openai.gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "openai.gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "openai.gpt-oss-120b", - "name": "gpt-oss-120b", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-oss-120b-1:0", - "name": "gpt-oss-120b", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-oss-20b", - "name": "gpt-oss-20b", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.07, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-oss-20b-1:0", - "name": "gpt-oss-20b", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.07, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-oss-safeguard-120b", - "name": "GPT OSS Safeguard 120B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai.gpt-oss-safeguard-20b", - "name": "GPT OSS Safeguard 20B", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.07, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-235b-a22b-2507-v1:0", - "name": "Qwen3 235B A22B 2507", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.22, - "output": 0.88, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-32b-v1:0", - "name": "Qwen3 32B (dense)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 16384, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-coder-30b-a3b-v1:0", - "name": "Qwen3 Coder 30B A3B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-coder-480b-a35b-v1:0", - "name": "Qwen3 Coder 480B A35B Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.22, - "output": 1.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-coder-next", - "name": "Qwen3 Coder Next", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.22, - "output": 1.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-next-80b-a3b", - "name": "Qwen/Qwen3-Next-80B-A3B-Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 0.14, - "output": 1.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen.qwen3-vl-235b-a22b", - "name": "Qwen/Qwen3-VL-235B-A22B-Instruct", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 0.3, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "us.anthropic.claude-fable-5", - "name": "Claude Fable 5 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "us.anthropic.claude-haiku-4-5-20251001-v1:0", - "name": "Claude Haiku 4.5 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "us.anthropic.claude-opus-4-1-20250805-v1:0", - "name": "Claude Opus 4.1 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "us.anthropic.claude-opus-4-5-20251101-v1:0", - "name": "Claude Opus 4.5 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "us.anthropic.claude-opus-4-6-v1", - "name": "Claude Opus 4.6 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "us.anthropic.claude-opus-4-7", - "name": "Claude Opus 4.7 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "us.anthropic.claude-opus-4-8", - "name": "Claude Opus 4.8 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "us.anthropic.claude-sonnet-4-5-20250929-v1:0", - "name": "Claude Sonnet 4.5 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "us.anthropic.claude-sonnet-4-6", - "name": "Claude Sonnet 4.6 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "us.anthropic.claude-sonnet-5", - "name": "Claude Sonnet 5 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "us.deepseek.r1-v1:0", - "name": "DeepSeek-R1 (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 32768, - "cost": { - "input": 1.35, - "output": 5.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "us.meta.llama4-maverick-17b-instruct-v1:0", - "name": "Llama 4 Maverick 17B Instruct (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 16384, - "cost": { - "input": 0.24, - "output": 0.97, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "us.meta.llama4-scout-17b-instruct-v1:0", - "name": "Llama 4 Scout 17B Instruct (US)", - "config": { - "api": "bedrock-converse-stream", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 3500000, - "maxTokens": 16384, - "cost": { - "input": 0.17, - "output": 0.66, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "writer.palmyra-x4-v1:0", - "name": "Palmyra X4", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 122880, - "maxTokens": 8192, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "writer.palmyra-x5-v1:0", - "name": "Palmyra X5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1040000, - "maxTokens": 8192, - "cost": { - "input": 0.6, - "output": 6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai.grok-4.3", - "name": "Grok 4.3", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai.glm-4.7", - "name": "GLM-4.7", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai.glm-4.7-flash", - "name": "GLM-4.7-Flash", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0.07, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai.glm-5", - "name": "GLM-5", - "config": { - "api": "bedrock-converse-stream", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 101376, - "cost": { - "input": 1, - "output": 3.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/ant-ling.ts b/packages/core/src/generated/providers/ant-ling.ts deleted file mode 100644 index 3eea76ac..00000000 --- a/packages/core/src/generated/providers/ant-ling.ts +++ /dev/null @@ -1,71 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "ant-ling" -export const providerConfig = { - "name": "ant-ling", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.ant-ling.com/v1", - "apiKey": "" - }, - "models": [ - { - "modelId": "Ling-2.6-1T", - "name": "Ling 2.6 1T", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.06, - "output": 0.25, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Ling-2.6-flash", - "name": "Ling 2.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.01, - "output": 0.02, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Ring-2.6-1T", - "name": "Ring 2.6 1T", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.06, - "output": 0.25, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/anthropic.ts b/packages/core/src/generated/providers/anthropic.ts deleted file mode 100644 index 317a02ad..00000000 --- a/packages/core/src/generated/providers/anthropic.ts +++ /dev/null @@ -1,294 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "anthropic" -export const providerConfig = { - "name": "anthropic", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://api.anthropic.com", - "apiKey": "ANTHROPIC_API_KEY" - }, - "models": [ - { - "modelId": "claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "claude-haiku-4-5", - "name": "Claude Haiku 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "claude-haiku-4-5-20251001", - "name": "Claude Haiku 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "claude-opus-4-1", - "name": "Claude Opus 4.1 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-opus-4-1-20250805", - "name": "Claude Opus 4.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-opus-4-5", - "name": "Claude Opus 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-5-20251101", - "name": "Claude Opus 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-6", - "name": "Claude Opus 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-7", - "name": "Claude Opus 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-8", - "name": "Claude Opus 4.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-sonnet-4-5", - "name": "Claude Sonnet 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-5-20250929", - "name": "Claude Sonnet 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/azure-openai-responses.ts b/packages/core/src/generated/providers/azure-openai-responses.ts deleted file mode 100644 index ffc6cc50..00000000 --- a/packages/core/src/generated/providers/azure-openai-responses.ts +++ /dev/null @@ -1,932 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "azure-openai-responses" -export const providerConfig = { - "name": "azure-openai-responses", - "config": { - "api": "azure-openai-responses", - "baseUrl": "", - "apiKey": "AZURE_OPENAI_API_KEY" - }, - "models": [ - { - "modelId": "gpt-4", - "name": "GPT-4", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 8192, - "maxTokens": 8192, - "cost": { - "input": 30, - "output": 60, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4-turbo", - "name": "GPT-4 Turbo", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1", - "name": "GPT-4.1", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1-mini", - "name": "GPT-4.1 mini", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1-nano", - "name": "GPT-4.1 nano", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o", - "name": "GPT-4o", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-05-13", - "name": "GPT-4o (2024-05-13)", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 5, - "output": 15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-08-06", - "name": "GPT-4o (2024-08-06)", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-11-20", - "name": "GPT-4o (2024-11-20)", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-mini", - "name": "GPT-4o mini", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5", - "name": "GPT-5", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-chat-latest", - "name": "GPT-5 Chat Latest", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-codex", - "name": "GPT-5-Codex", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-mini", - "name": "GPT-5 Mini", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-nano", - "name": "GPT-5 Nano", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.05, - "output": 0.4, - "cacheRead": 0.005, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-pro", - "name": "GPT-5 Pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 15, - "output": 120, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1", - "name": "GPT-5.1", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-chat-latest", - "name": "GPT-5.1 Chat", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex", - "name": "GPT-5.1 Codex", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-max", - "name": "GPT-5.1 Codex Max", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-mini", - "name": "GPT-5.1 Codex mini", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2", - "name": "GPT-5.2", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-chat-latest", - "name": "GPT-5.2 Chat", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-codex", - "name": "GPT-5.2 Codex", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-pro", - "name": "GPT-5.2 Pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 21, - "output": 168, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-chat-latest", - "name": "GPT-5.3 Chat (latest)", - "config": { - "api": "azure-openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex", - "name": "GPT-5.3 Codex", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex-spark", - "name": "GPT-5.3 Codex Spark", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 32000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-mini", - "name": "GPT-5.4 mini", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-nano", - "name": "GPT-5.4 nano", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-pro", - "name": "GPT-5.4 Pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5-pro", - "name": "GPT-5.5 Pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "gpt-realtime-2.1", - "name": "GPT-Realtime-2.1", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 32000, - "cost": { - "input": 4, - "output": 24, - "cacheRead": 0.4, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o1", - "name": "o1", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 15, - "output": 60, - "cacheRead": 7.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o1-pro", - "name": "o1-pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 150, - "output": 600, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3", - "name": "o3", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-deep-research", - "name": "o3-deep-research", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 10, - "output": 40, - "cacheRead": 2.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-mini", - "name": "o3-mini", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-pro", - "name": "o3-pro", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 20, - "output": 80, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o4-mini", - "name": "o4-mini", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o4-mini-deep-research", - "name": "o4-mini-deep-research", - "config": { - "api": "azure-openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/cerebras.ts b/packages/core/src/generated/providers/cerebras.ts deleted file mode 100644 index 353f04fc..00000000 --- a/packages/core/src/generated/providers/cerebras.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "cerebras" -export const providerConfig = { - "name": "cerebras", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.cerebras.ai/v1", - "apiKey": "CEREBRAS_API_KEY" - }, - "models": [ - { - "modelId": "gemma-4-31b", - "name": "Gemma 4 31B IT", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 40960, - "cost": { - "input": 0.99, - "output": 1.49, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 40960, - "cost": { - "input": 0.35, - "output": 0.75, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-glm-4.7", - "name": "Z.AI GLM-4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 40960, - "cost": { - "input": 2.25, - "output": 2.75, - "cacheRead": 2.25, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/cloudflare-ai-gateway.ts b/packages/core/src/generated/providers/cloudflare-ai-gateway.ts deleted file mode 100644 index 4d0c97a9..00000000 --- a/packages/core/src/generated/providers/cloudflare-ai-gateway.ts +++ /dev/null @@ -1,849 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "cloudflare-ai-gateway" -export const providerConfig = { - "name": "cloudflare-ai-gateway", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic", - "apiKey": "CLOUDFLARE_API_KEY" - }, - "models": [ - { - "modelId": "claude-3-5-haiku", - "name": "Claude Haiku 3.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 8192, - "cost": { - "input": 0.8, - "output": 4, - "cacheRead": 0.08, - "cacheWrite": 1 - } - } - }, - { - "modelId": "claude-3-haiku", - "name": "Claude Haiku 3", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 0.25, - "output": 1.25, - "cacheRead": 0.03, - "cacheWrite": 0.3 - } - } - }, - { - "modelId": "claude-3-opus", - "name": "Claude Opus 3", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-3-sonnet", - "name": "Claude Sonnet 3", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0.3 - } - } - }, - { - "modelId": "claude-3.5-haiku", - "name": "Claude Haiku 3.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 8192, - "cost": { - "input": 0.8, - "output": 4, - "cacheRead": 0.08, - "cacheWrite": 1 - } - } - }, - { - "modelId": "claude-3.5-sonnet", - "name": "Claude Sonnet 3.5 v2", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 8192, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "claude-haiku-4-5", - "name": "Claude Haiku 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "claude-opus-4", - "name": "Claude Opus 4 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-opus-4-1", - "name": "Claude Opus 4.1 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-opus-4-5", - "name": "Claude Opus 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-6", - "name": "Claude Opus 4.6 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-7", - "name": "Claude Opus 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-8", - "name": "Claude Opus 4.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-sonnet-4", - "name": "Claude Sonnet 4 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-5", - "name": "Claude Sonnet 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "gpt-4", - "name": "GPT-4", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 8192, - "maxTokens": 8192, - "cost": { - "input": 30, - "output": 60, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4-turbo", - "name": "GPT-4 Turbo", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o", - "name": "GPT-4o", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-mini", - "name": "GPT-4o mini", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.08, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1", - "name": "GPT-5.1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.13, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex", - "name": "GPT-5.1 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2", - "name": "GPT-5.2", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-codex", - "name": "GPT-5.2 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex", - "name": "GPT-5.3 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o1", - "name": "o1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 15, - "output": 60, - "cacheRead": 7.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3", - "name": "o3", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-mini", - "name": "o3-mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-pro", - "name": "o3-pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 20, - "output": 80, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o4-mini", - "name": "o4-mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.28, - "cacheWrite": 0 - } - } - }, - { - "modelId": "workers-ai/@cf/moonshotai/kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "workers-ai/@cf/moonshotai/kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b", - "name": "Nemotron 3 Super 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "workers-ai/@cf/zai-org/glm-4.7-flash", - "name": "GLM-4.7-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.06, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "workers-ai/@cf/zai-org/glm-5.2", - "name": "Glm 5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/cloudflare-workers-ai.ts b/packages/core/src/generated/providers/cloudflare-workers-ai.ts deleted file mode 100644 index 6ab2410e..00000000 --- a/packages/core/src/generated/providers/cloudflare-workers-ai.ts +++ /dev/null @@ -1,265 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "cloudflare-workers-ai" -export const providerConfig = { - "name": "cloudflare-workers-ai", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1", - "apiKey": "CLOUDFLARE_API_KEY" - }, - "models": [ - { - "modelId": "@cf/google/gemma-4-26b-a4b-it", - "name": "Gemma 4 26B A4B IT", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 16384, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/ibm-granite/granite-4.0-h-micro", - "name": "Granite 4.0 H Micro", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131000, - "maxTokens": 131000, - "cost": { - "input": 0.017, - "output": 0.112, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/meta/llama-3.3-70b-instruct-fp8-fast", - "name": "Llama 3.3 70B Instruct fp8 Fast", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 24000, - "maxTokens": 24000, - "cost": { - "input": 0.293, - "output": 2.253, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/meta/llama-4-scout-17b-16e-instruct", - "name": "Llama 4 Scout 17B 16E Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131000, - "maxTokens": 16384, - "cost": { - "input": 0.27, - "output": 0.85, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/mistralai/mistral-small-3.1-24b-instruct", - "name": "Mistral Small 3.1 24B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.351, - "output": 0.555, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/moonshotai/kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 256000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/moonshotai/kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/nvidia/nemotron-3-120b-a12b", - "name": "Nemotron 3 Super 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/openai/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.35, - "output": 0.75, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.2, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/qwen/qwen3-30b-a3b-fp8", - "name": "Qwen3 30B A3b fp8", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 32768, - "cost": { - "input": 0.0509, - "output": 0.335, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/zai-org/glm-4.7-flash", - "name": "GLM-4.7-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.0605, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "@cf/zai-org/glm-5.2", - "name": "Glm 5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/deepseek.ts b/packages/core/src/generated/providers/deepseek.ts deleted file mode 100644 index 33892970..00000000 --- a/packages/core/src/generated/providers/deepseek.ts +++ /dev/null @@ -1,52 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "deepseek" -export const providerConfig = { - "name": "deepseek", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.deepseek.com", - "apiKey": "DEEPSEEK_API_KEY" - }, - "models": [ - { - "modelId": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.003625, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/fireworks.ts b/packages/core/src/generated/providers/fireworks.ts deleted file mode 100644 index 78833a96..00000000 --- a/packages/core/src/generated/providers/fireworks.ts +++ /dev/null @@ -1,324 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "fireworks" -export const providerConfig = { - "name": "fireworks", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://api.fireworks.ai/inference", - "apiKey": "FIREWORKS_API_KEY" - }, - "models": [ - { - "modelId": "accounts/fireworks/models/deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 1.74, - "output": 3.48, - "cacheRead": 0.145, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/glm-5p1", - "name": "GLM 5.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202800, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/glm-5p2", - "name": "GLM 5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048575, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.14, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.07, - "output": 0.3, - "cacheRead": 0.035, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/kimi-k2p6", - "name": "Kimi K2.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/kimi-k2p7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/minimax-m2p7", - "name": "MiniMax-M2.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 196608, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/minimax-m3", - "name": "MiniMax-M3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 512000, - "maxTokens": 512000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/models/qwen3p7-plus", - "name": "Qwen 3.7 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.08, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/routers/glm-5p1-fast", - "name": "GLM 5.1 Fast", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202800, - "maxTokens": 131072, - "cost": { - "input": 2.8, - "output": 8.8, - "cacheRead": 0.52, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/routers/glm-5p2-fast", - "name": "GLM 5.2 Fast", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048575, - "maxTokens": 131072, - "cost": { - "input": 2.1, - "output": 6.6, - "cacheRead": 0.21, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/routers/kimi-k2p6-fast", - "name": "Kimi K2.6 Fast", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/routers/kimi-k2p6-turbo", - "name": "Kimi K2.6 Turbo", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "accounts/fireworks/routers/kimi-k2p7-code-fast", - "name": "Kimi K2.7 Code Fast", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 1.9, - "output": 8, - "cacheRead": 0.38, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/github-copilot.ts b/packages/core/src/generated/providers/github-copilot.ts deleted file mode 100644 index bb1dcf75..00000000 --- a/packages/core/src/generated/providers/github-copilot.ts +++ /dev/null @@ -1,627 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "github-copilot" -export const providerConfig = { - "name": "github-copilot", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.individual.githubcopilot.com", - "apiKey": "COPILOT_GITHUB_TOKEN" - }, - "models": [ - { - "modelId": "claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "claude-haiku-4.5", - "name": "Claude Haiku 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "claude-opus-4.5", - "name": "Claude Opus 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4.6", - "name": "Claude Opus 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 32000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4.7", - "name": "Claude Opus 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 32000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4.8", - "name": "Claude Opus 4.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-sonnet-4", - "name": "Claude Sonnet 4 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 216000, - "maxTokens": 16000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4.5", - "name": "Claude Sonnet 4.5 (latest)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4.6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 32000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "gemini-2.5-pro", - "name": "Gemini 2.5 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 64000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3-flash-preview", - "name": "Gemini 3 Flash Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 64000, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro-preview", - "name": "Gemini 3.1 Pro Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 200000, - "input": 4, - "output": 18, - "cacheRead": 0.4, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gemini-3.5-flash", - "name": "Gemini 3.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1", - "name": "GPT-4.1", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-mini", - "name": "GPT-5 Mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 264000, - "maxTokens": 64000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2", - "name": "GPT-5.2", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-codex", - "name": "GPT-5.2 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex", - "name": "GPT-5.3 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.4-mini", - "name": "GPT-5.4 mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-nano", - "name": "GPT-5.4 nano", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25, - "tiers": [ - { - "inputTokensAbove": 200000, - "input": 2, - "output": 9, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 12.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - ] - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 32000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mai-code-1-flash-picker", - "name": "MAI-Code-1-Flash", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/google-vertex.ts b/packages/core/src/generated/providers/google-vertex.ts deleted file mode 100644 index ecfbc779..00000000 --- a/packages/core/src/generated/providers/google-vertex.ts +++ /dev/null @@ -1,214 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "google-vertex" -export const providerConfig = { - "name": "google-vertex", - "config": { - "api": "google-vertex", - "baseUrl": "https://{location}-aiplatform.googleapis.com", - "apiKey": "GOOGLE_CLOUD_API_KEY" - }, - "models": [ - { - "modelId": "gemini-2.5-flash", - "name": "Gemini 2.5 Flash", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.5-flash-lite", - "name": "Gemini 2.5 Flash-Lite", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.5-pro", - "name": "Gemini 2.5 Pro", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3-flash-preview", - "name": "Gemini 3 Flash Preview", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-flash-lite", - "name": "Gemini 3.1 Flash Lite", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro-preview", - "name": "Gemini 3.1 Pro Preview", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro-preview-customtools", - "name": "Gemini 3.1 Pro Preview Custom Tools", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.5-flash", - "name": "Gemini 3.5 Flash", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-flash-latest", - "name": "Gemini Flash Latest", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-flash-lite-latest", - "name": "Gemini Flash-Lite Latest", - "config": { - "api": "google-vertex", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/google.ts b/packages/core/src/generated/providers/google.ts deleted file mode 100644 index 3981dfa8..00000000 --- a/packages/core/src/generated/providers/google.ts +++ /dev/null @@ -1,374 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "google" -export const providerConfig = { - "name": "google", - "config": { - "api": "google-generative-ai", - "baseUrl": "https://generativelanguage.googleapis.com/v1beta", - "apiKey": "GEMINI_API_KEY" - }, - "models": [ - { - "modelId": "gemini-2.0-flash", - "name": "Gemini 2.0 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 8192, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.0-flash-lite", - "name": "Gemini 2.0 Flash-Lite", - "config": { - "api": "google-generative-ai", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 8192, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.5-flash", - "name": "Gemini 2.5 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.5-flash-lite", - "name": "Gemini 2.5 Flash-Lite", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-2.5-pro", - "name": "Gemini 2.5 Pro", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3-flash-preview", - "name": "Gemini 3 Flash Preview", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3-pro-preview", - "name": "Gemini 3 Pro Preview", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-flash-lite", - "name": "Gemini 3.1 Flash Lite", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-flash-lite-preview", - "name": "Gemini 3.1 Flash Lite Preview", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro-preview", - "name": "Gemini 3.1 Pro Preview", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro-preview-customtools", - "name": "Gemini 3.1 Pro Preview Custom Tools", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.5-flash", - "name": "Gemini 3.5 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.5-flash-lite", - "name": "Gemini 3.5 Flash Lite", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.6-flash", - "name": "Gemini 3.6 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-flash-latest", - "name": "Gemini Flash Latest", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-flash-lite-latest", - "name": "Gemini Flash-Lite Latest", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemma-4-26b-a4b-it", - "name": "Gemma 4 26B A4B IT", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemma-4-31b-it", - "name": "Gemma 4 31B IT", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/groq.ts b/packages/core/src/generated/providers/groq.ts deleted file mode 100644 index d4a6e435..00000000 --- a/packages/core/src/generated/providers/groq.ts +++ /dev/null @@ -1,148 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "groq" -export const providerConfig = { - "name": "groq", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.groq.com/openai/v1", - "apiKey": "GROQ_API_KEY" - }, - "models": [ - { - "modelId": "llama-3.1-8b-instant", - "name": "Llama 3.1 8B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.05, - "output": 0.08, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "llama-3.3-70b-versatile", - "name": "Llama 3.3 70B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.59, - "output": 0.79, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-4-scout-17b-16e-instruct", - "name": "Llama 4 Scout 17B 16E", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 8192, - "cost": { - "input": 0.11, - "output": 0.34, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0.0375, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-safeguard-20b", - "name": "Safety GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-32b", - "name": "Qwen3-32B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 40960, - "cost": { - "input": 0.29, - "output": 0.59, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/huggingface.ts b/packages/core/src/generated/providers/huggingface.ts deleted file mode 100644 index f00c218d..00000000 --- a/packages/core/src/generated/providers/huggingface.ts +++ /dev/null @@ -1,960 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "huggingface" -export const providerConfig = { - "name": "huggingface", - "config": { - "api": "openai-completions", - "baseUrl": "https://router.huggingface.co/v1", - "apiKey": "HF_TOKEN" - }, - "models": [ - { - "modelId": "MiniMaxAI/MiniMax-M2", - "name": "MiniMax-M2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "MiniMaxAI/MiniMax-M2.1", - "name": "MiniMax-M2.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "MiniMaxAI/MiniMax-M2.5", - "name": "MiniMax-M2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "MiniMaxAI/MiniMax-M2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "MiniMaxAI/MiniMax-M3", - "name": "MiniMax-M3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 524288, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-235B-A22B", - "name": "Qwen3 235B-A22B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 40960, - "maxTokens": 16384, - "cost": { - "input": 0.2, - "output": 0.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-235B-A22B-Thinking-2507", - "name": "Qwen3-235B-A22B-Thinking-2507", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-32B", - "name": "Qwen3 32B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.29, - "output": 0.59, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-Coder-30B-A3B-Instruct", - "name": "Qwen3-Coder 30B-A3B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.07, - "output": 0.26, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-Coder-480B-A35B-Instruct", - "name": "Qwen3-Coder-480B-A35B-Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 66536, - "cost": { - "input": 2, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-Coder-Next", - "name": "Qwen3-Coder-Next", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.2, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-Next-80B-A3B-Instruct", - "name": "Qwen3-Next-80B-A3B-Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 66536, - "cost": { - "input": 0.25, - "output": 1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3-Next-80B-A3B-Thinking", - "name": "Qwen3-Next-80B-A3B-Thinking", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-122B-A10B", - "name": "Qwen3.5 122B-A10B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.4, - "output": 3.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-27B", - "name": "Qwen3.5 27B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-35B-A3B", - "name": "Qwen3.5 35B-A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-397B-A17B", - "name": "Qwen3.5-397B-A17B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.6, - "output": 3.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-9B", - "name": "Qwen3.5 9B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.17, - "output": 0.25, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.6-27B", - "name": "Qwen3.6 27B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.47, - "output": 3.19, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.6-35B-A3B", - "name": "Qwen3.6 35B-A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.15, - "output": 0.95, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "XiaomiMiMo/MiMo-V2-Flash", - "name": "MiMo-V2-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "XiaomiMiMo/MiMo-V2.5-Pro", - "name": "MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 1, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-R1", - "name": "DeepSeek-R1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 64000, - "maxTokens": 32768, - "cost": { - "input": 0.7, - "output": 2.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-R1-0528", - "name": "DeepSeek-R1-0528", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 163840, - "cost": { - "input": 3, - "output": 5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-V3.2", - "name": "DeepSeek-V3.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 65536, - "cost": { - "input": 0.28, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-V4-Flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-V4-Pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 393216, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.003625, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-26B-A4B-it", - "name": "Gemma 4 26B A4B IT", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.13, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-31B-it", - "name": "Gemma 4 31B IT", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.14, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/Llama-3.3-70B-Instruct", - "name": "Llama-3.3-70B-Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 0.59, - "output": 0.79, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2-Instruct", - "name": "Kimi-K2-Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 1, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2-Instruct-0905", - "name": "Kimi-K2-Instruct-0905", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 1, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2-Thinking", - "name": "Kimi-K2-Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2.5", - "name": "Kimi-K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2.6", - "name": "Kimi-K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2.7-Code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.25, - "output": 0.69, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.1, - "output": 0.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun-ai/Step-3.5-Flash", - "name": "Step 3.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 256000, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun-ai/Step-3.7-Flash", - "name": "Step 3.7 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 256000, - "cost": { - "input": 0.2, - "output": 1.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.5", - "name": "GLM-4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.5-Air", - "name": "GLM-4.5-Air", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0.13, - "output": 0.85, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.5V", - "name": "GLM-4.5V", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 65536, - "maxTokens": 16384, - "cost": { - "input": 0.6, - "output": 1.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.6", - "name": "GLM-4.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.55, - "output": 2.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.7", - "name": "GLM-4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-4.7-Flash", - "name": "GLM-4.7-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-5", - "name": "GLM-5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 1, - "output": 3.2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 1, - "output": 3.2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/kimi-coding.ts b/packages/core/src/generated/providers/kimi-coding.ts deleted file mode 100644 index 149f97cc..00000000 --- a/packages/core/src/generated/providers/kimi-coding.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "kimi-coding" -export const providerConfig = { - "name": "kimi-coding", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://api.kimi.com/coding", - "apiKey": "KIMI_API_KEY" - }, - "models": [ - { - "modelId": "k3", - "name": "Kimi K3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-for-coding", - "name": "Kimi K2.7 Code", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-for-coding-highspeed", - "name": "Kimi For Coding HighSpeed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 1.9, - "output": 8, - "cacheRead": 0.38, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/minimax-cn.ts b/packages/core/src/generated/providers/minimax-cn.ts deleted file mode 100644 index f35f6331..00000000 --- a/packages/core/src/generated/providers/minimax-cn.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "minimax-cn" -export const providerConfig = { - "name": "minimax-cn", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://api.minimaxi.com/anthropic", - "apiKey": "MINIMAX_CN_API_KEY" - }, - "models": [ - { - "modelId": "MiniMax-M2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "MiniMax-M2.7-highspeed", - "name": "MiniMax-M2.7-highspeed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "MiniMax-M3", - "name": "MiniMax-M3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/minimax.ts b/packages/core/src/generated/providers/minimax.ts deleted file mode 100644 index bc130eb2..00000000 --- a/packages/core/src/generated/providers/minimax.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "minimax" -export const providerConfig = { - "name": "minimax", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://api.minimax.io/anthropic", - "apiKey": "MINIMAX_API_KEY" - }, - "models": [ - { - "modelId": "MiniMax-M2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "MiniMax-M2.7-highspeed", - "name": "MiniMax-M2.7-highspeed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "MiniMax-M3", - "name": "MiniMax-M3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/mistral.ts b/packages/core/src/generated/providers/mistral.ts deleted file mode 100644 index e3f71c49..00000000 --- a/packages/core/src/generated/providers/mistral.ts +++ /dev/null @@ -1,597 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "mistral" -export const providerConfig = { - "name": "mistral", - "config": { - "api": "mistral-conversations", - "baseUrl": "https://api.mistral.ai", - "apiKey": "MISTRAL_API_KEY" - }, - "models": [ - { - "modelId": "codestral-latest", - "name": "Codestral (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 4096, - "cost": { - "input": 0.3, - "output": 0.9, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-2512", - "name": "Devstral 2", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-latest", - "name": "Devstral 2", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-medium-2507", - "name": "Devstral Medium", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-medium-latest", - "name": "Devstral 2 (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-small-2505", - "name": "Devstral Small 2505", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "devstral-small-2507", - "name": "Devstral Small", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "labs-devstral-small-2512", - "name": "Devstral Small 2", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "magistral-medium-latest", - "name": "Magistral Medium (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2, - "output": 5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "magistral-small", - "name": "Magistral Small", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "ministral-3b-latest", - "name": "Ministral 3B (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.04, - "output": 0.04, - "cacheRead": 0.004, - "cacheWrite": 0 - } - } - }, - { - "modelId": "ministral-8b-latest", - "name": "Ministral 8B (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.1, - "output": 0.1, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-large-2411", - "name": "Mistral Large 2.1", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-large-2512", - "name": "Mistral Large 3", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-large-latest", - "name": "Mistral Large (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-medium-2505", - "name": "Mistral Medium 3", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-medium-2508", - "name": "Mistral Medium 3.1", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-medium-2604", - "name": "Mistral Medium 3.5", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-medium-3.5", - "name": "Mistral Medium 3.5", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-medium-latest", - "name": "Mistral Medium (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-nemo", - "name": "Mistral Nemo", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-small-2506", - "name": "Mistral Small 3.2", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-small-2603", - "name": "Mistral Small 4", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral-small-latest", - "name": "Mistral Small (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "open-mistral-7b", - "name": "Mistral 7B", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 8000, - "maxTokens": 8000, - "cost": { - "input": 0.25, - "output": 0.25, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "open-mistral-nemo", - "name": "Open Mistral Nemo", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "open-mixtral-8x22b", - "name": "Mixtral 8x22B", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 64000, - "maxTokens": 64000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "open-mixtral-8x7b", - "name": "Mixtral 8x7B", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32000, - "maxTokens": 32000, - "cost": { - "input": 0.7, - "output": 0.7, - "cacheRead": 0.07, - "cacheWrite": 0 - } - } - }, - { - "modelId": "pixtral-12b", - "name": "Pixtral 12B", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "pixtral-large-latest", - "name": "Pixtral Large (latest)", - "config": { - "api": "mistral-conversations", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/moonshotai-cn.ts b/packages/core/src/generated/providers/moonshotai-cn.ts deleted file mode 100644 index 62b192a8..00000000 --- a/packages/core/src/generated/providers/moonshotai-cn.ts +++ /dev/null @@ -1,209 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "moonshotai-cn" -export const providerConfig = { - "name": "moonshotai-cn", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.moonshot.cn/v1", - "apiKey": "MOONSHOT_API_KEY" - }, - "models": [ - { - "modelId": "kimi-k2-0711-preview", - "name": "Kimi K2 0711", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-0905-preview", - "name": "Kimi K2 0905", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-thinking", - "name": "Kimi K2 Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-thinking-turbo", - "name": "Kimi K2 Thinking Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.15, - "output": 8, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-turbo-preview", - "name": "Kimi K2 Turbo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 2.4, - "output": 10, - "cacheRead": 0.6, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code-highspeed", - "name": "Kimi K2.7 Code HighSpeed", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.9, - "output": 8, - "cacheRead": 0.38, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k3", - "name": "Kimi K3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/moonshotai.ts b/packages/core/src/generated/providers/moonshotai.ts deleted file mode 100644 index ae6c5bd4..00000000 --- a/packages/core/src/generated/providers/moonshotai.ts +++ /dev/null @@ -1,209 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "moonshotai" -export const providerConfig = { - "name": "moonshotai", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.moonshot.ai/v1", - "apiKey": "MOONSHOT_API_KEY" - }, - "models": [ - { - "modelId": "kimi-k2-0711-preview", - "name": "Kimi K2 0711", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-0905-preview", - "name": "Kimi K2 0905", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-thinking", - "name": "Kimi K2 Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-thinking-turbo", - "name": "Kimi K2 Thinking Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.15, - "output": 8, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2-turbo-preview", - "name": "Kimi K2 Turbo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 2.4, - "output": 10, - "cacheRead": 0.6, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code-highspeed", - "name": "Kimi K2.7 Code HighSpeed", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 1.9, - "output": 8, - "cacheRead": 0.38, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k3", - "name": "Kimi K3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/nvidia.ts b/packages/core/src/generated/providers/nvidia.ts deleted file mode 100644 index 739b05af..00000000 --- a/packages/core/src/generated/providers/nvidia.ts +++ /dev/null @@ -1,383 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "nvidia" -export const providerConfig = { - "name": "nvidia", - "config": { - "api": "openai-completions", - "baseUrl": "https://integrate.api.nvidia.com/v1", - "apiKey": "" - }, - "models": [ - { - "modelId": "meta/llama-3.1-70b-instruct", - "name": "Llama 3.1 70b Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.1-8b-instruct", - "name": "Llama 3.1 8B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 16000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.2-11b-vision-instruct", - "name": "Llama 3.2 11b Vision Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.2-90b-vision-instruct", - "name": "Llama-3.2-90B-Vision-Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.3-70b-instruct", - "name": "Llama 3.3 70b Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimaxai/minimax-m3", - "name": "MiniMax-M3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-large-3-675b-instruct-2512", - "name": "Mistral Large 3 675B Instruct 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-small-4-119b-2603", - "name": "mistral-small-4-119b-2603", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-30b-a3b", - "name": "nemotron-3-nano-30b-a3b", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning", - "name": "Nemotron 3 Nano Omni", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-super-120b-a12b", - "name": "Nemotron 3 Super", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.2, - "output": 0.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-ultra-550b-a55b", - "name": "Nemotron 3 Ultra 550B A55B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nvidia-nemotron-nano-9b-v2", - "name": "nvidia-nemotron-nano-9b-v2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "GPT-OSS-120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun-ai/step-3.5-flash", - "name": "Step 3.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun-ai/step-3.7-flash", - "name": "Step 3.7 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/openai-codex.ts b/packages/core/src/generated/providers/openai-codex.ts deleted file mode 100644 index 70b46f3a..00000000 --- a/packages/core/src/generated/providers/openai-codex.ts +++ /dev/null @@ -1,198 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "openai-codex" -export const providerConfig = { - "name": "openai-codex", - "config": { - "api": "openai-codex-responses", - "baseUrl": "https://chatgpt.com/backend-api", - "apiKey": "" - }, - "models": [ - { - "modelId": "gpt-5.3-codex-spark", - "name": "GPT-5.3 Codex Spark", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.4-mini", - "name": "GPT-5.4 mini", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 2, - "output": 9, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 12.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "openai-codex-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - ] - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/openai.ts b/packages/core/src/generated/providers/openai.ts deleted file mode 100644 index 1705079b..00000000 --- a/packages/core/src/generated/providers/openai.ts +++ /dev/null @@ -1,995 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "openai" -export const providerConfig = { - "name": "openai", - "config": { - "api": "openai-responses", - "baseUrl": "https://api.openai.com/v1", - "apiKey": "OPENAI_API_KEY" - }, - "models": [ - { - "modelId": "gpt-4", - "name": "GPT-4", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 8192, - "maxTokens": 8192, - "cost": { - "input": 30, - "output": 60, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4-turbo", - "name": "GPT-4 Turbo", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1", - "name": "GPT-4.1", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1-mini", - "name": "GPT-4.1 mini", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4.1-nano", - "name": "GPT-4.1 nano", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o", - "name": "GPT-4o", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-05-13", - "name": "GPT-4o (2024-05-13)", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 5, - "output": 15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-08-06", - "name": "GPT-4o (2024-08-06)", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-2024-11-20", - "name": "GPT-4o (2024-11-20)", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-4o-mini", - "name": "GPT-4o mini", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5", - "name": "GPT-5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-chat-latest", - "name": "GPT-5 Chat Latest", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-codex", - "name": "GPT-5-Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-mini", - "name": "GPT-5 Mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-nano", - "name": "GPT-5 Nano", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.05, - "output": 0.4, - "cacheRead": 0.005, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-pro", - "name": "GPT-5 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 15, - "output": 120, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1", - "name": "GPT-5.1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-chat-latest", - "name": "GPT-5.1 Chat", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex", - "name": "GPT-5.1 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-max", - "name": "GPT-5.1 Codex Max", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-mini", - "name": "GPT-5.1 Codex mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2", - "name": "GPT-5.2", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-chat-latest", - "name": "GPT-5.2 Chat", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-codex", - "name": "GPT-5.2 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-pro", - "name": "GPT-5.2 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 21, - "output": 168, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-chat-latest", - "name": "GPT-5.3 Chat (latest)", - "config": { - "api": "openai-responses", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex", - "name": "GPT-5.3 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex-spark", - "name": "GPT-5.3 Codex Spark", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 32000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.4-mini", - "name": "GPT-5.4 mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-nano", - "name": "GPT-5.4 nano", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-pro", - "name": "GPT-5.4 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 60, - "output": 270, - "cacheRead": 0, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.5-pro", - "name": "GPT-5.5 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 60, - "output": 270, - "cacheRead": 0, - "cacheWrite": 0 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 2, - "output": 9, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 10, - "output": 45, - "cacheRead": 1, - "cacheWrite": 12.5 - } - ] - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125, - "tiers": [ - { - "inputTokensAbove": 272000, - "input": 5, - "output": 22.5, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - ] - } - } - }, - { - "modelId": "gpt-realtime-2.1", - "name": "GPT-Realtime-2.1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 32000, - "cost": { - "input": 4, - "output": 24, - "cacheRead": 0.4, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o1", - "name": "o1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 15, - "output": 60, - "cacheRead": 7.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o1-pro", - "name": "o1-pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 150, - "output": 600, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3", - "name": "o3", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-deep-research", - "name": "o3-deep-research", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 10, - "output": 40, - "cacheRead": 2.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-mini", - "name": "o3-mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o3-pro", - "name": "o3-pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 20, - "output": 80, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o4-mini", - "name": "o4-mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "o4-mini-deep-research", - "name": "o4-mini-deep-research", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/opencode-go.ts b/packages/core/src/generated/providers/opencode-go.ts deleted file mode 100644 index 9bc65bb0..00000000 --- a/packages/core/src/generated/providers/opencode-go.ts +++ /dev/null @@ -1,307 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "opencode-go" -export const providerConfig = { - "name": "opencode-go", - "config": { - "api": "openai-completions", - "baseUrl": "https://opencode.ai/zen/go/v1", - "apiKey": "OPENCODE_API_KEY" - }, - "models": [ - { - "modelId": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.003625, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 32768, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "grok-4.5", - "name": "Grok 4.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 500000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k3", - "name": "Kimi K3 (2x usage)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5", - "name": "MiMo V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro", - "name": "MiMo V2.5 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 128000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.003625, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax-m2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax-m3", - "name": "MiniMax-M3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.6-plus", - "name": "Qwen3.6 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0.625 - } - } - }, - { - "modelId": "qwen3.7-max", - "name": "Qwen3.7 Max", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 2.5, - "output": 7.5, - "cacheRead": 0.5, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "qwen3.7-plus", - "name": "Qwen3.7 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.04, - "cacheWrite": 0.5 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/opencode.ts b/packages/core/src/generated/providers/opencode.ts deleted file mode 100644 index f49e1f71..00000000 --- a/packages/core/src/generated/providers/opencode.ts +++ /dev/null @@ -1,1122 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "opencode" -export const providerConfig = { - "name": "opencode", - "config": { - "api": "openai-completions", - "baseUrl": "https://opencode.ai/zen/v1", - "apiKey": "OPENCODE_API_KEY" - }, - "models": [ - { - "modelId": "big-pickle", - "name": "Big Pickle", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "claude-haiku-4-5", - "name": "Claude Haiku 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "claude-opus-4-1", - "name": "Claude Opus 4.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "claude-opus-4-5", - "name": "Claude Opus 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-6", - "name": "Claude Opus 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-7", - "name": "Claude Opus 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-opus-4-8", - "name": "Claude Opus 4.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "claude-sonnet-4", - "name": "Claude Sonnet 4", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-5", - "name": "Claude Sonnet 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-4-6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-flash-free", - "name": "DeepSeek V4 Flash Free", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 1.74, - "output": 3.84, - "cacheRead": 0.145, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3-flash", - "name": "Gemini 3 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.1-pro", - "name": "Gemini 3.1 Pro Preview", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.5-flash", - "name": "Gemini 3.5 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.5-flash-lite", - "name": "Gemini 3.5 Flash Lite", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gemini-3.6-flash", - "name": "Gemini 3.6 Flash", - "config": { - "api": "google-generative-ai", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5", - "name": "GLM-5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 1, - "output": 3.2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5", - "name": "GPT-5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.07, - "output": 8.5, - "cacheRead": 0.107, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-codex", - "name": "GPT-5 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.07, - "output": 8.5, - "cacheRead": 0.107, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5-nano", - "name": "GPT-5 Nano", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.05, - "output": 0.4, - "cacheRead": 0.005, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1", - "name": "GPT-5.1", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.07, - "output": 8.5, - "cacheRead": 0.107, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex", - "name": "GPT-5.1 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.07, - "output": 8.5, - "cacheRead": 0.107, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-max", - "name": "GPT-5.1 Codex Max", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.1-codex-mini", - "name": "GPT-5.1 Codex Mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2", - "name": "GPT-5.2", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.2-codex", - "name": "GPT-5.2 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.3-codex", - "name": "GPT-5.3 Codex", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4", - "name": "GPT-5.4", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 272000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-mini", - "name": "GPT-5.4 Mini", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-nano", - "name": "GPT-5.4 Nano", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.4-pro", - "name": "GPT-5.4 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 30, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5", - "name": "GPT-5.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.5-pro", - "name": "GPT-5.5 Pro", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 30, - "cacheWrite": 0 - } - } - }, - { - "modelId": "gpt-5.6-luna", - "name": "GPT-5.6 Luna", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "gpt-5.6-sol", - "name": "GPT-5.6 Sol", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "gpt-5.6-terra", - "name": "GPT-5.6 Terra", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "grok-4.5", - "name": "Grok 4.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 500000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "grok-build-0.1", - "name": "Grok Build 0.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.08, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "laguna-s-2.1-free", - "name": "Laguna S 2.1 Free", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 32000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-free", - "name": "MiMo V2.5 Free", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax-m2.5", - "name": "MiniMax-M2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax-m2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax-m3", - "name": "MiniMax-M3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 512000, - "maxTokens": 128000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nemotron-3-ultra-free", - "name": "Nemotron 3 Ultra Free", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "north-mini-code-free", - "name": "North Mini Code Free", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 64000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.5-plus", - "name": "Qwen3.5 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.2, - "output": 1.2, - "cacheRead": 0.02, - "cacheWrite": 0.25 - } - } - }, - { - "modelId": "qwen3.6-plus", - "name": "Qwen3.6 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0.625 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/openrouter.ts b/packages/core/src/generated/providers/openrouter.ts deleted file mode 100644 index de133db1..00000000 --- a/packages/core/src/generated/providers/openrouter.ts +++ /dev/null @@ -1,5357 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "openrouter" -export const providerConfig = { - "name": "openrouter", - "config": { - "api": "openai-completions", - "baseUrl": "https://openrouter.ai/api/v1", - "apiKey": "OPENROUTER_API_KEY" - }, - "models": [ - { - "modelId": "ai21/jamba-large-1.7", - "name": "AI21: Jamba Large 1.7", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "aion-labs/aion-2.0", - "name": "AionLabs: Aion-2.0", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.8, - "output": 1.6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "aion-labs/aion-3.0", - "name": "AionLabs: Aion-3.0", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 3, - "output": 6, - "cacheRead": 0.75, - "cacheWrite": 0 - } - } - }, - { - "modelId": "aion-labs/aion-3.0-mini", - "name": "AionLabs: Aion-3.0-Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.7, - "output": 1.4, - "cacheRead": 0.18, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-2-lite-v1", - "name": "Amazon: Nova 2 Lite", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65535, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-lite-v1", - "name": "Amazon: Nova Lite 1.0", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 5120, - "cost": { - "input": 0.06, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-micro-v1", - "name": "Amazon: Nova Micro 1.0", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 5120, - "cost": { - "input": 0.035, - "output": 0.14, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-premier-v1", - "name": "Amazon: Nova Premier 1.0", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 32000, - "cost": { - "input": 2.5, - "output": 12.5, - "cacheRead": 0.625, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-pro-v1", - "name": "Amazon: Nova Pro 1.0", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 5120, - "cost": { - "input": 0.8, - "output": 3.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "anthropic/claude-3-haiku", - "name": "Anthropic: Claude 3 Haiku", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 0.25, - "output": 1.25, - "cacheRead": 0.03, - "cacheWrite": 0.3 - } - } - }, - { - "modelId": "anthropic/claude-fable-5", - "name": "Anthropic: Claude Fable 5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "anthropic/claude-haiku-4.5", - "name": "Anthropic: Claude Haiku 4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4", - "name": "Anthropic: Claude Opus 4", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.1", - "name": "Anthropic: Claude Opus 4.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.5", - "name": "Anthropic: Claude Opus 4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.6", - "name": "Anthropic: Claude Opus 4.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.7", - "name": "Anthropic: Claude Opus 4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.7-fast", - "name": "Anthropic: Claude Opus 4.7 (Fast)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 150, - "cacheRead": 3, - "cacheWrite": 37.5 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.8", - "name": "Anthropic: Claude Opus 4.8", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.8-fast", - "name": "Anthropic: Claude Opus 4.8 (Fast)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4", - "name": "Anthropic: Claude Sonnet 4", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4.5", - "name": "Anthropic: Claude Sonnet 4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4.6", - "name": "Anthropic: Claude Sonnet 4.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-5", - "name": "Anthropic: Claude Sonnet 5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "arcee-ai/trinity-large-thinking", - "name": "Arcee AI: Trinity Large Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 80000, - "cost": { - "input": 0.25, - "output": 0.8, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "arcee-ai/virtuoso-large", - "name": "Arcee AI: Virtuoso Large", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 64000, - "cost": { - "input": 0.75, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "auto", - "name": "Auto", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 30000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance-seed/seed-1.6", - "name": "ByteDance Seed: Seed 1.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance-seed/seed-1.6-flash", - "name": "ByteDance Seed: Seed 1.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance-seed/seed-2.0-lite", - "name": "ByteDance Seed: Seed-2.0-Lite", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance-seed/seed-2.0-mini", - "name": "ByteDance Seed: Seed-2.0-Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "cohere/command-r-08-2024", - "name": "Cohere: Command R (08-2024)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "cohere/command-r-plus-08-2024", - "name": "Cohere: Command R+ (08-2024)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "cohere/north-mini-code:free", - "name": "Cohere: North Mini Code (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 64000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-chat", - "name": "DeepSeek: DeepSeek V3", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16000, - "cost": { - "input": 0.2002, - "output": 0.8001, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-chat-v3-0324", - "name": "DeepSeek: DeepSeek V3 0324", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 65536, - "cost": { - "input": 0.27, - "output": 1.12, - "cacheRead": 0.135, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-chat-v3.1", - "name": "DeepSeek: DeepSeek V3.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 32768, - "cost": { - "input": 0.25, - "output": 0.95, - "cacheRead": 0.13, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-r1", - "name": "DeepSeek: R1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 64000, - "maxTokens": 16000, - "cost": { - "input": 0.7, - "output": 2.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-r1-0528", - "name": "DeepSeek: R1 0528", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 32768, - "cost": { - "input": 0.5, - "output": 2.15, - "cacheRead": 0.35, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.1-terminus", - "name": "DeepSeek: DeepSeek V3.1 Terminus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.27, - "output": 1, - "cacheRead": 0.135, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.2", - "name": "DeepSeek: DeepSeek V3.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 65536, - "cost": { - "input": 0.269, - "output": 0.4, - "cacheRead": 0.1345, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.2-exp", - "name": "DeepSeek: DeepSeek V3.2 Exp", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 65536, - "cost": { - "input": 0.27, - "output": 0.41, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v4-flash", - "name": "DeepSeek: DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048575, - "maxTokens": 4096, - "cost": { - "input": 0.0938, - "output": 0.1876, - "cacheRead": 0.01876, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v4-pro", - "name": "DeepSeek: DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 384000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.003625, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-2.5-flash", - "name": "Google: Gemini 2.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65535, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-2.5-flash-lite", - "name": "Google: Gemini 2.5 Flash Lite", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65535, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.01, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-2.5-pro", - "name": "Google: Gemini 2.5 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-2.5-pro-preview", - "name": "Google: Gemini 2.5 Pro Preview 06-05", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-2.5-pro-preview-05-06", - "name": "Google: Gemini 2.5 Pro Preview 05-06", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65535, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-3-flash-preview", - "name": "Google: Gemini 3 Flash Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65535, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-3-pro-image", - "name": "Google: Nano Banana Pro (Gemini 3 Pro Image)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 65536, - "maxTokens": 32768, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-3.1-flash-lite", - "name": "Google: Gemini 3.1 Flash Lite", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-3.1-flash-lite-preview", - "name": "Google: Gemini 3.1 Flash Lite Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.025, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-3.1-pro-preview", - "name": "Google: Gemini 3.1 Pro Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-3.1-pro-preview-customtools", - "name": "Google: Gemini 3.1 Pro Preview Custom Tools", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "google/gemini-3.5-flash", - "name": "Google: Gemini 3.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-3.5-flash-lite", - "name": "Google: Gemini 3.5 Flash-Lite", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemini-3.6-flash", - "name": "Google: Gemini 3.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "google/gemma-3-12b-it", - "name": "Google: Gemma 3 12B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.05, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-3-27b-it", - "name": "Google: Gemma 3 27B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 110000, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-26b-a4b-it", - "name": "Google: Gemma 4 26B A4B ", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0.07, - "output": 0.34, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-26b-a4b-it:free", - "name": "Google: Gemma 4 26B A4B (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-31b-it", - "name": "Google: Gemma 4 31B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0.12, - "output": 0.37, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-31b-it:free", - "name": "Google: Gemma 4 31B (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "ibm-granite/granite-4.1-8b", - "name": "IBM: Granite 4.1 8B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.05, - "output": 0.1, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inception/mercury-2", - "name": "Inception: Mercury 2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 50000, - "cost": { - "input": 0.25, - "output": 0.75, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inclusionai/ling-2.6-1t", - "name": "inclusionAI: Ling-2.6-1T", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.075, - "output": 0.625, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inclusionai/ling-2.6-flash", - "name": "inclusionAI: Ling-2.6-flash", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.01, - "output": 0.03, - "cacheRead": 0.002, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inclusionai/ring-2.6-1t", - "name": "inclusionAI: Ring-2.6-1T", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.075, - "output": 0.625, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-air-v2.5", - "name": "Kwaipilot: KAT-Coder-Air V2.5", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 80000, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-pro-v2", - "name": "Kwaipilot: KAT-Coder-Pro V2", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 80000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-pro-v2.5", - "name": "Kwaipilot: KAT-Coder-Pro V2.5", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 80000, - "cost": { - "input": 0.74, - "output": 2.96, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meituan/longcat-2.0", - "name": "Meituan: LongCat 2.0", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048756, - "maxTokens": 262144, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.006, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-3.1-70b-instruct", - "name": "Meta: Llama 3.1 70B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.4, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-3.1-8b-instruct", - "name": "Meta: Llama 3.1 8B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.05, - "output": 0.08, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-3.3-70b-instruct", - "name": "Meta: Llama 3.3 70B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 128000, - "cost": { - "input": 0.13, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-4-maverick", - "name": "Meta: Llama 4 Maverick", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 16384, - "cost": { - "input": 0.2, - "output": 0.8, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/llama-4-scout", - "name": "Meta: Llama 4 Scout", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 327680, - "maxTokens": 16384, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/muse-spark-1.1", - "name": "Meta: Muse Spark 1.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 4096, - "cost": { - "input": 1.25, - "output": 4.25, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m1", - "name": "MiniMax: MiniMax M1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 40000, - "cost": { - "input": 0.55, - "output": 2.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m2", - "name": "MiniMax: MiniMax M2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m2.1", - "name": "MiniMax: MiniMax M2.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m2.5", - "name": "MiniMax: MiniMax M2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 196608, - "cost": { - "input": 0.15, - "output": 0.9, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m2.7", - "name": "MiniMax: MiniMax M2.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 131072, - "cost": { - "input": 0.25, - "output": 1, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m3", - "name": "MiniMax: MiniMax M3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 524288, - "maxTokens": 512000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/codestral-2508", - "name": "Mistral: Codestral 2508", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 4096, - "cost": { - "input": 0.3, - "output": 0.9, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/devstral-2512", - "name": "Mistral: Devstral 2 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/ministral-14b-2512", - "name": "Mistral: Ministral 3 14B 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.2, - "output": 0.2, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/ministral-3b-2512", - "name": "Mistral: Ministral 3 3B 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.1, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/ministral-8b-2512", - "name": "Mistral: Ministral 3 8B 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-large", - "name": "Mistral Large", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-large-2407", - "name": "Mistral Large 2407", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-large-2512", - "name": "Mistral: Mistral Large 3 2512", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-medium-3", - "name": "Mistral: Mistral Medium 3", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-medium-3-5", - "name": "Mistral: Mistral Medium 3.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-medium-3.1", - "name": "Mistral: Mistral Medium 3.1", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-nemo", - "name": "Mistral: Mistral Nemo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.019, - "output": 0.03, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-saba", - "name": "Mistral: Saba", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 4096, - "cost": { - "input": 0.2, - "output": 0.6, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-small-2603", - "name": "Mistral: Mistral Small 4", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mistral-small-3.2-24b-instruct", - "name": "Mistral: Mistral Small 3.2 24B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/mixtral-8x22b-instruct", - "name": "Mistral: Mixtral 8x22B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 65536, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistralai/voxtral-small-24b-2507", - "name": "Mistral: Voxtral Small 24B 2507", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32000, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2", - "name": "MoonshotAI: Kimi K2 0711", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 100352, - "cost": { - "input": 0.57, - "output": 2.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2-0905", - "name": "MoonshotAI: Kimi K2 0905", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 100352, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2-thinking", - "name": "MoonshotAI: Kimi K2 Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 100352, - "cost": { - "input": 0.6, - "output": 2.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.5", - "name": "MoonshotAI: Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.41, - "output": 2.06, - "cacheRead": 0.07, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.6", - "name": "MoonshotAI: Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.684, - "output": 3.42, - "cacheRead": 0.144, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.7-code", - "name": "MoonshotAI: Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.82, - "output": 3.75, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k3", - "name": "MoonshotAI: Kimi K3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nex-agi/nex-n2-mini", - "name": "Nex AGI: Nex-N2-Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.025, - "output": 0.1, - "cacheRead": 0.0025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nex-agi/nex-n2-pro", - "name": "Nex AGI: Nex-N2-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.25, - "output": 1, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-30b-a3b", - "name": "NVIDIA: Nemotron 3 Nano 30B A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 228000, - "cost": { - "input": 0.05, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-30b-a3b:free", - "name": "NVIDIA: Nemotron 3 Nano 30B A3B (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free", - "name": "NVIDIA: Nemotron 3 Nano Omni (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-super-120b-a12b", - "name": "NVIDIA: Nemotron 3 Super", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.08, - "output": 0.45, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-super-120b-a12b:free", - "name": "NVIDIA: Nemotron 3 Super (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-ultra-550b-a55b", - "name": "NVIDIA: Nemotron 3 Ultra", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 512288, - "maxTokens": 4096, - "cost": { - "input": 0.6, - "output": 3.6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-ultra-550b-a55b:free", - "name": "NVIDIA: Nemotron 3 Ultra (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-nano-12b-v2-vl:free", - "name": "NVIDIA: Nemotron Nano 12B 2 VL (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-nano-9b-v2:free", - "name": "NVIDIA: Nemotron Nano 9B V2 (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-3.5-turbo", - "name": "OpenAI: GPT-3.5 Turbo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 16385, - "maxTokens": 4096, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-3.5-turbo-0613", - "name": "OpenAI: GPT-3.5 Turbo (older v0613)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 4095, - "maxTokens": 4096, - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-3.5-turbo-16k", - "name": "OpenAI: GPT-3.5 Turbo 16k", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 16385, - "maxTokens": 4096, - "cost": { - "input": 3, - "output": 4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4", - "name": "OpenAI: GPT-4", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 8191, - "maxTokens": 4096, - "cost": { - "input": 30, - "output": 60, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4-turbo", - "name": "OpenAI: GPT-4 Turbo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4-turbo-preview", - "name": "OpenAI: GPT-4 Turbo Preview", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1", - "name": "OpenAI: GPT-4.1", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1-mini", - "name": "OpenAI: GPT-4.1 Mini", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1-nano", - "name": "OpenAI: GPT-4.1 Nano", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o", - "name": "OpenAI: GPT-4o", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-2024-05-13", - "name": "OpenAI: GPT-4o (2024-05-13)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 5, - "output": 15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-2024-08-06", - "name": "OpenAI: GPT-4o (2024-08-06)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-2024-11-20", - "name": "OpenAI: GPT-4o (2024-11-20)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-mini", - "name": "OpenAI: GPT-4o-mini", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-mini-2024-07-18", - "name": "OpenAI: GPT-4o-mini (2024-07-18)", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5", - "name": "OpenAI: GPT-5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-codex", - "name": "OpenAI: GPT-5 Codex", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-mini", - "name": "OpenAI: GPT-5 Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-nano", - "name": "OpenAI: GPT-5 Nano", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.05, - "output": 0.4, - "cacheRead": 0.005, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-pro", - "name": "OpenAI: GPT-5 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 15, - "output": 120, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1", - "name": "OpenAI: GPT-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-chat", - "name": "OpenAI: GPT-5.1 Chat", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex", - "name": "OpenAI: GPT-5.1-Codex", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex-max", - "name": "OpenAI: GPT-5.1-Codex-Max", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex-mini", - "name": "OpenAI: GPT-5.1-Codex-Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 100000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2", - "name": "OpenAI: GPT-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-chat", - "name": "OpenAI: GPT-5.2 Chat", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-codex", - "name": "OpenAI: GPT-5.2-Codex", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-pro", - "name": "OpenAI: GPT-5.2 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 21, - "output": 168, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.3-chat", - "name": "OpenAI: GPT-5.3 Chat", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.3-codex", - "name": "OpenAI: GPT-5.3-Codex", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4", - "name": "OpenAI: GPT-5.4", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-mini", - "name": "OpenAI: GPT-5.4 Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-nano", - "name": "OpenAI: GPT-5.4 Nano", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-pro", - "name": "OpenAI: GPT-5.4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.5", - "name": "OpenAI: GPT-5.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.5-pro", - "name": "OpenAI: GPT-5.5 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.6-luna", - "name": "OpenAI: GPT-5.6 Luna", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-luna-pro", - "name": "OpenAI: GPT-5.6 Luna Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-sol", - "name": "OpenAI: GPT-5.6 Sol", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-sol-pro", - "name": "OpenAI: GPT-5.6 Sol Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-terra", - "name": "OpenAI: GPT-5.6 Terra", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "openai/gpt-5.6-terra-pro", - "name": "OpenAI: GPT-5.6 Terra Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "openai/gpt-audio", - "name": "OpenAI: GPT Audio", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-audio-mini", - "name": "OpenAI: GPT Audio Mini", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-chat-latest", - "name": "OpenAI: GPT Chat Latest", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "OpenAI: gpt-oss-120b", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.037, - "output": 0.17, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "OpenAI: gpt-oss-20b", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.03, - "output": 0.13, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b:free", - "name": "OpenAI: gpt-oss-20b (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-safeguard-20b", - "name": "OpenAI: gpt-oss-safeguard-20b", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0.0375, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o1", - "name": "OpenAI: o1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 15, - "output": 60, - "cacheRead": 7.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3", - "name": "OpenAI: o3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-deep-research", - "name": "OpenAI: o3 Deep Research", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 10, - "output": 40, - "cacheRead": 2.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-mini", - "name": "OpenAI: o3 Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-mini-high", - "name": "OpenAI: o3 Mini High", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-pro", - "name": "OpenAI: o3 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 20, - "output": 80, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o4-mini", - "name": "OpenAI: o4 Mini", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o4-mini-deep-research", - "name": "OpenAI: o4 Mini Deep Research", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o4-mini-high", - "name": "OpenAI: o4 Mini High", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openrouter/auto", - "name": "Auto Router", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 4096, - "cost": { - "input": -1000000, - "output": -1000000, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openrouter/auto-beta", - "name": "Auto Router (Beta)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 4096, - "cost": { - "input": -1000000, - "output": -1000000, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openrouter/free", - "name": "Free Models Router", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openrouter/fusion", - "name": "OpenRouter: Fusion", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 30000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-m.1", - "name": "Poolside: Laguna M.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.2, - "output": 0.4, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-m.1:free", - "name": "Poolside: Laguna M.1 (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-s-2.1", - "name": "Poolside: Laguna S 2.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.1, - "output": 0.2, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-s-2.1:free", - "name": "Poolside: Laguna S 2.1 (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-xs-2.1", - "name": "Poolside: Laguna XS 2.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.06, - "output": 0.12, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-xs-2.1:free", - "name": "Poolside: Laguna XS 2.1 (free)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen-2.5-72b-instruct", - "name": "Qwen2.5 72B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 16384, - "cost": { - "input": 0.36, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen-2.5-7b-instruct", - "name": "Qwen: Qwen2.5 7B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 32768, - "cost": { - "input": 0.04, - "output": 0.1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen-plus", - "name": "Qwen: Qwen-Plus", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 32768, - "cost": { - "input": 0.26, - "output": 0.78, - "cacheRead": 0.052, - "cacheWrite": 0.325 - } - } - }, - { - "modelId": "qwen/qwen-plus-2025-07-28", - "name": "Qwen: Qwen Plus 0728", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 32768, - "cost": { - "input": 0.26, - "output": 0.78, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen-plus-2025-07-28:thinking", - "name": "Qwen: Qwen Plus 0728 (thinking)", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 32768, - "cost": { - "input": 0.26, - "output": 0.78, - "cacheRead": 0, - "cacheWrite": 0.325 - } - } - }, - { - "modelId": "qwen/qwen3-14b", - "name": "Qwen: Qwen3 14B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 40960, - "maxTokens": 16384, - "cost": { - "input": 0.12, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-235b-a22b", - "name": "Qwen: Qwen3 235B A22B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 8192, - "cost": { - "input": 0.455, - "output": 1.82, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-235b-a22b-2507", - "name": "Qwen: Qwen3 235B A22B Instruct 2507", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0.09, - "output": 0.55, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-235b-a22b-thinking-2507", - "name": "Qwen: Qwen3 235B A22B Thinking 2507", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.3, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-30b-a3b", - "name": "Qwen: Qwen3 30B A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 8192, - "cost": { - "input": 0.13, - "output": 0.52, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-30b-a3b-instruct-2507", - "name": "Qwen: Qwen3 30B A3B Instruct 2507", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-30b-a3b-thinking-2507", - "name": "Qwen: Qwen3 30B A3B Thinking 2507", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 81920, - "maxTokens": 32768, - "cost": { - "input": 0.13, - "output": 1.56, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-32b", - "name": "Qwen: Qwen3 32B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 40960, - "maxTokens": 16384, - "cost": { - "input": 0.08, - "output": 0.28, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-8b", - "name": "Qwen: Qwen3 8B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 8192, - "cost": { - "input": 0.117, - "output": 0.455, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-coder", - "name": "Qwen: Qwen3 Coder 480B A35B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 1, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-coder-30b-a3b-instruct", - "name": "Qwen: Qwen3 Coder 30B A3B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 160000, - "maxTokens": 32768, - "cost": { - "input": 0.07, - "output": 0.27, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-coder-flash", - "name": "Qwen: Qwen3 Coder Flash", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.195, - "output": 0.975, - "cacheRead": 0.039, - "cacheWrite": 0.24375 - } - } - }, - { - "modelId": "qwen/qwen3-coder-next", - "name": "Qwen: Qwen3 Coder Next", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.11, - "output": 0.8, - "cacheRead": 0.07, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-coder-plus", - "name": "Qwen: Qwen3 Coder Plus", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.65, - "output": 3.25, - "cacheRead": 0.13, - "cacheWrite": 0.8125 - } - } - }, - { - "modelId": "qwen/qwen3-max", - "name": "Qwen: Qwen3 Max", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.78, - "output": 3.9, - "cacheRead": 0.156, - "cacheWrite": 0.975 - } - } - }, - { - "modelId": "qwen/qwen3-max-thinking", - "name": "Qwen: Qwen3 Max Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0.78, - "output": 3.9, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-next-80b-a3b-instruct", - "name": "Qwen: Qwen3 Next 80B A3B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.1, - "output": 1.1, - "cacheRead": 0.07, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-next-80b-a3b-thinking", - "name": "Qwen: Qwen3 Next 80B A3B Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.0975, - "output": 0.78, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-235b-a22b-instruct", - "name": "Qwen: Qwen3 VL 235B A22B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.21, - "output": 1.9, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-235b-a22b-thinking", - "name": "Qwen: Qwen3 VL 235B A22B Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.26, - "output": 2.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-30b-a3b-instruct", - "name": "Qwen: Qwen3 VL 30B A3B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.13, - "output": 0.52, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-30b-a3b-thinking", - "name": "Qwen: Qwen3 VL 30B A3B Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.13, - "output": 1.56, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-32b-instruct", - "name": "Qwen: Qwen3 VL 32B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.104, - "output": 0.416, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-8b-instruct", - "name": "Qwen: Qwen3 VL 8B Instruct", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.117, - "output": 0.455, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3-vl-8b-thinking", - "name": "Qwen: Qwen3 VL 8B Thinking", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.117, - "output": 1.365, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-122b-a10b", - "name": "Qwen: Qwen3.5-122B-A10B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.26, - "output": 2.08, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-27b", - "name": "Qwen: Qwen3.5-27B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 81920, - "cost": { - "input": 0.26, - "output": 2.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-35b-a3b", - "name": "Qwen: Qwen3.5-35B-A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.14, - "output": 1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-397b-a17b", - "name": "Qwen: Qwen3.5 397B A17B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.39, - "output": 2.34, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-9b", - "name": "Qwen: Qwen3.5-9B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.1, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-flash-02-23", - "name": "Qwen: Qwen3.5-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.065, - "output": 0.26, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-plus-02-15", - "name": "Qwen: Qwen3.5 Plus 2026-02-15", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.26, - "output": 1.56, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.5-plus-20260420", - "name": "Qwen: Qwen3.5 Plus 2026-04-20", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 1.8, - "cacheRead": 0, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "qwen/qwen3.6-27b", - "name": "Qwen: Qwen3.6 27B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.45, - "output": 2.7, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.6-35b-a3b", - "name": "Qwen: Qwen3.6 35B A3B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.14, - "output": 1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen/qwen3.6-flash", - "name": "Qwen: Qwen3.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.1875, - "output": 1.125, - "cacheRead": 0, - "cacheWrite": 0.234375 - } - } - }, - { - "modelId": "qwen/qwen3.6-max-preview", - "name": "Qwen: Qwen3.6 Max Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 1.04, - "output": 6.24, - "cacheRead": 0, - "cacheWrite": 1.3 - } - } - }, - { - "modelId": "qwen/qwen3.6-plus", - "name": "Qwen: Qwen3.6 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.325, - "output": 1.95, - "cacheRead": 0, - "cacheWrite": 0.40625 - } - } - }, - { - "modelId": "qwen/qwen3.7-max", - "name": "Qwen: Qwen3.7 Max", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 1.475, - "output": 4.425, - "cacheRead": 0.295, - "cacheWrite": 1.84375 - } - } - }, - { - "modelId": "qwen/qwen3.7-plus", - "name": "Qwen: Qwen3.7 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.32, - "output": 1.28, - "cacheRead": 0.064, - "cacheWrite": 0.4 - } - } - }, - { - "modelId": "rekaai/reka-edge", - "name": "Reka Edge", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 16384, - "maxTokens": 16384, - "cost": { - "input": 0.1, - "output": 0.1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "relace/relace-search", - "name": "Relace: Relace Search", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "sakana/fugu-ultra", - "name": "Sakana: Fugu Ultra", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "sao10k/l3.1-euryale-70b", - "name": "Sao10K: Llama 3.1 Euryale 70B v2.2", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 16384, - "cost": { - "input": 0.85, - "output": 0.85, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun/step-3.5-flash", - "name": "StepFun: Step 3.5 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun/step-3.7-flash", - "name": "StepFun: Step 3.7 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.2, - "output": 1.15, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "tencent/hy3", - "name": "Tencent: Hy3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.14, - "output": 0.58, - "cacheRead": 0.035, - "cacheWrite": 0 - } - } - }, - { - "modelId": "tencent/hy3-preview", - "name": "Tencent: Hy3 preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 4096, - "cost": { - "input": 0.063, - "output": 0.21, - "cacheRead": 0.021, - "cacheWrite": 0 - } - } - }, - { - "modelId": "thedrummer/unslopnemo-12b", - "name": "TheDrummer: UnslopNemo 12B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "thinkingmachines/inkling", - "name": "Thinking Machines: Inkling", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 524288, - "maxTokens": 4096, - "cost": { - "input": 1, - "output": 4.05, - "cacheRead": 0.17, - "cacheWrite": 0 - } - } - }, - { - "modelId": "upstage/solar-pro-3", - "name": "Upstage: Solar Pro 3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "x-ai/grok-4.20", - "name": "xAI: Grok 4.20", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 4096, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "x-ai/grok-4.3", - "name": "xAI: Grok 4.3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 4096, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "x-ai/grok-4.5", - "name": "xAI: Grok 4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "x-ai/grok-build-0.1", - "name": "xAI: Grok Build 0.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 4096, - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xiaomi/mimo-v2.5", - "name": "Xiaomi: MiMo-V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xiaomi/mimo-v2.5-pro", - "name": "Xiaomi: MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.0036, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.5", - "name": "Z.ai: GLM 4.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.5-air", - "name": "Z.ai: GLM 4.5 Air", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0.13, - "output": 0.85, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.5v", - "name": "Z.ai: GLM 4.5V", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 65536, - "maxTokens": 16384, - "cost": { - "input": 0.6, - "output": 1.8, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.6", - "name": "Z.ai: GLM 4.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 0.5, - "output": 2, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.6v", - "name": "Z.ai: GLM 4.6V", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.3, - "output": 0.9, - "cacheRead": 0.055, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.7", - "name": "Z.ai: GLM 4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 0.4, - "output": 1.75, - "cacheRead": 0.08, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-4.7-flash", - "name": "Z.ai: GLM 4.7 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.0605, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5", - "name": "Z.ai: GLM 5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.6, - "output": 1.9, - "cacheRead": 0.119, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5-turbo", - "name": "Z.ai: GLM 5 Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 1.2, - "output": 4, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5.1", - "name": "Z.ai: GLM 5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 128000, - "cost": { - "input": 0.966, - "output": 3.036, - "cacheRead": 0.1794, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5.2", - "name": "Z.ai: GLM 5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.8204, - "output": 2.5784, - "cacheRead": 0.15236, - "cacheWrite": 0 - } - } - }, - { - "modelId": "z-ai/glm-5v-turbo", - "name": "Z.ai: GLM 5V Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 1.2, - "output": 4, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "~anthropic/claude-fable-latest", - "name": "Anthropic: Claude Fable Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "~anthropic/claude-haiku-latest", - "name": "Anthropic Claude Haiku Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "~anthropic/claude-opus-latest", - "name": "Anthropic: Claude Opus Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "~anthropic/claude-sonnet-latest", - "name": "Anthropic Claude Sonnet Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "~google/gemini-flash-latest", - "name": "Google Gemini Flash Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0.083333 - } - } - }, - { - "modelId": "~google/gemini-pro-latest", - "name": "Google Gemini Pro Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "~moonshotai/kimi-latest", - "name": "MoonshotAI Kimi Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "~openai/gpt-latest", - "name": "OpenAI GPT Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "~openai/gpt-mini-latest", - "name": "OpenAI GPT Mini Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "~x-ai/grok-latest", - "name": "xAI: Grok Latest", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 4096, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/qwen-token-plan-cn.ts b/packages/core/src/generated/providers/qwen-token-plan-cn.ts deleted file mode 100644 index 3e1434ec..00000000 --- a/packages/core/src/generated/providers/qwen-token-plan-cn.ts +++ /dev/null @@ -1,306 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "qwen-token-plan-cn" -export const providerConfig = { - "name": "qwen-token-plan-cn", - "config": { - "api": "openai-completions", - "baseUrl": "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1", - "apiKey": "" - }, - "models": [ - { - "modelId": "MiniMax-M2.5", - "name": "MiniMax-M2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 24576, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v3.2", - "name": "DeepSeek V3.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5", - "name": "GLM-5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.6-flash", - "name": "Qwen3.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.6-plus", - "name": "Qwen3.6 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.7-max", - "name": "Qwen3.7 Max", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.7-plus", - "name": "Qwen3.7 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.8-max-preview", - "name": "Qwen3.8 Max Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/qwen-token-plan.ts b/packages/core/src/generated/providers/qwen-token-plan.ts deleted file mode 100644 index cac31524..00000000 --- a/packages/core/src/generated/providers/qwen-token-plan.ts +++ /dev/null @@ -1,306 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "qwen-token-plan" -export const providerConfig = { - "name": "qwen-token-plan", - "config": { - "api": "openai-completions", - "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1", - "apiKey": "" - }, - "models": [ - { - "modelId": "MiniMax-M2.5", - "name": "MiniMax-M2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 196608, - "maxTokens": 24576, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v3.2", - "name": "DeepSeek V3.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5", - "name": "GLM-5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 128000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.6-flash", - "name": "Qwen3.6 Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.6-plus", - "name": "Qwen3.6 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.7-max", - "name": "Qwen3.7 Max", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.7-plus", - "name": "Qwen3.7 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "qwen3.8-max-preview", - "name": "Qwen3.8 Max Preview", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/together.ts b/packages/core/src/generated/providers/together.ts deleted file mode 100644 index d549fa22..00000000 --- a/packages/core/src/generated/providers/together.ts +++ /dev/null @@ -1,323 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "together" -export const providerConfig = { - "name": "together", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.together.ai/v1", - "apiKey": "TOGETHER_API_KEY" - }, - "models": [ - { - "modelId": "MiniMaxAI/MiniMax-M2.7", - "name": "MiniMax-M2.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202752, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "MiniMaxAI/MiniMax-M3", - "name": "MiniMax-M3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 524288, - "maxTokens": 250000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen2.5-7B-Instruct-Turbo", - "name": "Qwen 2.5 7B Instruct Turbo", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32768, - "maxTokens": 32768, - "cost": { - "input": 0.3, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.5-9B", - "name": "Qwen3.5 9B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.17, - "output": 0.25, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.6-Plus", - "name": "Qwen3.6 Plus", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 500000, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "Qwen/Qwen3.7-Max", - "name": "Qwen3.7 Max", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 500000, - "cost": { - "input": 1.25, - "output": 3.75, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek-ai/DeepSeek-V4-Pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 512000, - "maxTokens": 384000, - "cost": { - "input": 1.74, - "output": 3.48, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-31B-it", - "name": "Gemma 4 31B Instruct", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.39, - "output": 0.97, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta-llama/Llama-3.3-70B-Instruct-Turbo", - "name": "Llama 3.3 70B", - "config": { - "api": "openai-completions", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 1.04, - "output": 1.04, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2.6", - "name": "Kimi K2.6", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131000, - "cost": { - "input": 1.2, - "output": 4.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/Kimi-K2.7-Code", - "name": "Kimi K2.7 Code", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-ultra-550b-a55b", - "name": "Nemotron 3 Ultra 550B A55B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 512300, - "maxTokens": 512300, - "cost": { - "input": 0.6, - "output": 3.6, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.05, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "thinkingmachines/Inkling", - "name": "Inkling", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 524288, - "maxTokens": 131072, - "cost": { - "input": 1, - "output": 4.05, - "cacheRead": 0.17, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai-org/GLM-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 164000, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/vercel-ai-gateway.ts b/packages/core/src/generated/providers/vercel-ai-gateway.ts deleted file mode 100644 index 6d53ca56..00000000 --- a/packages/core/src/generated/providers/vercel-ai-gateway.ts +++ /dev/null @@ -1,3780 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "vercel-ai-gateway" -export const providerConfig = { - "name": "vercel-ai-gateway", - "config": { - "api": "anthropic-messages", - "baseUrl": "https://ai-gateway.vercel.sh", - "apiKey": "AI_GATEWAY_API_KEY" - }, - "models": [ - { - "modelId": "alibaba/qwen-3-14b", - "name": "Qwen3-14B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 40960, - "maxTokens": 16384, - "cost": { - "input": 0.12, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen-3-235b", - "name": "Qwen3 235B A22B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 16384, - "cost": { - "input": 0.22, - "output": 0.88, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen-3-30b", - "name": "Qwen3-30B-A3B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 40960, - "maxTokens": 16384, - "cost": { - "input": 0.12, - "output": 0.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen-3-32b", - "name": "Qwen 3 32B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.16, - "output": 0.64, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen-3.6-max-preview", - "name": "Qwen 3.6 Max Preview", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 240000, - "maxTokens": 64000, - "cost": { - "input": 1.3, - "output": 7.8, - "cacheRead": 0.26, - "cacheWrite": 1.625 - } - } - }, - { - "modelId": "alibaba/qwen3-235b-a22b-thinking", - "name": "Qwen3 VL 235B A22B Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-coder", - "name": "Qwen3 Coder 480B A35B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-coder-30b-a3b", - "name": "Qwen 3 Coder 30B A3B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 8192, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-coder-next", - "name": "Qwen3 Coder Next", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.5, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-coder-plus", - "name": "Qwen3 Coder Plus", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-max", - "name": "Qwen3 Max", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 1.2, - "output": 6, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-max-preview", - "name": "Qwen3 Max Preview", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 1.2, - "output": 6, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-max-thinking", - "name": "Qwen 3 Max Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 65536, - "cost": { - "input": 1.2, - "output": 6, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-next-80b-a3b-instruct", - "name": "Qwen3 Next 80B A3B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.15, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-next-80b-a3b-thinking", - "name": "Qwen3 Next 80B A3B Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.15, - "output": 1.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-vl-235b-a22b-instruct", - "name": "Qwen3 VL 235B A22B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 129024, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-vl-instruct", - "name": "Qwen3 VL 235B A22B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 129024, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3-vl-thinking", - "name": "Qwen3 VL 235B A22B Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3.5-flash", - "name": "Qwen 3.5 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.001, - "cacheWrite": 0.125 - } - } - }, - { - "modelId": "alibaba/qwen3.5-plus", - "name": "Qwen 3.5 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0.4, - "output": 2.4, - "cacheRead": 0.04, - "cacheWrite": 0.5 - } - } - }, - { - "modelId": "alibaba/qwen3.6-27b", - "name": "Qwen 3.6 27B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.6, - "output": 3.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "alibaba/qwen3.6-plus", - "name": "Qwen 3.6 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0.625 - } - } - }, - { - "modelId": "alibaba/qwen3.7-max", - "name": "Qwen 3.7 Max", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 991000, - "maxTokens": 64000, - "cost": { - "input": 1.25, - "output": 3.75, - "cacheRead": 0.25, - "cacheWrite": 1.5625 - } - } - }, - { - "modelId": "alibaba/qwen3.7-plus", - "name": "Qwen 3.7 Plus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.08, - "cacheWrite": 0.5 - } - } - }, - { - "modelId": "amazon/nova-2-lite", - "name": "Nova 2 Lite", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-lite", - "name": "Nova Lite", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 8192, - "cost": { - "input": 0.06, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-micro", - "name": "Nova Micro", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.035, - "output": 0.14, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "amazon/nova-pro", - "name": "Nova Pro", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 300000, - "maxTokens": 8192, - "cost": { - "input": 0.8, - "output": 3.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "anthropic/claude-3-haiku", - "name": "Claude 3 Haiku", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 4096, - "cost": { - "input": 0.25, - "output": 1.25, - "cacheRead": 0.03, - "cacheWrite": 0.3 - } - } - }, - { - "modelId": "anthropic/claude-fable-5", - "name": "Claude Fable 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "anthropic/claude-haiku-4.5", - "name": "Claude Haiku 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 1, - "output": 5, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4", - "name": "Claude Opus 4", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 8192, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.1", - "name": "Claude Opus 4.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 32000, - "cost": { - "input": 15, - "output": 75, - "cacheRead": 1.5, - "cacheWrite": 18.75 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.5", - "name": "Claude Opus 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 64000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.6", - "name": "Claude Opus 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.7", - "name": "Claude Opus 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.7-fast", - "name": "Claude Opus 4.7 (Fast)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 150, - "cacheRead": 3, - "cacheWrite": 37.5 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.8", - "name": "Claude Opus 4.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 25, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "anthropic/claude-opus-4.8-fast", - "name": "Claude Opus 4.8 (Fast)", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 10, - "output": 50, - "cacheRead": 1, - "cacheWrite": 12.5 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4", - "name": "Claude Sonnet 4", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 8192, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4.5", - "name": "Claude Sonnet 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-4.6", - "name": "Claude Sonnet 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 3.75 - } - } - }, - { - "modelId": "anthropic/claude-sonnet-5", - "name": "Claude Sonnet 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2, - "output": 10, - "cacheRead": 0.2, - "cacheWrite": 2.5 - } - } - }, - { - "modelId": "arcee-ai/trinity-large-thinking", - "name": "Trinity Large Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262100, - "maxTokens": 80000, - "cost": { - "input": 0.25, - "output": 0.9, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "arcee-ai/trinity-mini", - "name": "Trinity Mini", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.045, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance/seed-1.6", - "name": "Seed 1.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 32000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "bytedance/seed-1.8", - "name": "Bytedance Seed 1.8", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 64000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "cohere/command-a", - "name": "Command A", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 8000, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-r1", - "name": "DeepSeek-R1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 1.35, - "output": 5.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3", - "name": "DeepSeek V3 0324", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 163840, - "cost": { - "input": 0.27, - "output": 1.12, - "cacheRead": 0.135, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.1", - "name": "DeepSeek V3.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 163840, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 0.95, - "cacheRead": 0.13, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.1-terminus", - "name": "DeepSeek V3.1 Terminus", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.27, - "output": 1, - "cacheRead": 0.135, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.2", - "name": "DeepSeek V3.2", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8000, - "cost": { - "input": 0.28, - "output": 0.42, - "cacheRead": 0.028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v3.2-thinking", - "name": "DeepSeek V3.2 Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8000, - "cost": { - "input": 0.62, - "output": 1.85, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "deepseek/deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 384000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.0036, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-2.5-flash", - "name": "Gemini 2.5 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65536, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-2.5-flash-lite", - "name": "Gemini 2.5 Flash Lite", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-2.5-pro", - "name": "Gemini 2.5 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 65536, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3-flash", - "name": "Gemini 3 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65000, - "cost": { - "input": 0.5, - "output": 3, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3-pro-preview", - "name": "Gemini 3 Pro Preview", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.1-flash-lite", - "name": "Gemini 3.1 Flash Lite", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65000, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.1-flash-lite-preview", - "name": "Gemini 3.1 Flash Lite Preview", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65000, - "cost": { - "input": 0.25, - "output": 1.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.1-pro-preview", - "name": "Gemini 3.1 Pro Preview", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 2, - "output": 12, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.5-flash", - "name": "Gemini 3.5 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 1.5, - "output": 9, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.5-flash-lite", - "name": "Gemini 3.5 Flash Lite", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 65000, - "cost": { - "input": 0.3, - "output": 2.5, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemini-3.6-flash", - "name": "Gemini 3.6 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 64000, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-26b-a4b-it", - "name": "Gemma 4 26B A4B IT", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.015, - "cacheWrite": 0 - } - } - }, - { - "modelId": "google/gemma-4-31b-it", - "name": "Gemma 4 31B IT", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.14, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inception/mercury-2", - "name": "Mercury 2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 0.75, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "inception/mercury-coder-small", - "name": "Mercury Coder Small Beta", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 32000, - "maxTokens": 16384, - "cost": { - "input": 0.25, - "output": 1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "interfaze/interfaze-beta", - "name": "Interfaze Beta", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 32000, - "cost": { - "input": 1.5, - "output": 3.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-air-v2.5", - "name": "Kat Coder Air V2.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 80000, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-pro-v1", - "name": "KAT-Coder-Pro V1", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 32000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-pro-v2", - "name": "Kat Coder Pro V2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "kwaipilot/kat-coder-pro-v2.5", - "name": "Kat Coder Pro V2.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 80000, - "cost": { - "input": 0.74, - "output": 2.96, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.1-70b", - "name": "Llama 3.1 70B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.72, - "output": 0.72, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.1-8b", - "name": "Llama 3.1 8B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.22, - "output": 0.22, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-3.3-70b", - "name": "Llama 3.3 70B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.72, - "output": 0.72, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-4-maverick", - "name": "Llama 4 Maverick 17B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.24, - "output": 0.97, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/llama-4-scout", - "name": "Llama 4 Scout 17B Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 8192, - "cost": { - "input": 0.17, - "output": 0.66, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "meta/muse-spark-1.1", - "name": "Muse Spark 1.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 1048576, - "cost": { - "input": 1.25, - "output": 4.25, - "cacheRead": 0.15, - "cacheWrite": 0 - } - } - }, - { - "modelId": "minimax/minimax-m2", - "name": "MiniMax M2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 205000, - "maxTokens": 205000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.1", - "name": "MiniMax M2.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.1-lightning", - "name": "MiniMax M2.1 Lightning", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0.3, - "output": 2.4, - "cacheRead": 0.03, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.5", - "name": "MiniMax M2.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.03, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.5-highspeed", - "name": "MiniMax M2.5 High Speed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131000, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0.03, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.7", - "name": "MiniMax M2.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m2.7-highspeed", - "name": "MiniMax M2.7 High Speed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131100, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0.06, - "cacheWrite": 0.375 - } - } - }, - { - "modelId": "minimax/minimax-m3", - "name": "MiniMax M3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 0.3, - "output": 1.2, - "cacheRead": 0.06, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/codestral", - "name": "Mistral Codestral", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 0.3, - "output": 0.9, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/devstral-2", - "name": "Devstral 2", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/devstral-small-2", - "name": "Devstral Small 2", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/magistral-medium", - "name": "Magistral Medium 2509", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 64000, - "cost": { - "input": 2, - "output": 5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/magistral-small", - "name": "Magistral Small 2509", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 64000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/ministral-14b", - "name": "Ministral 14B", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.2, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/ministral-3b", - "name": "Ministral 3B", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 0.1, - "output": 0.1, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/ministral-8b", - "name": "Ministral 8B", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/mistral-large-3", - "name": "Mistral Large 3", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/mistral-medium", - "name": "Mistral Medium 3.1", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 64000, - "cost": { - "input": 0.4, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/mistral-medium-3.5", - "name": "Mistral Medium Latest", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 1.5, - "output": 7.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/mistral-nemo", - "name": "Mistral Nemo 12B", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 128000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/mistral-small", - "name": "Mistral Small", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 32000, - "maxTokens": 4000, - "cost": { - "input": 0.1, - "output": 0.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mistral/pixtral-12b", - "name": "Pixtral 12B 2409", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4000, - "cost": { - "input": 0.15, - "output": 0.15, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2", - "name": "Kimi K2 Instruct", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.57, - "output": 2.3, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2-thinking", - "name": "Kimi K2 Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 216144, - "maxTokens": 216144, - "cost": { - "input": 0.47, - "output": 2, - "cacheRead": 0.141, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.5", - "name": "Kimi K2.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262114, - "maxTokens": 262114, - "cost": { - "input": 0.6, - "output": 3, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.6", - "name": "Kimi K2.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262000, - "maxTokens": 262000, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.16, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.7-code", - "name": "Kimi K2.7 Code", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 32768, - "cost": { - "input": 0.95, - "output": 4, - "cacheRead": 0.19, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k2.7-code-highspeed", - "name": "Kimi K2.7 Code High Speed", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 32768, - "cost": { - "input": 1.9, - "output": 8, - "cacheRead": 0.38, - "cacheWrite": 0 - } - } - }, - { - "modelId": "moonshotai/kimi-k3", - "name": "Kimi K3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 3, - "output": 15, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-nano-30b-a3b", - "name": "Nemotron 3 Nano 30B A3B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 262144, - "cost": { - "input": 0.05, - "output": 0.24, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-super-120b-a12b", - "name": "NVIDIA Nemotron 3 Super 120B A12B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 32000, - "cost": { - "input": 0.15, - "output": 0.65, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-3-ultra-550b-a55b", - "name": "Nemotron 3 Ultra", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 65000, - "cost": { - "input": 0.6, - "output": 2.4, - "cacheRead": 0.12, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-nano-12b-v2-vl", - "name": "Nvidia Nemotron Nano 12B V2 VL", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.2, - "output": 0.6, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "nvidia/nemotron-nano-9b-v2", - "name": "Nvidia Nemotron Nano 9B V2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.06, - "output": 0.23, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-3.5-turbo", - "name": "GPT-3.5 Turbo", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text" - ], - "contextWindow": 16385, - "maxTokens": 4096, - "cost": { - "input": 0.5, - "output": 1.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4-turbo", - "name": "GPT-4 Turbo", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 4096, - "cost": { - "input": 10, - "output": 30, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1", - "name": "GPT-4.1", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1-mini", - "name": "GPT-4.1 mini", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.4, - "output": 1.6, - "cacheRead": 0.1, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4.1-nano", - "name": "GPT-4.1 nano", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1047576, - "maxTokens": 32768, - "cost": { - "input": 0.1, - "output": 0.4, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o", - "name": "GPT-4o", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 2.5, - "output": 10, - "cacheRead": 1.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-4o-mini", - "name": "GPT-4o mini", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 0.15, - "output": 0.6, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5", - "name": "GPT-5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-chat", - "name": "GPT 5 Chat", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-codex", - "name": "GPT-5-Codex", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-mini", - "name": "GPT-5 mini", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-nano", - "name": "GPT-5 nano", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.05, - "output": 0.4, - "cacheRead": 0.005, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5-pro", - "name": "GPT-5 pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 272000, - "cost": { - "input": 15, - "output": 120, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex", - "name": "GPT-5.1-Codex", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex-max", - "name": "GPT 5.1 Codex Max", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-codex-mini", - "name": "GPT 5.1 Codex Mini", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.25, - "output": 2, - "cacheRead": 0.025, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-instant", - "name": "GPT-5.1 Instant", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.1-thinking", - "name": "GPT 5.1 Thinking", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.25, - "output": 10, - "cacheRead": 0.125, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2", - "name": "GPT 5.2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-chat", - "name": "GPT 5.2 Chat", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-codex", - "name": "GPT 5.2 Codex", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.2-pro", - "name": "GPT 5.2 ", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 21, - "output": 168, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.3-chat", - "name": "GPT-5.3 Chat", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 16384, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.3-codex", - "name": "GPT 5.3 Codex", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 1.75, - "output": 14, - "cacheRead": 0.175, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4", - "name": "GPT 5.4", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-mini", - "name": "GPT 5.4 Mini", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.75, - "output": 4.5, - "cacheRead": 0.075, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-nano", - "name": "GPT 5.4 Nano", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 400000, - "maxTokens": 128000, - "cost": { - "input": 0.2, - "output": 1.25, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.4-pro", - "name": "GPT 5.4 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.5", - "name": "GPT 5.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.5-pro", - "name": "GPT 5.5 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 30, - "output": 180, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-5.6-luna", - "name": "GPT 5.6 Luna", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 1, - "output": 6, - "cacheRead": 0.1, - "cacheWrite": 1.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-sol", - "name": "GPT 5.6 Sol", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 6.25 - } - } - }, - { - "modelId": "openai/gpt-5.6-terra", - "name": "GPT 5.6 Terra", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 128000, - "cost": { - "input": 2.5, - "output": 15, - "cacheRead": 0.25, - "cacheWrite": 3.125 - } - } - }, - { - "modelId": "openai/gpt-oss-120b", - "name": "GPT OSS 120B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 131072, - "cost": { - "input": 0.1, - "output": 0.5, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-20b", - "name": "GPT OSS 20B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 8192, - "cost": { - "input": 0.05, - "output": 0.2, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/gpt-oss-safeguard-20b", - "name": "GPT OSS Safeguard 20B", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 65536, - "cost": { - "input": 0.075, - "output": 0.3, - "cacheRead": 0.037, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o1", - "name": "o1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 15, - "output": 60, - "cacheRead": 7.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3", - "name": "o3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 2, - "output": 8, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-deep-research", - "name": "o3-deep-research", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 10, - "output": 40, - "cacheRead": 2.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-mini", - "name": "o3-mini", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.55, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o3-pro", - "name": "o3 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 20, - "output": 80, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "openai/o4-mini", - "name": "o4-mini", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 100000, - "cost": { - "input": 1.1, - "output": 4.4, - "cacheRead": 0.275, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-s-2.1", - "name": "Laguna S 2.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0.1, - "output": 0.2, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "poolside/laguna-s-2.1-free", - "name": "Laguna S 2.1 Free", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 256000, - "maxTokens": 32768, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "sakana/fugu-ultra", - "name": "Fugu Ultra", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 5, - "output": 30, - "cacheRead": 0.5, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun/step-3.5-flash", - "name": "StepFun 3.5 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262114, - "maxTokens": 262114, - "cost": { - "input": 0.09, - "output": 0.3, - "cacheRead": 0.02, - "cacheWrite": 0 - } - } - }, - { - "modelId": "stepfun/step-3.7-flash", - "name": "Step 3.7 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 0.2, - "output": 1.15, - "cacheRead": 0.04, - "cacheWrite": 0 - } - } - }, - { - "modelId": "thinkingmachines/inkling", - "name": "Inkling", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 1, - "output": 4.05, - "cacheRead": 0.17, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.1-fast-non-reasoning", - "name": "Grok 4.1 Fast Non-Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 0.2, - "output": 0.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.1-fast-reasoning", - "name": "Grok 4.1 Fast Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 0.2, - "output": 0.5, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-multi-agent", - "name": "Grok 4.20 Multi-Agent", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-multi-agent-beta", - "name": "Grok 4.20 Multi Agent Beta", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-non-reasoning", - "name": "Grok 4.20 Non-Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-non-reasoning-beta", - "name": "Grok 4.20 Beta Non-Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": false, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-reasoning", - "name": "Grok 4.20 Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.20-reasoning-beta", - "name": "Grok 4.20 Beta Reasoning", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 2000000, - "maxTokens": 2000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.3", - "name": "Grok 4.3", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 1000000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-4.5", - "name": "Grok 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 500000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xai/grok-build-0.1", - "name": "Grok Build 0.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xiaomi/mimo-v2.5", - "name": "MiMo M2.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1050000, - "maxTokens": 131100, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "xiaomi/mimo-v2.5-pro", - "name": "MiMo V2.5 Pro", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1050000, - "maxTokens": 131000, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.0036, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.5", - "name": "GLM 4.5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 96000, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.5-air", - "name": "GLM 4.5 Air", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 128000, - "maxTokens": 96000, - "cost": { - "input": 0.2, - "output": 1.1, - "cacheRead": 0.03, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.5v", - "name": "GLM 4.5V", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 66000, - "maxTokens": 16000, - "cost": { - "input": 0.6, - "output": 1.8, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.6", - "name": "GLM 4.6", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 96000, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0.11, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.6v", - "name": "GLM-4.6V", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 24000, - "cost": { - "input": 0.3, - "output": 0.9, - "cacheRead": 0.05, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.6v-flash", - "name": "GLM-4.6V-Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 128000, - "maxTokens": 24000, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.7", - "name": "GLM 4.7", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 120000, - "cost": { - "input": 0.6, - "output": 2.2, - "cacheRead": 0.12, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.7-flash", - "name": "GLM 4.7 Flash", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131000, - "cost": { - "input": 0.07, - "output": 0.4, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-4.7-flashx", - "name": "GLM 4.7 FlashX", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 128000, - "cost": { - "input": 0.06, - "output": 0.4, - "cacheRead": 0.01, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5", - "name": "GLM 5", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202800, - "maxTokens": 131100, - "cost": { - "input": 0.95, - "output": 3.15, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5-turbo", - "name": "GLM 5 Turbo", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202800, - "maxTokens": 131100, - "cost": { - "input": 1.2, - "output": 4, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5.1", - "name": "GLM 5.1", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 202000, - "maxTokens": 202000, - "cost": { - "input": 1.3, - "output": 4.3, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5.2", - "name": "GLM 5.2", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1040000, - "maxTokens": 128000, - "cost": { - "input": 1.4, - "output": 4.4, - "cacheRead": 0.26, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5.2-fast", - "name": "GLM 5.2 Fast", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 128000, - "cost": { - "input": 2.1, - "output": 6.6, - "cacheRead": 0.21, - "cacheWrite": 0 - } - } - }, - { - "modelId": "zai/glm-5v-turbo", - "name": "GLM 5V Turbo", - "config": { - "api": "anthropic-messages", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 128000, - "cost": { - "input": 1.2, - "output": 4, - "cacheRead": 0.24, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/xai.ts b/packages/core/src/generated/providers/xai.ts deleted file mode 100644 index 74951abe..00000000 --- a/packages/core/src/generated/providers/xai.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "xai" -export const providerConfig = { - "name": "xai", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.x.ai/v1", - "apiKey": "XAI_API_KEY" - }, - "models": [ - { - "modelId": "grok-4.3", - "name": "Grok 4.3", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1000000, - "maxTokens": 30000, - "cost": { - "input": 1.25, - "output": 2.5, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - }, - { - "modelId": "grok-4.5", - "name": "Grok 4.5", - "config": { - "api": "openai-responses", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 500000, - "maxTokens": 500000, - "cost": { - "input": 2, - "output": 6, - "cacheRead": 0.3, - "cacheWrite": 0 - } - } - }, - { - "modelId": "grok-build-0.1", - "name": "Grok Build 0.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 256000, - "maxTokens": 256000, - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0.2, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/xiaomi-token-plan-ams.ts b/packages/core/src/generated/providers/xiaomi-token-plan-ams.ts deleted file mode 100644 index ec2354fd..00000000 --- a/packages/core/src/generated/providers/xiaomi-token-plan-ams.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "xiaomi-token-plan-ams" -export const providerConfig = { - "name": "xiaomi-token-plan-ams", - "config": { - "api": "openai-completions", - "baseUrl": "https://token-plan-ams.xiaomimimo.com/v1", - "apiKey": "XIAOMI_TOKEN_PLAN_AMS_API_KEY" - }, - "models": [ - { - "modelId": "mimo-v2-pro", - "name": "MiMo-V2-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5", - "name": "MiMo-V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro", - "name": "MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/xiaomi-token-plan-cn.ts b/packages/core/src/generated/providers/xiaomi-token-plan-cn.ts deleted file mode 100644 index 31ab40b4..00000000 --- a/packages/core/src/generated/providers/xiaomi-token-plan-cn.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "xiaomi-token-plan-cn" -export const providerConfig = { - "name": "xiaomi-token-plan-cn", - "config": { - "api": "openai-completions", - "baseUrl": "https://token-plan-cn.xiaomimimo.com/v1", - "apiKey": "XIAOMI_TOKEN_PLAN_CN_API_KEY" - }, - "models": [ - { - "modelId": "mimo-v2-pro", - "name": "MiMo-V2-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5", - "name": "MiMo-V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro", - "name": "MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/xiaomi-token-plan-sgp.ts b/packages/core/src/generated/providers/xiaomi-token-plan-sgp.ts deleted file mode 100644 index e55b1812..00000000 --- a/packages/core/src/generated/providers/xiaomi-token-plan-sgp.ts +++ /dev/null @@ -1,72 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "xiaomi-token-plan-sgp" -export const providerConfig = { - "name": "xiaomi-token-plan-sgp", - "config": { - "api": "openai-completions", - "baseUrl": "https://token-plan-sgp.xiaomimimo.com/v1", - "apiKey": "XIAOMI_TOKEN_PLAN_SGP_API_KEY" - }, - "models": [ - { - "modelId": "mimo-v2-pro", - "name": "MiMo-V2-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5", - "name": "MiMo-V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro", - "name": "MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/xiaomi.ts b/packages/core/src/generated/providers/xiaomi.ts deleted file mode 100644 index f28fba3d..00000000 --- a/packages/core/src/generated/providers/xiaomi.ts +++ /dev/null @@ -1,130 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "xiaomi" -export const providerConfig = { - "name": "xiaomi", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.xiaomimimo.com/v1", - "apiKey": "XIAOMI_API_KEY" - }, - "models": [ - { - "modelId": "mimo-v2-flash", - "name": "MiMo-V2-Flash", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 262144, - "maxTokens": 65536, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2-omni", - "name": "MiMo-V2-Omni", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 262144, - "maxTokens": 131072, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2-pro", - "name": "MiMo-V2-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.0036, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5", - "name": "MiMo-V2.5", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.14, - "output": 0.28, - "cacheRead": 0.0028, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro", - "name": "MiMo-V2.5-Pro", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 0.435, - "output": 0.87, - "cacheRead": 0.0036, - "cacheWrite": 0 - } - } - }, - { - "modelId": "mimo-v2.5-pro-ultraspeed", - "name": "MiMo-V2.5-Pro-UltraSpeed", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1048576, - "maxTokens": 131072, - "cost": { - "input": 1.305, - "output": 2.61, - "cacheRead": 0.0108, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/zai-coding-cn.ts b/packages/core/src/generated/providers/zai-coding-cn.ts deleted file mode 100644 index 83a290af..00000000 --- a/packages/core/src/generated/providers/zai-coding-cn.ts +++ /dev/null @@ -1,129 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "zai-coding-cn" -export const providerConfig = { - "name": "zai-coding-cn", - "config": { - "api": "openai-completions", - "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4", - "apiKey": "" - }, - "models": [ - { - "modelId": "glm-4.5-air", - "name": "GLM-4.5-Air", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-4.7", - "name": "GLM-4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5-turbo", - "name": "GLM-5-Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5v-turbo", - "name": "GLM-5V-Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/generated/providers/zai.ts b/packages/core/src/generated/providers/zai.ts deleted file mode 100644 index c432488d..00000000 --- a/packages/core/src/generated/providers/zai.ts +++ /dev/null @@ -1,129 +0,0 @@ -// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = "zai" -export const providerConfig = { - "name": "zai", - "config": { - "api": "openai-completions", - "baseUrl": "https://api.z.ai/api/coding/paas/v4", - "apiKey": "ZAI_API_KEY" - }, - "models": [ - { - "modelId": "glm-4.5-air", - "name": "GLM-4.5-Air", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 131072, - "maxTokens": 98304, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-4.7", - "name": "GLM-4.7", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 204800, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5-turbo", - "name": "GLM-5-Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.1", - "name": "GLM-5.1", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5.2", - "name": "GLM-5.2", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text" - ], - "contextWindow": 1000000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - }, - { - "modelId": "glm-5v-turbo", - "name": "GLM-5V-Turbo", - "config": { - "api": "openai-completions", - "reasoning": true, - "input": [ - "text", - "image" - ], - "contextWindow": 200000, - "maxTokens": 131072, - "cost": { - "input": 0, - "output": 0, - "cacheRead": 0, - "cacheWrite": 0 - } - } - } - ] -} as const diff --git a/packages/core/src/provider/builtin.test.ts b/packages/core/src/provider/builtin.test.ts new file mode 100644 index 00000000..e5464fe3 --- /dev/null +++ b/packages/core/src/provider/builtin.test.ts @@ -0,0 +1,27 @@ +import { describe, expect, it } from 'vitest' +import { getBuiltinProvidersMap, PRIORITY_PROVIDERS, ENV_MAP } from './builtin' + +describe('Builtin Providers', () => { + it('should return a non-empty record of providers', () => { + const providers = getBuiltinProvidersMap() + expect(Object.keys(providers).length).toBeGreaterThan(0) + }) + + it('should place priority providers first in the map', () => { + const providers = getBuiltinProvidersMap() + const keys = Object.keys(providers) + + expect(keys[0]).toBe(PRIORITY_PROVIDERS[0]) + expect(keys[1]).toBe(PRIORITY_PROVIDERS[1]) + }) + + it('should format openai provider correctly with env key', () => { + const providers = getBuiltinProvidersMap() + const openai = providers.openai + + expect(openai).toBeDefined() + expect(openai.name).toBe('openai') + expect(openai.config.apiKey).toBe(ENV_MAP.openai) + expect(openai.models.length).toBeGreaterThan(0) + }) +}) diff --git a/packages/core/src/provider/builtin.ts b/packages/core/src/provider/builtin.ts new file mode 100644 index 00000000..2f7c277a --- /dev/null +++ b/packages/core/src/provider/builtin.ts @@ -0,0 +1,100 @@ +import { getBuiltinProviders, getBuiltinModels } from '@earendil-works/pi-ai/providers/all' +import type { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos' +import type { z } from 'zod' + +type ProviderModel = z.infer + +export const PRIORITY_PROVIDERS = [ + 'openai', + 'anthropic', + 'google', + 'deepseek', + 'groq', + 'openrouter', + 'mistral', + 'amazon-bedrock', +] + +export const ENV_MAP: Record = { + openai: 'OPENAI_API_KEY', + anthropic: 'ANTHROPIC_API_KEY', + 'github-copilot': 'COPILOT_GITHUB_TOKEN', + 'azure-openai-responses': 'AZURE_OPENAI_API_KEY', + deepseek: 'DEEPSEEK_API_KEY', + google: 'GEMINI_API_KEY', + 'google-vertex': 'GOOGLE_CLOUD_API_KEY', + groq: 'GROQ_API_KEY', + cerebras: 'CEREBRAS_API_KEY', + xai: 'XAI_API_KEY', + openrouter: 'OPENROUTER_API_KEY', + 'vercel-ai-gateway': 'AI_GATEWAY_API_KEY', + zai: 'ZAI_API_KEY', + mistral: 'MISTRAL_API_KEY', + minimax: 'MINIMAX_API_KEY', + 'minimax-cn': 'MINIMAX_CN_API_KEY', + moonshotai: 'MOONSHOT_API_KEY', + 'moonshotai-cn': 'MOONSHOT_API_KEY', + huggingface: 'HF_TOKEN', + fireworks: 'FIREWORKS_API_KEY', + together: 'TOGETHER_API_KEY', + opencode: 'OPENCODE_API_KEY', + 'opencode-go': 'OPENCODE_API_KEY', + 'kimi-coding': 'KIMI_API_KEY', + 'cloudflare-workers-ai': 'CLOUDFLARE_API_KEY', + 'cloudflare-ai-gateway': 'CLOUDFLARE_API_KEY', + xiaomi: 'XIAOMI_API_KEY', + 'xiaomi-token-plan-cn': 'XIAOMI_TOKEN_PLAN_CN_API_KEY', + 'xiaomi-token-plan-ams': 'XIAOMI_TOKEN_PLAN_AMS_API_KEY', + 'xiaomi-token-plan-sgp': 'XIAOMI_TOKEN_PLAN_SGP_API_KEY', +} + +export interface BuiltinProviderData { + name: string + config: ProviderConfigSerializable + models: ProviderModel[] +} + +export function getBuiltinProvidersMap(): Record { + const providerNames = getBuiltinProviders() + + providerNames.sort((a, b) => { + const indexA = PRIORITY_PROVIDERS.indexOf(a) + const indexB = PRIORITY_PROVIDERS.indexOf(b) + + if (indexA !== -1 && indexB !== -1) return indexA - indexB + if (indexA !== -1) return -1 + if (indexB !== -1) return 1 + return a.localeCompare(b) + }) + + const providers: Record = {} + + for (const providerName of providerNames) { + const modelList = getBuiltinModels(providerName) + if (!modelList || modelList.length === 0) continue + + const firstModel = modelList[0] + providers[providerName] = { + name: providerName, + config: { + api: firstModel.api as ProviderConfigSerializable['api'], + baseUrl: firstModel.baseUrl, + apiKey: ENV_MAP[providerName] || '', + }, + models: modelList.map((m) => ({ + modelId: m.id, + name: m.name, + config: { + api: m.api as ProviderConfigSerializable['api'], + reasoning: m.reasoning, + input: m.input, + contextWindow: m.contextWindow, + maxTokens: m.maxTokens, + cost: m.cost, + }, + })), + } + } + + return providers +} diff --git a/packages/core/src/provider/provider.test.ts b/packages/core/src/provider/provider.test.ts index d27bf5ef..e7a29a35 100644 --- a/packages/core/src/provider/provider.test.ts +++ b/packages/core/src/provider/provider.test.ts @@ -4,7 +4,7 @@ import { agentService } from '@shumai/core/src/agent/agent' import { providerService } from './provider' import { describe, expect, it } from 'vitest' import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos' -import { builtinProviders } from '@shumai/core/src/generated/providers.generated' +import { getBuiltinProvidersMap } from '@shumai/core/src/provider/builtin' import { z } from 'zod' type ProviderModel = z.infer @@ -35,6 +35,7 @@ describe('ProviderService', () => { // The first provider in generated file is 'openai' // Since we use id: 'desc', 'openai' should be first in the list + const builtinProviders = getBuiltinProvidersMap() const firstInGenerated = Object.keys(builtinProviders)[0] expect(providers[0].name).toBe(firstInGenerated) }) diff --git a/packages/core/src/provider/provider.ts b/packages/core/src/provider/provider.ts index 00368a0a..5d197f19 100644 --- a/packages/core/src/provider/provider.ts +++ b/packages/core/src/provider/provider.ts @@ -1,6 +1,6 @@ import { prisma } from '@shumai/db' import { ProviderConfigSerializable, providerModelSchema } from '@shumai/dtos' -import { builtinProviders } from '@shumai/core/src/generated/providers.generated' +import { getBuiltinProvidersMap } from '@shumai/core/src/provider/builtin' import { z } from 'zod' type ProviderModel = z.infer @@ -19,23 +19,20 @@ export class ProviderService { }) if (team && team._count.providers === 0) { + const builtinProviders = getBuiltinProvidersMap() // We insert them one by one in reverse order to ensure that the // popular providers (first in builtinProviders) get the highest ULIDs // and appear first when sorted by id DESC. const entries = Object.entries(builtinProviders).reverse() for (const [name, data] of entries) { - const typedData = data as unknown as { - config: ProviderConfigSerializable - models: ProviderModel[] - } await this.prismaClient.provider.create({ data: { teamId: team.id, name, - config: typedData.config, + config: data.config, isBuiltin: true, models: { - create: typedData.models.map((m) => ({ + create: data.models.map((m) => ({ modelId: m.modelId, name: m.name, config: m.config, diff --git a/scripts/generate-builtin-providers.test.ts b/scripts/generate-builtin-providers.test.ts deleted file mode 100644 index 5c350de8..00000000 --- a/scripts/generate-builtin-providers.test.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { describe, it, expect } from 'vitest' -import { sortProviders, PRIORITY_PROVIDERS } from './generate-builtin-providers' - -describe('generate-builtin-providers sorting', () => { - it('should sort priority providers in correct order', () => { - const entries: [string, unknown][] = [ - ['anthropic', {}], - ['openai', {}], - ['google', {}], - ] - const sorted = sortProviders([...entries]) - expect(sorted[0][0]).toBe('openai') - expect(sorted[1][0]).toBe('anthropic') - expect(sorted[2][0]).toBe('google') - }) - - it('should place priority providers before non-priority ones', () => { - const entries: [string, unknown][] = [ - ['unknown-provider', {}], - ['openai', {}], - ['anthropic', {}], - ] - const sorted = sortProviders([...entries]) - expect(sorted[0][0]).toBe('openai') - expect(sorted[1][0]).toBe('anthropic') - expect(sorted[2][0]).toBe('unknown-provider') - }) - - it('should sort non-priority providers alphabetically', () => { - const entries: [string, unknown][] = [ - ['zebra', {}], - ['alpha', {}], - ['betty', {}], - ] - const sorted = sortProviders([...entries]) - expect(sorted[0][0]).toBe('alpha') - expect(sorted[1][0]).toBe('betty') - expect(sorted[2][0]).toBe('zebra') - }) - - it('should handle complex mixed lists correctly', () => { - const entries: [string, unknown][] = [ - ['zai', {}], - ['mistral', {}], - ['openai', {}], - ['alpha', {}], - ['google', {}], - ] - const sorted = sortProviders([...entries]) - // Expected order: openai (0), google (2), mistral (6), alpha (alpha < zai), zai - expect(sorted[0][0]).toBe('openai') - expect(sorted[1][0]).toBe('google') - expect(sorted[2][0]).toBe('mistral') - expect(sorted[3][0]).toBe('alpha') - expect(sorted[4][0]).toBe('zai') - }) - - it('should cover all priority providers in the correct order', () => { - const entries: [string, unknown][] = PRIORITY_PROVIDERS.map((p) => [p, {}]) - // Shuffle the list - const shuffled = [...entries].sort(() => Math.random() - 0.5) - const sorted = sortProviders(shuffled) - - for (let i = 0; i < PRIORITY_PROVIDERS.length; i++) { - expect(sorted[i][0]).toBe(PRIORITY_PROVIDERS[i]) - } - }) -}) diff --git a/scripts/generate-builtin-providers.ts b/scripts/generate-builtin-providers.ts deleted file mode 100644 index 9d0015d1..00000000 --- a/scripts/generate-builtin-providers.ts +++ /dev/null @@ -1,206 +0,0 @@ -import * as fs from 'fs' -import * as path from 'path' - -export const PRIORITY_PROVIDERS = [ - 'openai', - 'anthropic', - 'google', - 'deepseek', - 'groq', - 'openrouter', - 'mistral', - 'amazon-bedrock', -] - -const envMap: Record = { - openai: 'OPENAI_API_KEY', - anthropic: 'ANTHROPIC_API_KEY', - 'github-copilot': 'COPILOT_GITHUB_TOKEN', - 'azure-openai-responses': 'AZURE_OPENAI_API_KEY', - deepseek: 'DEEPSEEK_API_KEY', - google: 'GEMINI_API_KEY', - 'google-vertex': 'GOOGLE_CLOUD_API_KEY', - groq: 'GROQ_API_KEY', - cerebras: 'CEREBRAS_API_KEY', - xai: 'XAI_API_KEY', - openrouter: 'OPENROUTER_API_KEY', - 'vercel-ai-gateway': 'AI_GATEWAY_API_KEY', - zai: 'ZAI_API_KEY', - mistral: 'MISTRAL_API_KEY', - minimax: 'MINIMAX_API_KEY', - 'minimax-cn': 'MINIMAX_CN_API_KEY', - moonshotai: 'MOONSHOT_API_KEY', - 'moonshotai-cn': 'MOONSHOT_API_KEY', - huggingface: 'HF_TOKEN', - fireworks: 'FIREWORKS_API_KEY', - together: 'TOGETHER_API_KEY', - opencode: 'OPENCODE_API_KEY', - 'opencode-go': 'OPENCODE_API_KEY', - 'kimi-coding': 'KIMI_API_KEY', - 'cloudflare-workers-ai': 'CLOUDFLARE_API_KEY', - 'cloudflare-ai-gateway': 'CLOUDFLARE_API_KEY', - xiaomi: 'XIAOMI_API_KEY', - 'xiaomi-token-plan-cn': 'XIAOMI_TOKEN_PLAN_CN_API_KEY', - 'xiaomi-token-plan-ams': 'XIAOMI_TOKEN_PLAN_AMS_API_KEY', - 'xiaomi-token-plan-sgp': 'XIAOMI_TOKEN_PLAN_SGP_API_KEY', -} - -export function sortProviders(entries: [string, unknown][]): [string, unknown][] { - return entries.sort(([a], [b]) => { - const indexA = PRIORITY_PROVIDERS.indexOf(a) - const indexB = PRIORITY_PROVIDERS.indexOf(b) - - if (indexA !== -1 && indexB !== -1) return indexA - indexB - if (indexA !== -1) return -1 - if (indexB !== -1) return 1 - return a.localeCompare(b) - }) -} - -function toIdentifier(name: string): string { - const camel = name.replace(/-([a-z0-9])/g, (_, g) => g.toUpperCase()) - return camel.replace(/[^a-zA-Z0-9_$]/g, '_') -} - -async function loadModelData(): Promise> { - // Check local pi-mono data directory first - const piMonoDataDir = path.resolve( - process.cwd(), - '..', - 'pi-mono', - 'packages', - 'ai', - 'src', - 'providers', - 'data', - ) - if (fs.existsSync(piMonoDataDir)) { - console.log(`Loading model data from local pi-mono workspace: ${piMonoDataDir}`) - const files = fs - .readdirSync(piMonoDataDir) - .filter((f) => f.endsWith('.json') && !f.startsWith('.')) - const rawProviders: Record = {} - for (const file of files) { - const providerName = path.basename(file, '.json') - const filePath = path.join(piMonoDataDir, file) - const content = JSON.parse(fs.readFileSync(filePath, 'utf8')) - rawProviders[providerName] = content - } - return rawProviders - } - - console.log('Local pi-mono data directory not found, fetching from models.dev API...') - const res = await fetch('https://models.dev/api/v1/models') - if (!res.ok) { - throw new Error(`Failed to fetch models from models.dev: ${res.statusText}`) - } - const data = (await res.json()) as Record - return data -} - -async function sync() { - console.log('Loading pi model data...') - const rawModels = await loadModelData() - - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const providers: Record = {} - const sortedEntries = sortProviders(Object.entries(rawModels)) - - for (const [providerName, models] of sortedEntries) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const modelList = Object.values(models as Record) - if (modelList.length === 0) continue - - const firstModel = modelList[0] - providers[providerName] = { - name: providerName, - config: { - api: firstModel.api, - baseUrl: firstModel.baseUrl, - apiKey: envMap[providerName] || '', - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - models: modelList.map((m: any) => ({ - modelId: m.id, - name: m.name, - config: { - api: m.api, - reasoning: m.reasoning, - input: m.input, - contextWindow: m.contextWindow, - maxTokens: m.maxTokens, - cost: m.cost, - }, - })), - } - } - - const generatedDir = path.join(process.cwd(), 'packages', 'core', 'src', 'generated') - const providersSubdir = path.join(generatedDir, 'providers') - - if (!fs.existsSync(providersSubdir)) { - fs.mkdirSync(providersSubdir, { recursive: true }) - } - - // Clean existing files in providers directory - const existingSubFiles = fs.readdirSync(providersSubdir) - for (const file of existingSubFiles) { - if (file.endsWith('.ts')) { - fs.unlinkSync(path.join(providersSubdir, file)) - } - } - - // Write individual provider files - const importStatements: string[] = [] - const providerEntries: string[] = [] - - for (const [providerName, providerData] of Object.entries(providers)) { - const filePath = path.join(providersSubdir, `${providerName}.ts`) - const fileContent = `// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -export const providerName = ${JSON.stringify(providerName)} -export const providerConfig = ${JSON.stringify(providerData, null, 2)} as const -` - fs.writeFileSync(filePath, fileContent) - - const identifier = toIdentifier(providerName) - importStatements.push( - `import { providerConfig as ${identifier} } from './providers/${providerName}'`, - ) - if (identifier === providerName) { - providerEntries.push(` ${identifier},`) - } else { - providerEntries.push(` ${JSON.stringify(providerName)}: ${identifier},`) - } - } - - console.log(`Generated ${Object.keys(providers).length} provider files in ${providersSubdir}`) - - // Write main aggregator providers.generated.ts - const outPath = path.join(generatedDir, 'providers.generated.ts') - const outContent = `// This file is auto-generated by scripts/generate-builtin-providers.ts -// Do not edit manually - run 'bun run generate-providers' to update - -${importStatements.join('\n')} - -export const builtinProviders: Record = { -${providerEntries.join('\n')} -} as unknown as Record -` - fs.writeFileSync(outPath, outContent) - console.log(`Successfully generated aggregator: ${outPath}`) -} - -const isEntryScript = - import.meta.main || - (process.argv[1] && - process.argv[1].endsWith('generate-builtin-providers.ts') && - !process.argv[1].includes('.test.')) - -if (isEntryScript) { - sync().catch((err) => { - console.error(err) - process.exit(1) - }) -}