Doubao-Seed-2.0-Code 面向企业级编程需求优化,在 Seed 2.0 优秀的 Agent、VLM 能力基础上,特别增强了代码能力,不仅前端能力表现出众,也对企业常见的多语言编码需求做了特别优化,适合接入各种 AI 编程工具使用。 新特性说明 基于强大基座模型:基于 Seed 2.0 的基座模型,Doubao-Seed-2.0-Code 有优秀的 Agentic 能力,支持 Skills 调用和自定义工具使用;VLM 能力优秀,支持基于图片的 Browser Use 等工具使用 面向编程任务优化:特别优化了使用各种编程语言和编程工具的能力,在多轮长程任务下表现出色; 复杂指令遵循:能理解长而复杂的编程指令,稳定交付符合预期的产物
from openai import OpenAI
client = OpenAI(
base_url="https://api.openroute.cn/v1",
api_key="<ONTOROUTE_API_KEY>",
)
completion = client.chat.completions.create(
model="doubao/doubao-seed-2.0-code-preview-260215",
messages=[
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn.",
}
],
)
print(completion.choices[0].message.content)Prices are CNY (¥) per million tokens, billed as you go. Cache reads can cut the cost of repeated context.
| Provider | Input | Output | Cache read | Context length | Latency | Uptime | Status |
|---|---|---|---|---|---|---|---|
volcengine volcengine/doubao-seed-2-0-code-preview-260215 | ¥3.20 | ¥16.00 | — | 256K | 1.4s | 88.70% | Lowest |
| Parameter | Description | Default |
|---|---|---|
| tools | Tools | Set per request |