| Input length | Input / 1M | Output / 1M | Cache hit / 1M |
|---|---|---|---|
| 0 - 32k | ¥3.20 | ¥16 | ¥0.64 |
| 32k - 128k | ¥4.80 | ¥24 | ¥0.96 |
| 128k - 256k | ¥9.60 | ¥48 | ¥1.92 |
Doubao Seed 2.0 Code 在 NextModel 中是什么?
Doubao Seed 2.0 Code 是 NextModel 目录中的 Volcengine 模型,常用于 agentic coding、repository-scale refactors、long-context code review 工作负载。当前展示价格为输入 ¥3.20 / 1M tokens、输出 ¥16 / 1M tokens 每 100 万 token,上下文窗口为 256k token。
适用场景
- agentic coding
- repository-scale refactors
- long-context code review
OpenAI 兼容调用示例
保持 OpenAI SDK 调用方式不变,把 base_url 改为 NextModel,并使用模型目录 ID doubao-seed-2-0-code。
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="doubao-seed-2-0-code",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)相似替代项
Doubao Seed 2.0 Pro is Volcengine's flagship general-purpose model, onboarded through the Volcengine Agent Plan, sharing the same tiered pricing as the Code variant.
Qwen3 Coder Plus 是面向编码的模型候选,适合需要中文工程工作流和长上下文代码辅助的团队。
Qwen3 Max 是通用的高能力中文模型候选,适合在国内外提供方之间做对比的团队。
常见问题
Doubao Seed 2.0 Code API 常见问题
What is Doubao Seed 2.0 Code best for?
Agentic coding tasks, large refactors, and long-context code review where the codebase exceeds a small context window.
How is Doubao Seed 2.0 Code priced?
Tiered by input length: ¥3.2/¥16 per 1M input/output tokens up to 32K tokens, rising to ¥9.6/¥48 above 128K tokens.