ByteDance: doubao-seed-2.0-code
doubao-seed-2.0-code- Input / Output
- $0.4706 / $2.35
- Context
- 229K
- Max output
- 128K
- Modalities
- Chat
- Capabilities
- Tool usePrompt CacheReasoning
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
chat_completionOpenAI-compatiblePOST/v1/chat/completionscurl https://api.tokenlab.sh/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxx" \ -d '{ "model": "doubao-seed-2.0-code", "messages": [ {"role": "user", "content": "Hello!"} ] }'
Pricing
Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.
Input tokens <= 32K · Text to text · Input token range · [0,32k]
Per 1M tokens- Official price
- Input $0.4706 / Output $2.35 / Cache read $0.0941
- TokenLab price
- -
- Discount
- -
Input tokens <= 128K · Text to text · Input token range · (32k,128k]
Per 1M tokens- Official price
- Input $0.7059 / Output $3.53 / Cache read $0.1412
- TokenLab price
- -
- Discount
- -
Input tokens <= 256K · Text to text · Input token range · (128k,256k]
Per 1M tokens- Official price
- Input $1.41 / Output $7.06 / Cache read $0.2824
- TokenLab price
- -
- Discount
- -
Display Base Rates
Per 1M tokens- Official price
- -
- TokenLab price
- Input $0.4706 / Output $2.35 / Cache read $0.0941
- Discount
- -
Cache read
- Official price
- $0.0941
- TokenLab price
- $0.0941
- Discount
- -
| Official pricePer 1M tokens | TokenLab pricePer 1M tokens | Discount | |
|---|---|---|---|
| Input tokens <= 32K · Text to text · Input token range · [0,32k] | Input $0.4706 / Output $2.35 / Cache read $0.0941 | - | - |
| Input tokens <= 128K · Text to text · Input token range · (32k,128k] | Input $0.7059 / Output $3.53 / Cache read $0.1412 | - | - |
| Input tokens <= 256K · Text to text · Input token range · (128k,256k] | Input $1.41 / Output $7.06 / Cache read $0.2824 | - | - |
| Display Base Rates | - | Input $0.4706 / Output $2.35 / Cache read $0.0941 | - |
| Cache read | $0.0941 | $0.0941 | - |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hoursNo data yet
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open doubao-seed-2.0-code in Console with a prompt ready to edit or send.
Help me try doubao-seed-2.0-code with a short message at /v1/chat/completions. Show the reply, latency, and cost.
Use cases
Best forCode
Writing, reviewing, and debugging code in real engineering loops
Reasoning
Multi-step reasoning, analysis, and research workflows
Agents and tools
Handle reasoning, support triage, tool calls, and multi-step tasks.
Coding
Generate, review, or debug code in the tools you already use.
Knowledge assistants
Build chat, search, and retrieval with a clear price and capability profile.
Side-by-side test
Compare response quality, latency, and price side by side.
Prompt examples
Write a concise support reply and list the assumptions behind it.
Review this API design and call out the top three integration risks.
Turn a long changelog into release notes a non-engineer would read.
This model has conditional pricing. Monthly token totals alone cannot produce a reliable estimate; use the detailed pricing for the request specification, cache, and applicable time window.
FAQ
How much does doubao-seed-2.0-code cost?
On TokenLab, doubao-seed-2.0-code costs Input $0.4706 / Output $2.35 Per 1M tokens. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.
What is doubao-seed-2.0-code best for?
doubao-seed-2.0-code supports Code, JSON mode, Prompt Cache. You can open it directly in Create.
How do I test doubao-seed-2.0-code?
Open doubao-seed-2.0-code in Create. A sample for /v1/chat/completions will be ready to try.
Which endpoint should doubao-seed-2.0-code use?
Use https://api.tokenlab.sh/v1/chat/completions for doubao-seed-2.0-code. The request example below shows the matching code shape.
Can I test doubao-seed-2.0-code before integrating it?
Yes. Open Console starts a ready draft for doubao-seed-2.0-code and keeps your prompt after sign-in, so you don’t lose context.
Which operations does doubao-seed-2.0-code support?
doubao-seed-2.0-code supports chat_completion. Select an operation above to see its endpoint and request example.