258 lines
6.2 KiB
TypeScript
258 lines
6.2 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.ts";
|
|
|
|
export const ANTHROPIC_MODELS = {
|
|
"claude-fable-5": {
|
|
id: "claude-fable-5",
|
|
name: "Claude Fable 5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 10,
|
|
output: 50,
|
|
cacheRead: 1,
|
|
cacheWrite: 12.5,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-haiku-4-5": {
|
|
id: "claude-haiku-4-5",
|
|
name: "Claude Haiku 4.5 (latest)",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1,
|
|
output: 5,
|
|
cacheRead: 0.1,
|
|
cacheWrite: 1.25,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-haiku-4-5-20251001": {
|
|
id: "claude-haiku-4-5-20251001",
|
|
name: "Claude Haiku 4.5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 1,
|
|
output: 5,
|
|
cacheRead: 0.1,
|
|
cacheWrite: 1.25,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-1": {
|
|
id: "claude-opus-4-1",
|
|
name: "Claude Opus 4.1 (latest)",
|
|
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-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-opus-4-5": {
|
|
id: "claude-opus-4-5",
|
|
name: "Claude Opus 4.5 (latest)",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 6.25,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-5-20251101": {
|
|
id: "claude-opus-4-5-20251101",
|
|
name: "Claude Opus 4.5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
reasoning: true,
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 6.25,
|
|
},
|
|
contextWindow: 200000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-6": {
|
|
id: "claude-opus-4-6",
|
|
name: "Claude Opus 4.6",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 6.25,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-7": {
|
|
id: "claude-opus-4-7",
|
|
name: "Claude Opus 4.7",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 6.25,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-opus-4-8": {
|
|
id: "claude-opus-4-8",
|
|
name: "Claude Opus 4.8",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true,"supportsTemperature":false},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 5,
|
|
output: 25,
|
|
cacheRead: 0.5,
|
|
cacheWrite: 6.25,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-sonnet-4-5": {
|
|
id: "claude-sonnet-4-5",
|
|
name: "Claude Sonnet 4.5 (latest)",
|
|
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: 1000000,
|
|
maxTokens: 64000,
|
|
} 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: 1000000,
|
|
maxTokens: 64000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-sonnet-4-6": {
|
|
id: "claude-sonnet-4-6",
|
|
name: "Claude Sonnet 4.6",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 3,
|
|
output: 15,
|
|
cacheRead: 0.3,
|
|
cacheWrite: 3.75,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
"claude-sonnet-5": {
|
|
id: "claude-sonnet-5",
|
|
name: "Claude Sonnet 5",
|
|
api: "anthropic-messages",
|
|
provider: "anthropic",
|
|
baseUrl: "https://api.anthropic.com",
|
|
compat: {"forceAdaptiveThinking":true},
|
|
reasoning: true,
|
|
thinkingLevelMap: {"xhigh":"xhigh","max":"max"},
|
|
input: ["text", "image"],
|
|
cost: {
|
|
input: 2,
|
|
output: 10,
|
|
cacheRead: 0.2,
|
|
cacheWrite: 2.5,
|
|
},
|
|
contextWindow: 1000000,
|
|
maxTokens: 128000,
|
|
} satisfies Model<"anthropic-messages">,
|
|
} as const;
|