text·image
silvamux/
doubao-seed-2.0-code价格
以单次请求的输入上下文长度判定档位,Tune 与 Pro 采用相同的阶梯价格。
| 输入上下文 | 输入 | 输出 | 缓存读取 | 缓存写入 |
|---|---|---|---|---|
| ≤ 32K tokens | ¥3.2 | ¥16 | ¥0.64 | ¥3.2 |
| ≤ 128K tokens | ¥4.8 | ¥24 | ¥0.96 | ¥4.8 |
| > 128K tokens | ¥9.6 | ¥48 | ¥1.92 | ¥9.6 |
模型能力
综合能力 78 分(良好)。优势集中在 文本理解(97%)、信息检索 / RAG(92%)、代码生成(90%)。相对短板为 智能体协同(45%)。适合 代码研发 / 信息检索 / 企业知识库 等场景。在 智能体协同 类任务上建议结合人工复核或专项验证。
78/ 100
专项进阶能力
8 项智能体协同45%
7 题 · 主/客观混合
代码生成90%
10 题 · 客观
代码理解与调试73%
12 题 · 主/客观混合
创意写作76%
17 题 · 主观
信息检索 / RAG92%
13 题 · 主/客观混合
长文本处理67%
3 题 · 主观
数学与科学推理86%
14 题 · 客观
多语言能力83%
10 题 · 主/客观混合
通用基础能力
3 项通识知识76%
15 题 · 主/客观混合
文本理解97%
5 题 · 主观
逻辑推理74%
20 题 · 主/客观混合
安全与合规能力
2 项幻觉控制70%
9 题 · 主观
指令遵循79%
14 题 · 主观
服务表现
Doubao Seed 2.0 Code
doubao-seed-2.0-code- 延迟
- 30.65s
- 吞吐量
- 1.76Ktokens/min
- 可用率
- 98.66%
可用率
98.66%- 完成率
- 99%
- 缓存命中率
- 0.0%
- 累计评测耗时
- 13558.2s
- Token 消耗
- 398,164tokens
- 平均请求次数
- 1.0次
- TPM
- 1,762tokens/min
- QPM
- 0.7req/min
Doubao Seed 2.0 Code 的示例代码和 API
Pro
doubao-seed-2.0-code/api/v0/chat/completions/api/v3/chat/completionscurl https://www.silvamux.com/api/v1/chat/completions \
-H "Authorization: Bearer 你的API密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seed-2.0-code",
"messages": [{"role": "user", "content": "你好,请介绍一下自己"}]
}'# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://www.silvamux.com/api/v1",
api_key="你的API密钥",
)
response = client.chat.completions.create(
model="doubao-seed-2.0-code",
messages=[
{"role": "user", "content": "你好,请介绍一下自己"}
],
)
print(response.choices[0].message.content)// Gradle: implementation(__HL_SLOT_0__)
import okhttp3.*;
OkHttpClient client = new OkHttpClient();
MediaType json = MediaType.get("application/json");
String payload = "{\"model\":\"doubao-seed-2.0-code\",\"messages\":[{\"role\":\"user\",\"content\":\"你好,请介绍一下自己\"}]}";
Request request = new Request.Builder()
.url("https://www.silvamux.com/api/v1/chat/completions")
.header("Authorization", "Bearer 你的API密钥")
.post(RequestBody.create(payload, json))
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://www.silvamux.com/api/v1',
apiKey: '你的API密钥',
})
const response = await client.chat.completions.create({
model: 'doubao-seed-2.0-code',
messages: [{ role: 'user', content: '你好,请介绍一下自己' }],
})
console.log(response.choices[0].message.content)