全部模型

doubao-seed-2.0-code

7折
doubao-seed-2.0-code

定价详情

元 / 1M Tokens

Input

输入

¥3.20

Output

输出

¥16.00

Cache Write

缓存创建

¥3.20

Cache Read

缓存读取

¥0.64

当前享受 7折 优惠,节省 30% 费用。

快速接入

接口地址POST https://www.dxnt.com/v1/chat/completions
cURL
curl https://www.dxnt.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seed-2.0-code",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python (OpenAI SDK)
import openai

client = openai.OpenAI(
    api_key="sk-your-key",
    base_url="https://www.dxnt.com/v1"
)

response = client.chat.completions.create(
    model="doubao-seed-2.0-code",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

模型信息

模型标识doubao-seed-2.0-code
计费方式按 Token 计费
输入价格¥3.20 / 1M
输出价格¥16.00 / 1M
缓存读取¥0.64 / 1M
缓存创建¥3.20 / 1M

开始使用 doubao-seed-2.0-code

注册即送免费额度,替换接口地址即可接入