加载中…请求处理中,请稍候
Volcengine 模型

Doubao Seed 2.0 Code

Doubao Seed 2.0 Code is Volcengine's coding-focused variant, onboarded through the Volcengine Agent Plan for agentic and long-context coding workloads.

Volcengine平台整理生产可用
工具调用JSON 模式长上下文流式输出推理
输入价格¥3.20 / 1M tokens
输出价格¥16 / 1M tokens
上下文长度256k 令牌
最大输出8.2k 令牌
Input lengthInput / 1MOutput / 1MCache 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

Python
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)

相似替代项

Volcengine生产可用

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.

Starting at ¥3.20 / 1M tokens输入Starting at ¥16 / 1M tokens输出256k上下文
适用场景general-purpose reasoning, multimodal analysis, high-stakes production chat
路由已配置
工具调用视觉JSON 模式长上下文
平台整理NextModel production gateway and Volcengine Agent Plan pricing config
查看详情
Alibaba Cloud / Qwen目录

Qwen3 Coder Plus 是面向编码的模型候选,适合需要中文工程工作流和长上下文代码辅助的团队。

$0.65 / 1M tokens输入$3.25 / 1M tokens输出1M上下文
适用场景中文工程工作流, 代码生成, 代码库问答
路由已配置
工具调用JSON 模式长上下文流式输出
OpenRouter(可用时)OpenRouter 公开 Models API 的实时元数据;公开价格来自注册表价格规则。
查看详情
Alibaba Cloud / Qwen目录

Qwen3 Max 是通用的高能力中文模型候选,适合在国内外提供方之间做对比的团队。

$0.78 / 1M tokens输入$3.90 / 1M tokens输出262.1k上下文
适用场景中文 Agent 工作流, 商业分析, 结构化输出
路由已配置
工具调用JSON 模式长上下文推理
OpenRouter(可用时)OpenRouter 公开 Models API 的实时元数据;公开价格来自注册表价格规则。
查看详情

常见问题

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.