Inkling 2 Mini 现已在 AI Gateway 上线
来自 Thinking Machines 的 Inkling 2 Mini 现已在 AI Gateway 上线。这款小型多模态推理模型专为 agentic coding、工具使用和知识工作打造,支持文本与图像输入、文本输出。
Inkling 2 Mini 总参数量为 26.4 亿,每个 token 激活 3.4 亿参数。该模型对每个 token 会多次运行其中间层,使其在写下任何内容之前能够进行更深入的推理,并且常常能以更少的推理 token 得出答案。与 Inkling 2 Small 一样,它在长时间运行的 agentic 任务上表现最强。
该模型具有 1M token 的上下文窗口,推理强度可从 none 设置到 max。
使用 thinkingmachines/inkling-2-mini 作为模型名称:
import { streamText } from 'ai';
const result = streamText({ model: 'thinkingmachines/inkling-2-mini', prompt: 'Write a Python script that renames photos by the date they were taken.',});
for await (const text of result.textStream) { process.stdout.write(text);}
要在 Claude Code、Codex、Cursor 等工具中使用它,请安装最新的 Vercel CLI 并运行 setup:
npx vercel ai-gateway setup
然后在 agent 中选择 thinkingmachines/inkling-2-mini。详情请参阅 coding agents guide。
在 model playground 中试用 Inkling 2 Mini。
AI Gateway 提供统一 API,用于调用模型、跟踪用量与成本,并配置重试、故障转移和性能优化,以实现高于提供商自身的正常运行时间。它内置自定义报告、Zero Data Retention 支持、API 密钥预算、路由规则等功能。
AI Gateway 反映提供商定价且不加价,也不对推理收取平台费用,包括 Bring Your Own Key(BYOK)请求。
你可以查看 AI Gateway 上所有可用的语言模型。