Doubao Seed 2.0 Code Preview
doubao-seed-2-0-code-previewPricing
List prices at AIHubMix, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.482 | $2.41 | |
| Cached input 80% off input | $0.0964 | 80% off input |
What it costs a month
At AIHubMix list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$291
- RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$226
- Coding agent1,000 requests a day, 40K in / 2K out, cached$399
- Overnight batch20,000 requests a day, 4K in / 0.4K out$1,736
Where to run it
1 host serve Doubao Seed 2.0 Code Preview. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
AIHubMixGateway doubao-seed-2-0-code-preview | $0.482 / $2.41 | doubao-seed-2-0-code-preview |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- TextImages
- Produces
- Text
- Features
- Prompt cachingBuilt-in web search
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than AIHubMix.
Smaller Independent models
No cheaper Independent model keeps its key capabilities.
Other frontier labs
- 12% less
- 52% less
- 79% less
- 79% less
Open-weight picks
- 29% less
- 34% less
- 46% less
- 50% less
Call it
Using AIHubMix's API.
from litellm import completion
response = completion(
model="aihubmix/doubao-seed-2-0-code-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Doubao Seed 2.0 Code Preview cost?
On AIHubMix, Doubao Seed 2.0 Code Preview costs $0.482 per million input tokens and $2.41 per million output tokens. Cached input costs $0.0964 per million tokens.
Which APIs offer Doubao Seed 2.0 Code Preview?
Doubao Seed 2.0 Code Preview runs on 1 API: AIHubMix.
What is Doubao Seed 2.0 Code Preview's context window?
256K tokens, with up to 128K tokens in one reply.
Is Doubao Seed 2.0 Code Preview being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Doubao Seed 2.0 Code Preview?
Models that cost less and keep most of what it can do: Gemini 3.5 Flash Lite on Google AI Studio (12% less), GPT-5.4 Nano on OpenAI (52% less) and Kimi K2.7 Code on CLF AI Gateway (29% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Doubao Seed 2.0 Code Preview's API model id?
Use doubao-seed-2-0-code-preview with AIHubMix.
Sources
Raw catalog entry for doubao-seed-2-0-code-preview on AIHubMix
{
"cache_read_input_token_cost": 9.644e-8,
"input_cost_per_token": 4.822e-7,
"litellm_provider": "aihubmix",
"max_input_tokens": 256000,
"max_output_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 0.000002411,
"source": "https://aihubmix.com/api/v1/models",
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_vision": true,
"supports_web_search": true
}