|
| 1 | +import type { ModelInfo } from "../model.js" |
| 2 | + |
| 3 | +// Baseten |
| 4 | +// https://baseten.co/products/model-apis/ |
| 5 | + |
| 6 | +export const basetenModels = { |
| 7 | + "moonshotai/Kimi-K2-Thinking": { |
| 8 | + maxTokens: 163_800, |
| 9 | + contextWindow: 262_000, |
| 10 | + supportsImages: false, |
| 11 | + supportsPromptCache: false, |
| 12 | + supportsNativeTools: true, |
| 13 | + defaultToolProtocol: "native", |
| 14 | + inputPrice: 0.6, |
| 15 | + outputPrice: 2.5, |
| 16 | + cacheWritesPrice: 0, |
| 17 | + cacheReadsPrice: 0, |
| 18 | + description: "Kimi K2 Thinking - A model with enhanced reasoning capabilities from Kimi K2", |
| 19 | + }, |
| 20 | + "zai-org/GLM-4.6": { |
| 21 | + maxTokens: 200_000, |
| 22 | + contextWindow: 200_000, |
| 23 | + supportsImages: false, |
| 24 | + supportsPromptCache: false, |
| 25 | + supportsNativeTools: true, |
| 26 | + inputPrice: 0.6, |
| 27 | + outputPrice: 2.2, |
| 28 | + cacheWritesPrice: 0, |
| 29 | + cacheReadsPrice: 0, |
| 30 | + description: "Frontier open model with advanced agentic, reasoning and coding capabilities", |
| 31 | + }, |
| 32 | + "deepseek-ai/DeepSeek-R1": { |
| 33 | + maxTokens: 131_072, |
| 34 | + contextWindow: 163_840, |
| 35 | + supportsImages: false, |
| 36 | + supportsPromptCache: false, |
| 37 | + inputPrice: 2.55, |
| 38 | + outputPrice: 5.95, |
| 39 | + cacheWritesPrice: 0, |
| 40 | + cacheReadsPrice: 0, |
| 41 | + description: "DeepSeek's first-generation reasoning model", |
| 42 | + }, |
| 43 | + "deepseek-ai/DeepSeek-R1-0528": { |
| 44 | + maxTokens: 131_072, |
| 45 | + contextWindow: 163_840, |
| 46 | + supportsImages: false, |
| 47 | + supportsPromptCache: false, |
| 48 | + inputPrice: 2.55, |
| 49 | + outputPrice: 5.95, |
| 50 | + cacheWritesPrice: 0, |
| 51 | + cacheReadsPrice: 0, |
| 52 | + description: "The latest revision of DeepSeek's first-generation reasoning model", |
| 53 | + }, |
| 54 | + "deepseek-ai/DeepSeek-V3-0324": { |
| 55 | + maxTokens: 131_072, |
| 56 | + contextWindow: 163_840, |
| 57 | + supportsImages: false, |
| 58 | + supportsPromptCache: false, |
| 59 | + inputPrice: 0.77, |
| 60 | + outputPrice: 0.77, |
| 61 | + cacheWritesPrice: 0, |
| 62 | + cacheReadsPrice: 0, |
| 63 | + description: "Fast general-purpose LLM with enhanced reasoning capabilities", |
| 64 | + }, |
| 65 | + "deepseek-ai/DeepSeek-V3.1": { |
| 66 | + maxTokens: 131_072, |
| 67 | + contextWindow: 163_840, |
| 68 | + supportsImages: false, |
| 69 | + supportsPromptCache: false, |
| 70 | + inputPrice: 0.5, |
| 71 | + outputPrice: 1.5, |
| 72 | + cacheWritesPrice: 0, |
| 73 | + cacheReadsPrice: 0, |
| 74 | + description: |
| 75 | + "Extremely capable general-purpose LLM with hybrid reasoning capabilities and advanced tool calling", |
| 76 | + }, |
| 77 | + "Qwen/Qwen3-235B-A22B-Instruct-2507": { |
| 78 | + maxTokens: 262_144, |
| 79 | + contextWindow: 262_144, |
| 80 | + supportsImages: false, |
| 81 | + supportsPromptCache: false, |
| 82 | + inputPrice: 0.22, |
| 83 | + outputPrice: 0.8, |
| 84 | + cacheWritesPrice: 0, |
| 85 | + cacheReadsPrice: 0, |
| 86 | + description: "Mixture-of-experts LLM with math and reasoning capabilities", |
| 87 | + }, |
| 88 | + "Qwen/Qwen3-Coder-480B-A35B-Instruct": { |
| 89 | + maxTokens: 262_144, |
| 90 | + contextWindow: 262_144, |
| 91 | + supportsImages: false, |
| 92 | + supportsPromptCache: false, |
| 93 | + inputPrice: 0.38, |
| 94 | + outputPrice: 1.53, |
| 95 | + cacheWritesPrice: 0, |
| 96 | + cacheReadsPrice: 0, |
| 97 | + description: "Mixture-of-experts LLM with advanced coding and reasoning capabilities", |
| 98 | + }, |
| 99 | + "openai/gpt-oss-120b": { |
| 100 | + maxTokens: 128_072, |
| 101 | + contextWindow: 128_072, |
| 102 | + supportsImages: false, |
| 103 | + supportsPromptCache: false, |
| 104 | + supportsNativeTools: true, |
| 105 | + inputPrice: 0.1, |
| 106 | + outputPrice: 0.5, |
| 107 | + cacheWritesPrice: 0, |
| 108 | + cacheReadsPrice: 0, |
| 109 | + description: "Extremely capable general-purpose LLM with strong, controllable reasoning capabilities", |
| 110 | + }, |
| 111 | + "moonshotai/Kimi-K2-Instruct-0905": { |
| 112 | + maxTokens: 168_000, |
| 113 | + contextWindow: 262_000, |
| 114 | + supportsImages: false, |
| 115 | + supportsPromptCache: false, |
| 116 | + supportsNativeTools: true, |
| 117 | + inputPrice: 0.6, |
| 118 | + outputPrice: 2.5, |
| 119 | + cacheWritesPrice: 0, |
| 120 | + cacheReadsPrice: 0, |
| 121 | + description: "State of the art language model for agentic and coding tasks. September Update.", |
| 122 | + }, |
| 123 | +} as const satisfies Record<string, ModelInfo> |
| 124 | + |
| 125 | +export type BasetenModelId = keyof typeof basetenModels |
| 126 | + |
| 127 | +export const basetenDefaultModelId = "moonshotai/Kimi-K2-Thinking" satisfies BasetenModelId |
0 commit comments