文章标题:Step 5 现已在 AI Gateway 上线
正文: StepFun 的 Step 5 现已在 AI Gateway 上线。
Step 5 专为智能体工作打造:编写、调试和测试代码,研究与长篇报告,网页设计,以及交互式应用,并能使用你应用中的工具将长任务推进至完成。与 Step 5 Preview 相比,Step 5 用更少的 token 完成复杂任务,并在文本和图像之外新增视频输入,上下文窗口达 1M token。
使用 stepfun/step-5 作为模型名称:
import { streamText } from 'ai';
const result = streamText({ model: 'stepfun/step-5', prompt: 'Write a TypeScript function that debounces another function.',});
for await (const text of result.textStream) { process.stdout.write(text);}
要在 Claude Code、Codex、Cursor 等工具中使用它,请安装最新的 Vercel CLI 并运行 setup:
npx vercel ai-gateway setup
然后在 agent 中选择 stepfun/step-5。详情请参阅 coding agents 指南。
在 model playground 中试用 Step 5。
AI Gateway 提供统一的 API,用于调用模型、追踪用量与成本,并配置重试、故障转移和性能优化,以实现高于模型提供方的可用性。它内置自定义报表、Zero Data Retention 支持、API 密钥预算、路由规则等功能。
AI Gateway 按提供方价格计费,不加价,且不对推理收取平台费用,包括 Bring Your Own Key (BYOK) 请求。
你可以查看 AI Gateway 上所有可用的语言模型。