Doubao Seed 2.0 API
$0.444 - 1.333(~ 32 - 96 credits) per 1M input tokens; $2.222 - 6.667(~ 160 - 480 credits) per 1M output tokens
$0.089(~ 6.4 credits) per 1M cache read tokens
Cache storage charged separately per hour.
Highest stability with guaranteed 99.9% uptime. Recommended for production environments.
Use the same API endpoint for all versions. Only the model parameter differs.
Doubao Seed 2.0 Code API pricing and access
Use Doubao Seed 2.0 Code through one EvoLink API key. This page focuses on the Code variant for programming workflows, coding agents, and software engineering tasks that need stronger code-centric output.

What can you build with Doubao Seed 2.0 Code?
Coding Agents and Developer Tools
Use Seed 2.0 Code for agent workflows that generate, inspect, or revise code inside developer platforms, automation tools, and internal engineering systems.

Code Review and Refactoring
Seed 2.0 Code is a better fit for reviewing diffs, explaining code paths, proposing refactors, and supporting engineering workflows where output quality matters more than generic chat behavior.

Debugging and Technical Docs
Use Code for debugging help, stack-trace interpretation, test suggestions, and technical documentation across multi-language software projects.

Why teams choose Doubao Seed 2.0 Code
Seed 2.0 Code is the right variant when your API purchase is driven by software engineering output, coding agents, and developer productivity rather than general chat alone.
Programming-focused output
Code gives you a more specialized profile for software engineering tasks than a general-purpose text model.
Unified access for coding stacks
Keep one EvoLink integration while routing engineering workloads to the Code variant and other traffic to the rest of the Seed 2.0 family.
Useful for developer operations
Use Code in internal tooling, CI helpers, code review assistants, and engineering support flows.
How to integrate Doubao Seed 2.0 Code API
Use the EvoLink API with the Code model enum. Migration is usually a base URL swap plus `doubao-seed-2.0-code` in your existing OpenAI-compatible workflow.
Step 1 — Authenticate
Create an EvoLink API key and send requests with Bearer token authentication from your app, agent, or backend service.
Step 2 — Use the Code model ID
Set model to `doubao-seed-2.0-code` when you want the Code variant on EvoLink.
Step 3 — Tune outputs
Adjust temperature, top_p, max_tokens, stream, and other parameters. Prompt-length tiers and cache billing are applied automatically in the API pricing model.
Core Doubao Seed 2.0 Code API capabilities
Model facts for the programming-focused Seed 2.0 variant, plus EvoLink pricing and access signals
Programming-focused model profile
Code is optimized for software engineering output such as code generation, debugging, review, refactoring, and technical explanation.
256K Context Window
Use Code with long files, larger repositories, and complex engineering prompts that need wider context.
Prompt-Length Pricing
Code pricing scales by prompt length, making it easier to evaluate software engineering workloads against real API usage.
Cache Hit Billing
Reduce repeated prompt cost in agent scaffolds, engineering templates, and reusable coding instructions.
OpenAI-Compatible Access
Use Code through one EvoLink endpoint and plug it into existing coding agents or OpenAI-compatible tooling.
Developer workflow fit
Code is best suited for engineering copilots, review tools, debugging assistants, and internal developer platforms.
Doubao Seed 2.0 Code API FAQs
Everything you need to know about the product and billing.