S

step-5-preview

阶跃Agentic旗舰基模

输入 / 输出 价格
¥7.00 / ¥20.00/ M tokens
上下文
1M

价格

规格价格(元 / M tokens)
输入¥7.00
输出¥20.00
缓存命中¥0.35
缓存创建—

快速开始

  1. 1

    获取 API Key

    在控制台创建 API Key 并妥善保存(仅创建时完整展示一次)。

  2. 2

    发起请求

    通过 OpenAI 兼容车道调用对话补全接口,model 填写本页顶部展示的模型名。

    curl https://api.topsdyne.com/v1/chat/completions \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "step-5-preview",
        "messages": [{"role": "user", "content": "你好"}]
      }'
  3. 3

    流式输出

    在请求体中加入 stream: true,即可逐块接收生成内容。

    curl https://api.topsdyne.com/v1/chat/completions \
      -H "Authorization: Bearer <YOUR_API_KEY>" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "step-5-preview",
        "messages": [{"role": "user", "content": "你好"}],
        "stream": true
      }'

接入端点

POSThttps://api.topsdyne.com/v1/chat/completions
OpenAI 兼容车道(主)
字段说明
model对外模型名,填写本页顶部展示的名称
messages对话消息数组,元素为 { role, content }
stream可选是否流式返回,默认 false
max_tokens可选最大输出 token 数
temperature可选采样温度
POSThttps://api.topsdyne.com/v1/messages
Anthropic 兼容车道(次)
字段说明
model对外模型名
max_tokens最大输出 token 数
messages对话消息数组
system可选系统提示词
stream可选是否流式返回
两条车道共用同一组 API Key 与计费口径,按客户端 SDK 形态择一即可。

相关模型