mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
The negated approach broke browser_script which runs in page context. browser_script injects into web pages (http://, https://) where chrome.runtime.sendMessage doesn't work. The original whitelist approach correctly identifies extension contexts only. The real issue with artifacts in sandbox iframes needs a different fix.
3678 lines
89 KiB
TypeScript
3678 lines
89 KiB
TypeScript
// This file is auto-generated by scripts/generate-models.ts
|
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
|
|
import type { Model } from "./types.js";
|
|
|
|
export const MODELS = {
|
|
anthropic: {
|
|
"claude-3-5-sonnet-20241022": {
|
|
id: "claude-3-5-sonnet-20241022",
|
|
name: "Claude Sonnet 3.5 v2",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-5-sonnet-20240620": {
|
|
id: "claude-3-5-sonnet-20240620",
|
|
name: "Claude Sonnet 3.5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-opus-20240229": {
|
|
id: "claude-3-opus-20240229",
|
|
name: "Claude Opus 3",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 15,
|
|
output: 75,
|
|
cacheRead: 1.5,
|
|
cacheWrite: 18.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-sonnet-4-5-20250929": {
|
|
id: "claude-sonnet-4-5-20250929",
|
|
name: "Claude Sonnet 4.5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-sonnet-4-20250514": {
|
|
id: "claude-sonnet-4-20250514",
|
|
name: "Claude Sonnet 4",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-20250514": {
|
|
id: "claude-opus-4-20250514",
|
|
name: "Claude Opus 4",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 15,
|
|
output: 75,
|
|
cacheRead: 1.5,
|
|
cacheWrite: 18.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 32000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-5-haiku-20241022": {
|
|
id: "claude-3-5-haiku-20241022",
|
|
name: "Claude Haiku 3.5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.8,
|
|
output: 4,
|
|
cacheRead: 0.08,
|
|
cacheWrite: 1,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-haiku-20240307": {
|
|
id: "claude-3-haiku-20240307",
|
|
name: "Claude Haiku 3",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 1.25,
|
|
cacheRead: 0.03,
|
|
cacheWrite: 0.3,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-7-sonnet-20250219": {
|
|
id: "claude-3-7-sonnet-20250219",
|
|
name: "Claude Sonnet 3.7",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-1-20250805": {
|
|
id: "claude-opus-4-1-20250805",
|
|
name: "Claude Opus 4.1",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 15,
|
|
output: 75,
|
|
cacheRead: 1.5,
|
|
cacheWrite: 18.75,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 32000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-3-sonnet-20240229": {
|
|
id: "claude-3-sonnet-20240229",
|
|
name: "Claude Sonnet 3",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 0.3,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"anthropic-messages">,
|
|
},
|
|
google: {
|
|
"gemini-2.5-flash-preview-05-20": {
|
|
id: "gemini-2.5-flash-preview-05-20",
|
|
name: "Gemini 2.5 Flash Preview 05-20",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0.0375,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-flash-lite-latest": {
|
|
id: "gemini-flash-lite-latest",
|
|
name: "Gemini Flash-Lite Latest",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.025,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash": {
|
|
id: "gemini-2.5-flash",
|
|
name: "Gemini 2.5 Flash",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 2.5,
|
|
cacheRead: 0.075,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-flash-latest": {
|
|
id: "gemini-flash-latest",
|
|
name: "Gemini Flash Latest",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0.0375,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-pro-preview-05-06": {
|
|
id: "gemini-2.5-pro-preview-05-06",
|
|
name: "Gemini 2.5 Pro Preview 05-06",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 10,
|
|
cacheRead: 0.31,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.0-flash-lite": {
|
|
id: "gemini-2.0-flash-lite",
|
|
name: "Gemini 2.0 Flash Lite",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.075,
|
|
output: 0.3,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-live-2.5-flash-preview-native-audio": {
|
|
id: "gemini-live-2.5-flash-preview-native-audio",
|
|
name: "Gemini Live 2.5 Flash Preview Native Audio",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.5,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.0-flash": {
|
|
id: "gemini-2.0-flash",
|
|
name: "Gemini 2.0 Flash",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.025,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash-lite": {
|
|
id: "gemini-2.5-flash-lite",
|
|
name: "Gemini 2.5 Flash Lite",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.025,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-pro-preview-06-05": {
|
|
id: "gemini-2.5-pro-preview-06-05",
|
|
name: "Gemini 2.5 Pro Preview 06-05",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 10,
|
|
cacheRead: 0.31,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash-lite-preview-06-17": {
|
|
id: "gemini-2.5-flash-lite-preview-06-17",
|
|
name: "Gemini 2.5 Flash Lite Preview 06-17",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.025,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash-preview-09-2025": {
|
|
id: "gemini-2.5-flash-preview-09-2025",
|
|
name: "Gemini 2.5 Flash Preview 09-25",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0.0375,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash-preview-04-17": {
|
|
id: "gemini-2.5-flash-preview-04-17",
|
|
name: "Gemini 2.5 Flash Preview 04-17",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0.0375,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-pro": {
|
|
id: "gemini-2.5-pro",
|
|
name: "Gemini 2.5 Pro",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 10,
|
|
cacheRead: 0.31,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-1.5-flash": {
|
|
id: "gemini-1.5-flash",
|
|
name: "Gemini 1.5 Flash",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.075,
|
|
output: 0.3,
|
|
cacheRead: 0.01875,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-1.5-flash-8b": {
|
|
id: "gemini-1.5-flash-8b",
|
|
name: "Gemini 1.5 Flash-8B",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.0375,
|
|
output: 0.15,
|
|
cacheRead: 0.01,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-2.5-flash-lite-preview-09-2025": {
|
|
id: "gemini-2.5-flash-lite-preview-09-2025",
|
|
name: "Gemini 2.5 Flash Lite Preview 09-25",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.025,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"google-generative-ai">,
|
|
"gemini-1.5-pro": {
|
|
id: "gemini-1.5-pro",
|
|
name: "Gemini 1.5 Pro",
|
|
api: "google-generative-ai",
|
|
provider: "google",
|
|
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 5,
|
|
cacheRead: 0.3125,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"google-generative-ai">,
|
|
},
|
|
openai: {
|
|
"gpt-4.1-nano": {
|
|
id: "gpt-4.1-nano",
|
|
name: "GPT-4.1 nano",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.4,
|
|
cacheRead: 0.03,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1047576,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4": {
|
|
id: "gpt-4",
|
|
name: "GPT-4",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 30,
|
|
output: 60,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-responses">,
|
|
"o1-pro": {
|
|
id: "o1-pro",
|
|
name: "o1-pro",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 150,
|
|
output: 600,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4o-2024-05-13": {
|
|
id: "gpt-4o-2024-05-13",
|
|
name: "GPT-4o (2024-05-13)",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 15,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4o-2024-08-06": {
|
|
id: "gpt-4o-2024-08-06",
|
|
name: "GPT-4o (2024-08-06)",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2.5,
|
|
output: 10,
|
|
cacheRead: 1.25,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4.1-mini": {
|
|
id: "gpt-4.1-mini",
|
|
name: "GPT-4.1 mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.4,
|
|
output: 1.6,
|
|
cacheRead: 0.1,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1047576,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-responses">,
|
|
"o3-deep-research": {
|
|
id: "o3-deep-research",
|
|
name: "o3-deep-research",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 10,
|
|
output: 40,
|
|
cacheRead: 2.5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4-turbo": {
|
|
id: "gpt-4-turbo",
|
|
name: "GPT-4 Turbo",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 10,
|
|
output: 30,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-responses">,
|
|
"o3-mini": {
|
|
id: "o3-mini",
|
|
name: "o3-mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1.1,
|
|
output: 4.4,
|
|
cacheRead: 0.55,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"codex-mini-latest": {
|
|
id: "codex-mini-latest",
|
|
name: "Codex Mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1.5,
|
|
output: 6,
|
|
cacheRead: 0.375,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-5-nano": {
|
|
id: "gpt-5-nano",
|
|
name: "GPT-5 Nano",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.05,
|
|
output: 0.4,
|
|
cacheRead: 0.01,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 400000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-5-codex": {
|
|
id: "gpt-5-codex",
|
|
name: "GPT-5-Codex",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 400000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4o": {
|
|
id: "gpt-4o",
|
|
name: "GPT-4o",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2.5,
|
|
output: 10,
|
|
cacheRead: 1.25,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4.1": {
|
|
id: "gpt-4.1",
|
|
name: "GPT-4.1",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 8,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1047576,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-responses">,
|
|
"o4-mini": {
|
|
id: "o4-mini",
|
|
name: "o4-mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.1,
|
|
output: 4.4,
|
|
cacheRead: 0.28,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
o1: {
|
|
id: "o1",
|
|
name: "o1",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 15,
|
|
output: 60,
|
|
cacheRead: 7.5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-5-mini": {
|
|
id: "gpt-5-mini",
|
|
name: "GPT-5 Mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 2,
|
|
cacheRead: 0.03,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 400000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"openai-responses">,
|
|
"o3-pro": {
|
|
id: "o3-pro",
|
|
name: "o3-pro",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 20,
|
|
output: 80,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4o-2024-11-20": {
|
|
id: "gpt-4o-2024-11-20",
|
|
name: "GPT-4o (2024-11-20)",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2.5,
|
|
output: 10,
|
|
cacheRead: 1.25,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-responses">,
|
|
o3: {
|
|
id: "o3",
|
|
name: "o3",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 8,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"o4-mini-deep-research": {
|
|
id: "o4-mini-deep-research",
|
|
name: "o4-mini-deep-research",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 8,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 100000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-4o-mini": {
|
|
id: "gpt-4o-mini",
|
|
name: "GPT-4o mini",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0.08,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-5": {
|
|
id: "gpt-5",
|
|
name: "GPT-5",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 10,
|
|
cacheRead: 0.13,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 400000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"openai-responses">,
|
|
"gpt-5-chat-latest": {
|
|
id: "gpt-5-chat-latest",
|
|
name: "GPT-5 Chat Latest",
|
|
api: "openai-responses",
|
|
provider: "openai",
|
|
baseUrl: "https://api.openai.com/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1.25,
|
|
output: 10,
|
|
cacheRead: 0.125,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-responses">,
|
|
},
|
|
groq: {
|
|
"llama-3.1-8b-instant": {
|
|
id: "llama-3.1-8b-instant",
|
|
name: "Llama 3.1 8B Instant",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.05,
|
|
output: 0.08,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistral-saba-24b": {
|
|
id: "mistral-saba-24b",
|
|
name: "Mistral Saba 24B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.79,
|
|
output: 0.79,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"llama3-8b-8192": {
|
|
id: "llama3-8b-8192",
|
|
name: "Llama 3 8B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.05,
|
|
output: 0.08,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen-qwq-32b": {
|
|
id: "qwen-qwq-32b",
|
|
name: "Qwen QwQ 32B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.29,
|
|
output: 0.39,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"llama3-70b-8192": {
|
|
id: "llama3-70b-8192",
|
|
name: "Llama 3 70B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.59,
|
|
output: 0.79,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek-r1-distill-llama-70b": {
|
|
id: "deepseek-r1-distill-llama-70b",
|
|
name: "DeepSeek R1 Distill Llama 70B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.75,
|
|
output: 0.99,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"gemma2-9b-it": {
|
|
id: "gemma2-9b-it",
|
|
name: "Gemma 2 9B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 0.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"llama-3.3-70b-versatile": {
|
|
id: "llama-3.3-70b-versatile",
|
|
name: "Llama 3.3 70B Versatile",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.59,
|
|
output: 0.79,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"moonshotai/kimi-k2-instruct-0905": {
|
|
id: "moonshotai/kimi-k2-instruct-0905",
|
|
name: "Kimi K2 Instruct 0905",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1,
|
|
output: 3,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"moonshotai/kimi-k2-instruct": {
|
|
id: "moonshotai/kimi-k2-instruct",
|
|
name: "Kimi K2 Instruct",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1,
|
|
output: 3,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"openai/gpt-oss-20b": {
|
|
id: "openai/gpt-oss-20b",
|
|
name: "GPT OSS 20B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.1,
|
|
output: 0.5,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"openai/gpt-oss-120b": {
|
|
id: "openai/gpt-oss-120b",
|
|
name: "GPT OSS 120B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.75,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-32b": {
|
|
id: "qwen/qwen3-32b",
|
|
name: "Qwen3 32B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.29,
|
|
output: 0.59,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-scout-17b-16e-instruct": {
|
|
id: "meta-llama/llama-4-scout-17b-16e-instruct",
|
|
name: "Llama 4 Scout 17B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.11,
|
|
output: 0.34,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-maverick-17b-128e-instruct": {
|
|
id: "meta-llama/llama-4-maverick-17b-128e-instruct",
|
|
name: "Llama 4 Maverick 17B",
|
|
api: "openai-completions",
|
|
provider: "groq",
|
|
baseUrl: "https://api.groq.com/openai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
},
|
|
cerebras: {
|
|
"qwen-3-235b-a22b-instruct-2507": {
|
|
id: "qwen-3-235b-a22b-instruct-2507",
|
|
name: "Qwen 3 235B Instruct",
|
|
api: "openai-completions",
|
|
provider: "cerebras",
|
|
baseUrl: "https://api.cerebras.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131000,
|
|
maxTokens: 32000,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen-3-coder-480b": {
|
|
id: "qwen-3-coder-480b",
|
|
name: "Qwen 3 Coder 480B",
|
|
api: "openai-completions",
|
|
provider: "cerebras",
|
|
baseUrl: "https://api.cerebras.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131000,
|
|
maxTokens: 32000,
|
|
} satisfies Model<"openai-completions">,
|
|
"gpt-oss-120b": {
|
|
id: "gpt-oss-120b",
|
|
name: "GPT OSS 120B",
|
|
api: "openai-completions",
|
|
provider: "cerebras",
|
|
baseUrl: "https://api.cerebras.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 0.69,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
},
|
|
xai: {
|
|
"grok-4-fast-non-reasoning": {
|
|
id: "grok-4-fast-non-reasoning",
|
|
name: "Grok 4 Fast (Non-Reasoning)",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 0.5,
|
|
cacheRead: 0.05,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 2000000,
|
|
maxTokens: 30000,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-fast": {
|
|
id: "grok-3-fast",
|
|
name: "Grok 3 Fast",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 1.25,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-4": {
|
|
id: "grok-4",
|
|
name: "Grok 4",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.75,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2-vision": {
|
|
id: "grok-2-vision",
|
|
name: "Grok 2 Vision",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-code-fast-1": {
|
|
id: "grok-code-fast-1",
|
|
name: "Grok Code Fast 1",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 1.5,
|
|
cacheRead: 0.02,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 10000,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2": {
|
|
id: "grok-2",
|
|
name: "Grok 2",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-mini-fast-latest": {
|
|
id: "grok-3-mini-fast-latest",
|
|
name: "Grok 3 Mini Fast Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 4,
|
|
cacheRead: 0.15,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2-vision-1212": {
|
|
id: "grok-2-vision-1212",
|
|
name: "Grok 2 Vision (1212)",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3": {
|
|
id: "grok-3",
|
|
name: "Grok 3",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.75,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-4-fast": {
|
|
id: "grok-4-fast",
|
|
name: "Grok 4 Fast",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 0.5,
|
|
cacheRead: 0.05,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 2000000,
|
|
maxTokens: 30000,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2-latest": {
|
|
id: "grok-2-latest",
|
|
name: "Grok 2 Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2-1212": {
|
|
id: "grok-2-1212",
|
|
name: "Grok 2 (1212)",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-fast-latest": {
|
|
id: "grok-3-fast-latest",
|
|
name: "Grok 3 Fast Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 1.25,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-latest": {
|
|
id: "grok-3-latest",
|
|
name: "Grok 3 Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.75,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-2-vision-latest": {
|
|
id: "grok-2-vision-latest",
|
|
name: "Grok 2 Vision Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 2,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-vision-beta": {
|
|
id: "grok-vision-beta",
|
|
name: "Grok Vision Beta",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 15,
|
|
cacheRead: 5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-mini": {
|
|
id: "grok-3-mini",
|
|
name: "Grok 3 Mini",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.5,
|
|
cacheRead: 0.075,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-beta": {
|
|
id: "grok-beta",
|
|
name: "Grok Beta",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 5,
|
|
output: 15,
|
|
cacheRead: 5,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-mini-latest": {
|
|
id: "grok-3-mini-latest",
|
|
name: "Grok 3 Mini Latest",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.5,
|
|
cacheRead: 0.075,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"grok-3-mini-fast": {
|
|
id: "grok-3-mini-fast",
|
|
name: "Grok 3 Mini Fast",
|
|
api: "openai-completions",
|
|
provider: "xai",
|
|
baseUrl: "https://api.x.ai/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 4,
|
|
cacheRead: 0.15,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
},
|
|
zai: {
|
|
"glm-4.5-flash": {
|
|
id: "glm-4.5-flash",
|
|
name: "GLM-4.5-Flash",
|
|
api: "anthropic-messages",
|
|
provider: "zai",
|
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 98304,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"glm-4.5": {
|
|
id: "glm-4.5",
|
|
name: "GLM-4.5",
|
|
api: "anthropic-messages",
|
|
provider: "zai",
|
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 2.2,
|
|
cacheRead: 0.11,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 98304,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"glm-4.5-air": {
|
|
id: "glm-4.5-air",
|
|
name: "GLM-4.5-Air",
|
|
api: "anthropic-messages",
|
|
provider: "zai",
|
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.2,
|
|
output: 1.1,
|
|
cacheRead: 0.03,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 98304,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"glm-4.5v": {
|
|
id: "glm-4.5v",
|
|
name: "GLM 4.5V",
|
|
api: "anthropic-messages",
|
|
provider: "zai",
|
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 1.8,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 64000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"glm-4.6": {
|
|
id: "glm-4.6",
|
|
name: "GLM-4.6",
|
|
api: "anthropic-messages",
|
|
provider: "zai",
|
|
baseUrl: "https://api.z.ai/api/anthropic",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 2.2,
|
|
cacheRead: 0.11,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 204800,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"anthropic-messages">,
|
|
},
|
|
openrouter: {
|
|
"nvidia/llama-3.3-nemotron-super-49b-v1.5": {
|
|
id: "nvidia/llama-3.3-nemotron-super-49b-v1.5",
|
|
name: "NVIDIA: Llama 3.3 Nemotron Super 49B V1.5",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-vl-30b-a3b-thinking": {
|
|
id: "qwen/qwen3-vl-30b-a3b-thinking",
|
|
name: "Qwen: Qwen3 VL 30B A3B Thinking",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-vl-30b-a3b-instruct": {
|
|
id: "qwen/qwen3-vl-30b-a3b-instruct",
|
|
name: "Qwen: Qwen3 VL 30B A3B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4.6": {
|
|
id: "z-ai/glm-4.6",
|
|
name: "Z.AI: GLM 4.6",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.5,
|
|
output: 1.75,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 202752,
|
|
maxTokens: 202752,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-v3.2-exp": {
|
|
id: "deepseek/deepseek-v3.2-exp",
|
|
name: "DeepSeek: DeepSeek V3.2 Exp",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.27,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-vl-235b-a22b-thinking": {
|
|
id: "qwen/qwen3-vl-235b-a22b-thinking",
|
|
name: "Qwen: Qwen3 VL 235B A22B Thinking",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.5,
|
|
output: 3.5,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65536,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-vl-235b-a22b-instruct": {
|
|
id: "qwen/qwen3-vl-235b-a22b-instruct",
|
|
name: "Qwen: Qwen3 VL 235B A22B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-max": {
|
|
id: "qwen/qwen3-max",
|
|
name: "Qwen: Qwen3 Max",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1.2,
|
|
output: 6,
|
|
cacheRead: 0.24,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-coder-plus": {
|
|
id: "qwen/qwen3-coder-plus",
|
|
name: "Qwen: Qwen3 Coder Plus",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1,
|
|
output: 5,
|
|
cacheRead: 0.09999999999999999,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-v3.1-terminus": {
|
|
id: "deepseek/deepseek-v3.1-terminus",
|
|
name: "DeepSeek: DeepSeek V3.1 Terminus",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.22999999999999998,
|
|
output: 0.8999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"alibaba/tongyi-deepresearch-30b-a3b:free": {
|
|
id: "alibaba/tongyi-deepresearch-30b-a3b:free",
|
|
name: "Tongyi DeepResearch 30B A3B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"alibaba/tongyi-deepresearch-30b-a3b": {
|
|
id: "alibaba/tongyi-deepresearch-30b-a3b",
|
|
name: "Tongyi DeepResearch 30B A3B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-coder-flash": {
|
|
id: "qwen/qwen3-coder-flash",
|
|
name: "Qwen: Qwen3 Coder Flash",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1.5,
|
|
cacheRead: 0.08,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-next-80b-a3b-thinking": {
|
|
id: "qwen/qwen3-next-80b-a3b-thinking",
|
|
name: "Qwen: Qwen3 Next 80B A3B Thinking",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.14,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-next-80b-a3b-instruct": {
|
|
id: "qwen/qwen3-next-80b-a3b-instruct",
|
|
name: "Qwen: Qwen3 Next 80B A3B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.7999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"meituan/longcat-flash-chat:free": {
|
|
id: "meituan/longcat-flash-chat:free",
|
|
name: "Meituan: LongCat Flash Chat (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-plus-2025-07-28": {
|
|
id: "qwen/qwen-plus-2025-07-28",
|
|
name: "Qwen: Qwen Plus 0728",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-plus-2025-07-28:thinking": {
|
|
id: "qwen/qwen-plus-2025-07-28:thinking",
|
|
name: "Qwen: Qwen Plus 0728 (thinking)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 4,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"nvidia/nemotron-nano-9b-v2:free": {
|
|
id: "nvidia/nemotron-nano-9b-v2:free",
|
|
name: "NVIDIA: Nemotron Nano 9B V2 (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"nvidia/nemotron-nano-9b-v2": {
|
|
id: "nvidia/nemotron-nano-9b-v2",
|
|
name: "NVIDIA: Nemotron Nano 9B V2",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.04,
|
|
output: 0.16,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"moonshotai/kimi-k2-0905": {
|
|
id: "moonshotai/kimi-k2-0905",
|
|
name: "MoonshotAI: Kimi K2 0905",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39,
|
|
output: 1.9,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepcogito/cogito-v2-preview-llama-109b-moe": {
|
|
id: "deepcogito/cogito-v2-preview-llama-109b-moe",
|
|
name: "Cogito V2 Preview Llama 109B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.18,
|
|
output: 0.59,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32767,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"stepfun-ai/step3": {
|
|
id: "stepfun-ai/step3",
|
|
name: "StepFun: Step3",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.5700000000000001,
|
|
output: 1.42,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65536,
|
|
maxTokens: 65536,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-30b-a3b-thinking-2507": {
|
|
id: "qwen/qwen3-30b-a3b-thinking-2507",
|
|
name: "Qwen: Qwen3 30B A3B Thinking 2507",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.08,
|
|
output: 0.29,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"nousresearch/hermes-4-70b": {
|
|
id: "nousresearch/hermes-4-70b",
|
|
name: "Nous: Hermes 4 70B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.11,
|
|
output: 0.38,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"nousresearch/hermes-4-405b": {
|
|
id: "nousresearch/hermes-4-405b",
|
|
name: "Nous: Hermes 4 405B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-chat-v3.1": {
|
|
id: "deepseek/deepseek-chat-v3.1",
|
|
name: "DeepSeek: DeepSeek V3.1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.19999999999999998,
|
|
output: 0.7999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-medium-3.1": {
|
|
id: "mistralai/mistral-medium-3.1",
|
|
name: "Mistral: Mistral Medium 3.1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4.5v": {
|
|
id: "z-ai/glm-4.5v",
|
|
name: "Z.AI: GLM 4.5V",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 1.7999999999999998,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65536,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"ai21/jamba-mini-1.7": {
|
|
id: "ai21/jamba-mini-1.7",
|
|
name: "AI21: Jamba Mini 1.7",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.19999999999999998,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"ai21/jamba-large-1.7": {
|
|
id: "ai21/jamba-large-1.7",
|
|
name: "AI21: Jamba Large 1.7",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 8,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/codestral-2508": {
|
|
id: "mistralai/codestral-2508",
|
|
name: "Mistral: Codestral 2508",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.8999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 256000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-coder-30b-a3b-instruct": {
|
|
id: "qwen/qwen3-coder-30b-a3b-instruct",
|
|
name: "Qwen: Qwen3 Coder 30B A3B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.06,
|
|
output: 0.25,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-30b-a3b-instruct-2507": {
|
|
id: "qwen/qwen3-30b-a3b-instruct-2507",
|
|
name: "Qwen: Qwen3 30B A3B Instruct 2507",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.08,
|
|
output: 0.33,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4.5": {
|
|
id: "z-ai/glm-4.5",
|
|
name: "Z.AI: GLM 4.5",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.35,
|
|
output: 1.55,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4.5-air:free": {
|
|
id: "z-ai/glm-4.5-air:free",
|
|
name: "Z.AI: GLM 4.5 Air (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4.5-air": {
|
|
id: "z-ai/glm-4.5-air",
|
|
name: "Z.AI: GLM 4.5 Air",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.14,
|
|
output: 0.86,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-235b-a22b-thinking-2507": {
|
|
id: "qwen/qwen3-235b-a22b-thinking-2507",
|
|
name: "Qwen: Qwen3 235B A22B Thinking 2507",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.11,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"z-ai/glm-4-32b": {
|
|
id: "z-ai/glm-4-32b",
|
|
name: "Z.AI: GLM 4 32B ",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-coder:free": {
|
|
id: "qwen/qwen3-coder:free",
|
|
name: "Qwen: Qwen3 Coder 480B A35B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-coder": {
|
|
id: "qwen/qwen3-coder",
|
|
name: "Qwen: Qwen3 Coder 480B A35B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.22,
|
|
output: 0.95,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-235b-a22b-2507": {
|
|
id: "qwen/qwen3-235b-a22b-2507",
|
|
name: "Qwen: Qwen3 235B A22B Instruct 2507",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.08,
|
|
output: 0.55,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 262144,
|
|
} satisfies Model<"openai-completions">,
|
|
"moonshotai/kimi-k2": {
|
|
id: "moonshotai/kimi-k2",
|
|
name: "MoonshotAI: Kimi K2 0711",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.14,
|
|
output: 2.4899999999999998,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 63000,
|
|
maxTokens: 63000,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/devstral-medium": {
|
|
id: "mistralai/devstral-medium",
|
|
name: "Mistral: Devstral Medium",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/devstral-small": {
|
|
id: "mistralai/devstral-small",
|
|
name: "Mistral: Devstral Small 1.1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.07,
|
|
output: 0.28,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"inception/mercury": {
|
|
id: "inception/mercury",
|
|
name: "Inception: Mercury",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 1,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small-3.2-24b-instruct:free": {
|
|
id: "mistralai/mistral-small-3.2-24b-instruct:free",
|
|
name: "Mistral: Mistral Small 3.2 24B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small-3.2-24b-instruct": {
|
|
id: "mistralai/mistral-small-3.2-24b-instruct",
|
|
name: "Mistral: Mistral Small 3.2 24B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.06,
|
|
output: 0.18,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"minimax/minimax-m1": {
|
|
id: "minimax/minimax-m1",
|
|
name: "MiniMax: MiniMax M1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 1.6500000000000001,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 40000,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/magistral-small-2506": {
|
|
id: "mistralai/magistral-small-2506",
|
|
name: "Mistral: Magistral Small 2506",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.5,
|
|
output: 1.5,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40000,
|
|
maxTokens: 40000,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/magistral-medium-2506": {
|
|
id: "mistralai/magistral-medium-2506",
|
|
name: "Mistral: Magistral Medium 2506",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 5,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40000,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/magistral-medium-2506:thinking": {
|
|
id: "mistralai/magistral-medium-2506:thinking",
|
|
name: "Mistral: Magistral Medium 2506 (thinking)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 5,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40000,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-r1-0528": {
|
|
id: "deepseek/deepseek-r1-0528",
|
|
name: "DeepSeek: R1 0528",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 1.75,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/devstral-small-2505:free": {
|
|
id: "mistralai/devstral-small-2505:free",
|
|
name: "Mistral: Devstral Small 2505 (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/devstral-small-2505": {
|
|
id: "mistralai/devstral-small-2505",
|
|
name: "Mistral: Devstral Small 2505",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.22,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 131072,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.3-8b-instruct:free": {
|
|
id: "meta-llama/llama-3.3-8b-instruct:free",
|
|
name: "Meta: Llama 3.3 8B Instruct (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4028,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-medium-3": {
|
|
id: "mistralai/mistral-medium-3",
|
|
name: "Mistral: Mistral Medium 3",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"arcee-ai/virtuoso-large": {
|
|
id: "arcee-ai/virtuoso-large",
|
|
name: "Arcee AI: Virtuoso Large",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.75,
|
|
output: 1.2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"openai-completions">,
|
|
"inception/mercury-coder": {
|
|
id: "inception/mercury-coder",
|
|
name: "Inception: Mercury Coder",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 1,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-4b:free": {
|
|
id: "qwen/qwen3-4b:free",
|
|
name: "Qwen: Qwen3 4B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-30b-a3b": {
|
|
id: "qwen/qwen3-30b-a3b",
|
|
name: "Qwen: Qwen3 30B A3B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.06,
|
|
output: 0.22,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40960,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-14b": {
|
|
id: "qwen/qwen3-14b",
|
|
name: "Qwen: Qwen3 14B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.22,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40960,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-32b": {
|
|
id: "qwen/qwen3-32b",
|
|
name: "Qwen: Qwen3 32B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.19999999999999998,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40960,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-235b-a22b:free": {
|
|
id: "qwen/qwen3-235b-a22b:free",
|
|
name: "Qwen: Qwen3 235B A22B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen3-235b-a22b": {
|
|
id: "qwen/qwen3-235b-a22b",
|
|
name: "Qwen: Qwen3 235B A22B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.18,
|
|
output: 0.54,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 40960,
|
|
maxTokens: 40960,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-maverick:free": {
|
|
id: "meta-llama/llama-4-maverick:free",
|
|
name: "Meta: Llama 4 Maverick (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4028,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-maverick": {
|
|
id: "meta-llama/llama-4-maverick",
|
|
name: "Meta: Llama 4 Maverick",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1048576,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-scout:free": {
|
|
id: "meta-llama/llama-4-scout:free",
|
|
name: "Meta: Llama 4 Scout (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4028,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-4-scout": {
|
|
id: "meta-llama/llama-4-scout",
|
|
name: "Meta: Llama 4 Scout",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.08,
|
|
output: 0.3,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 327680,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-chat-v3-0324:free": {
|
|
id: "deepseek/deepseek-chat-v3-0324:free",
|
|
name: "DeepSeek: DeepSeek V3 0324 (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-chat-v3-0324": {
|
|
id: "deepseek/deepseek-chat-v3-0324",
|
|
name: "DeepSeek: DeepSeek V3 0324",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.24,
|
|
output: 0.84,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small-3.1-24b-instruct:free": {
|
|
id: "mistralai/mistral-small-3.1-24b-instruct:free",
|
|
name: "Mistral: Mistral Small 3.1 24B (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small-3.1-24b-instruct": {
|
|
id: "mistralai/mistral-small-3.1-24b-instruct",
|
|
name: "Mistral: Mistral Small 3.1 24B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"microsoft/phi-4-multimodal-instruct": {
|
|
id: "microsoft/phi-4-multimodal-instruct",
|
|
name: "Microsoft: Phi 4 Multimodal Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwq-32b": {
|
|
id: "qwen/qwq-32b",
|
|
name: "Qwen: QwQ 32B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-saba": {
|
|
id: "mistralai/mistral-saba",
|
|
name: "Mistral: Saba",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.19999999999999998,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-turbo": {
|
|
id: "qwen/qwen-turbo",
|
|
name: "Qwen: Qwen-Turbo",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.19999999999999998,
|
|
cacheRead: 0.02,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-plus": {
|
|
id: "qwen/qwen-plus",
|
|
name: "Qwen: Qwen-Plus",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 1.2,
|
|
cacheRead: 0.16,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-max": {
|
|
id: "qwen/qwen-max",
|
|
name: "Qwen: Qwen-Max ",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1.5999999999999999,
|
|
output: 6.3999999999999995,
|
|
cacheRead: 0.64,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 8192,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small-24b-instruct-2501": {
|
|
id: "mistralai/mistral-small-24b-instruct-2501",
|
|
name: "Mistral: Mistral Small 3",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.049999999999999996,
|
|
output: 0.08,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-r1": {
|
|
id: "deepseek/deepseek-r1",
|
|
name: "DeepSeek: R1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: true,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 2,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/codestral-2501": {
|
|
id: "mistralai/codestral-2501",
|
|
name: "Mistral: Codestral 2501",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.8999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 262144,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"deepseek/deepseek-chat": {
|
|
id: "deepseek/deepseek-chat",
|
|
name: "DeepSeek: DeepSeek V3",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.85,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 163840,
|
|
maxTokens: 163840,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.3-70b-instruct:free": {
|
|
id: "meta-llama/llama-3.3-70b-instruct:free",
|
|
name: "Meta: Llama 3.3 70B Instruct (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65536,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.3-70b-instruct": {
|
|
id: "meta-llama/llama-3.3-70b-instruct",
|
|
name: "Meta: Llama 3.3 70B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.13,
|
|
output: 0.39,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 120000,
|
|
} satisfies Model<"openai-completions">,
|
|
"amazon/nova-lite-v1": {
|
|
id: "amazon/nova-lite-v1",
|
|
name: "Amazon: Nova Lite 1.0",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.06,
|
|
output: 0.24,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 300000,
|
|
maxTokens: 5120,
|
|
} satisfies Model<"openai-completions">,
|
|
"amazon/nova-micro-v1": {
|
|
id: "amazon/nova-micro-v1",
|
|
name: "Amazon: Nova Micro 1.0",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.035,
|
|
output: 0.14,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 5120,
|
|
} satisfies Model<"openai-completions">,
|
|
"amazon/nova-pro-v1": {
|
|
id: "amazon/nova-pro-v1",
|
|
name: "Amazon: Nova Pro 1.0",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.7999999999999999,
|
|
output: 3.1999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 300000,
|
|
maxTokens: 5120,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-large-2411": {
|
|
id: "mistralai/mistral-large-2411",
|
|
name: "Mistral Large 2411",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-large-2407": {
|
|
id: "mistralai/mistral-large-2407",
|
|
name: "Mistral Large 2407",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/pixtral-large-2411": {
|
|
id: "mistralai/pixtral-large-2411",
|
|
name: "Mistral: Pixtral Large 2411",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"thedrummer/unslopnemo-12b": {
|
|
id: "thedrummer/unslopnemo-12b",
|
|
name: "TheDrummer: UnslopNemo 12B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/ministral-8b": {
|
|
id: "mistralai/ministral-8b",
|
|
name: "Mistral: Ministral 8B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"nvidia/llama-3.1-nemotron-70b-instruct": {
|
|
id: "nvidia/llama-3.1-nemotron-70b-instruct",
|
|
name: "NVIDIA: Llama 3.1 Nemotron 70B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.6,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"thedrummer/rocinante-12b": {
|
|
id: "thedrummer/rocinante-12b",
|
|
name: "TheDrummer: Rocinante 12B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.16999999999999998,
|
|
output: 0.43,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.2-3b-instruct": {
|
|
id: "meta-llama/llama-3.2-3b-instruct",
|
|
name: "Meta: Llama 3.2 3B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.02,
|
|
output: 0.02,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 16384,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"qwen/qwen-2.5-72b-instruct": {
|
|
id: "qwen/qwen-2.5-72b-instruct",
|
|
name: "Qwen2.5 72B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.07,
|
|
output: 0.26,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 32768,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/pixtral-12b": {
|
|
id: "mistralai/pixtral-12b",
|
|
name: "Mistral: Pixtral 12B",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"cohere/command-r-08-2024": {
|
|
id: "cohere/command-r-08-2024",
|
|
name: "Cohere: Command R (08-2024)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.15,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4000,
|
|
} satisfies Model<"openai-completions">,
|
|
"cohere/command-r-plus-08-2024": {
|
|
id: "cohere/command-r-plus-08-2024",
|
|
name: "Cohere: Command R+ (08-2024)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2.5,
|
|
output: 10,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4000,
|
|
} satisfies Model<"openai-completions">,
|
|
"microsoft/phi-3.5-mini-128k-instruct": {
|
|
id: "microsoft/phi-3.5-mini-128k-instruct",
|
|
name: "Microsoft: Phi-3.5 Mini 128K Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"nousresearch/hermes-3-llama-3.1-70b": {
|
|
id: "nousresearch/hermes-3-llama-3.1-70b",
|
|
name: "Nous: Hermes 3 70B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.3,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.1-70b-instruct": {
|
|
id: "meta-llama/llama-3.1-70b-instruct",
|
|
name: "Meta: Llama 3.1 70B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.39999999999999997,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.1-405b-instruct": {
|
|
id: "meta-llama/llama-3.1-405b-instruct",
|
|
name: "Meta: Llama 3.1 405B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.7999999999999999,
|
|
output: 0.7999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3.1-8b-instruct": {
|
|
id: "meta-llama/llama-3.1-8b-instruct",
|
|
name: "Meta: Llama 3.1 8B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.02,
|
|
output: 0.03,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-nemo": {
|
|
id: "mistralai/mistral-nemo",
|
|
name: "Mistral: Mistral Nemo",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.02,
|
|
output: 0.04,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 131072,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-7b-instruct:free": {
|
|
id: "mistralai/mistral-7b-instruct:free",
|
|
name: "Mistral: Mistral 7B Instruct (free)",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0,
|
|
output: 0,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-7b-instruct": {
|
|
id: "mistralai/mistral-7b-instruct",
|
|
name: "Mistral: Mistral 7B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.028,
|
|
output: 0.054,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-7b-instruct-v0.3": {
|
|
id: "mistralai/mistral-7b-instruct-v0.3",
|
|
name: "Mistral: Mistral 7B Instruct v0.3",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.028,
|
|
output: 0.054,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"microsoft/phi-3-mini-128k-instruct": {
|
|
id: "microsoft/phi-3-mini-128k-instruct",
|
|
name: "Microsoft: Phi-3 Mini 128K Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.09999999999999999,
|
|
output: 0.09999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"microsoft/phi-3-medium-128k-instruct": {
|
|
id: "microsoft/phi-3-medium-128k-instruct",
|
|
name: "Microsoft: Phi-3 Medium 128K Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 1,
|
|
output: 1,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3-8b-instruct": {
|
|
id: "meta-llama/llama-3-8b-instruct",
|
|
name: "Meta: Llama 3 8B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.03,
|
|
output: 0.06,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"meta-llama/llama-3-70b-instruct": {
|
|
id: "meta-llama/llama-3-70b-instruct",
|
|
name: "Meta: Llama 3 70B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.3,
|
|
output: 0.39999999999999997,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 8192,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mixtral-8x22b-instruct": {
|
|
id: "mistralai/mixtral-8x22b-instruct",
|
|
name: "Mistral: Mixtral 8x22B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.8999999999999999,
|
|
output: 0.8999999999999999,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 65536,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-large": {
|
|
id: "mistralai/mistral-large",
|
|
name: "Mistral Large",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 2,
|
|
output: 6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 128000,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-tiny": {
|
|
id: "mistralai/mistral-tiny",
|
|
name: "Mistral Tiny",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.25,
|
|
output: 0.25,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-small": {
|
|
id: "mistralai/mistral-small",
|
|
name: "Mistral Small",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.19999999999999998,
|
|
output: 0.6,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mixtral-8x7b-instruct": {
|
|
id: "mistralai/mixtral-8x7b-instruct",
|
|
name: "Mistral: Mixtral 8x7B Instruct",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.54,
|
|
output: 0.54,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 32768,
|
|
maxTokens: 16384,
|
|
} satisfies Model<"openai-completions">,
|
|
"mistralai/mistral-7b-instruct-v0.1": {
|
|
id: "mistralai/mistral-7b-instruct-v0.1",
|
|
name: "Mistral: Mistral 7B Instruct v0.1",
|
|
api: "openai-completions",
|
|
provider: "openrouter",
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: {
|
|
input: 0.11,
|
|
output: 0.19,
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
},
|
|
contextWindow: 2824,
|
|
maxTokens: 4096,
|
|
} satisfies Model<"openai-completions">,
|
|
},
|
|
} as const;
|