ByteDance: doubao-seed-2.0-code-preview-260215API pricing
doubao-seed-2.0-code-preview-260215 is a language model from ByteDance, tuned for writing and editing code.
- 每100万枚代币的价格
- $0.82 / $4.08input / output
- 缓存的输入
- $0.41per 1M tokens
- 上下文
- 127K tokens
- 服务提供商
- 1
服务提供商
1 provider ·
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/doubao-seed-2.0-code-preview-260215", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/doubao-seed-2.0-code-preview-260215",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/doubao-seed-2.0-code-preview-260215",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 doubao-seed-2.0-code-preview-260215 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/doubao-seed-2.0-code-preview-260215;其余代码保持不变。
About doubao-seed-2.0-code-preview-260215
- 请求示例
- $0.01210,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
doubao-seed-2.0-code-preview-260215 costs from $0.82 per 1M input tokens and $4.08 per 1M output tokens on OpenCheap, with cached input at $0.41 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.012, and 1,000 such requests about $12.28.
One provider serves doubao-seed-2.0-code-preview-260215 on OpenCheap today. Its context window is 127K tokens (127,999), room for roughly 96,000 words of English in one request.
doubao-seed-2.0-code-preview-260215 is one of 24 ByteDance models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the doubao-seed-2.0-code-preview-260215 API cost per 1M tokens?
doubao-seed-2.0-code-preview-260215 costs from $0.82 per 1M input tokens and $4.08 per 1M output tokens on OpenCheap, with cached input at $0.41 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one doubao-seed-2.0-code-preview-260215 request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.012, and 1,000 such requests about $12.28. Every answer reports its own cost in usage.cost.
Which providers serve doubao-seed-2.0-code-preview-260215?
One provider serves doubao-seed-2.0-code-preview-260215 on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of doubao-seed-2.0-code-preview-260215?
Its context window is 127K tokens (127,999), room for roughly 96,000 words of English in one request.
How do I call the doubao-seed-2.0-code-preview-260215 API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/doubao-seed-2.0-code-preview-260215. One OpenCheap key works for every model; the rest of your code stays the same.
More from ByteDance
- Doubao Seed 1.6doubao-seed-1.6$0.11 / $1.10 per 1M · 256K context
- Doubao Seed 1.6 Flashdoubao-seed-1.6-flash$0.021 / $0.21 per 1M · 256K context
- Doubao Seed 1.6 Litedoubao-seed-1.6-lite$0.041 / $0.33 per 1M · 256K context
- Doubao Seed 1.6 Thinkingdoubao-seed-1.6-thinking$0.11 / $1.10 per 1M · 256K context
- Doubao Seed 2.0 Code Previewdoubao-seed-2.0-code-preview$0.48 / $2.41 per 1M · 256K context
- Doubao Seed 2.0 Litedoubao-seed-2.0-lite-260215$0.25 / $2.00 per 1M · 256K context
- Doubao Seed 2.0 Lite 260428doubao-seed-2.0-lite-260428$0.09 / $0.54 per 1M · 256K context
- Doubao Seed 2.0 Minidoubao-seed-2.0-mini-260215$0.10 / $0.48 per 1M · 256K context
类似型号
- GPT-5.3-CodexOpenAI · 400K context$0.70 / $5.60 per 1M
- Kimi K2.7 Code HighspeedMoonshot · 26.2万上下文$1.90 / $8.00 per 1M
- Grok Code Fast 1xAI · 256K context$1.00 / $2.00 per 1M46 % cheaper
- Kimi K2.7 代码Moonshot · 26.2万上下文$0.25 / $1.08 per 1Mabout 4× cheaper
- GPT 4oOpenAI · 128K context$1.00 / $4.00 per 1M
- Qwen 3 Coder 480B TurboQwen · 256K context$0.42 / $1.80 per 1M55 % cheaper
Compare doubao-seed-2.0-code-preview-260215 with any model →Cheapest LLM API