Doubao Seed 2.0 - Quick Start
- Call Doubao Seed 2.0 series models using OpenAI SDK format
- Synchronous processing mode, returns chat content in real time
- Minimized parameters for quick start
- Supported models:
doubao-seed-2.0-pro,doubao-seed-2.0-lite,doubao-seed-2.0-mini,doubao-seed-2.0-code - 💡 Need more features? See Full Parameter Documentation
Authorization
##All APIs require Bearer Token authentication## **Get API Key:** Visit the [API Key Management Page](https://starmagic.ai/app/api-keys) to get your API Key **Add to request header:** ``` Authorization: Bearer YOUR_API_KEY ```
Authorization: Bearer YOUR_API_KEYRequest body
application/jsonChat model name - `doubao-seed-2.0-pro`: Flagship, strongest overall capability, ideal for complex reasoning and high-quality generation - `doubao-seed-2.0-lite`: Lightweight, faster speed, cost-effective - `doubao-seed-2.0-mini`: Ultra-fast, quickest response, suitable for simple tasks - `doubao-seed-2.0-code`: Code-specialized, optimized for code generation and understanding
"doubao-seed-2.0-pro"Chat message list
[
{
"role": "user",
"content": "Hello, introduce the new features of Doubao Seed 2.0"
}
]Response
application/jsonResponse body
Unique identifier of chat completion
"0217714854126607f5a9cf8ed5b018c76e4ad3dc2810db57ffb50"Actual model name used
"doubao-seed-2-0-pro-260215"Response type
"chat.completion"Creation timestamp
1771485416Service tier for this request - `default`: Default service tier - `scale`: Used reserved quota
"default"Chat completion choices list
[
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! Doubao Seed 2.0 is ByteDance's next-generation large language model, featuring enhanced reasoning, multimodal understanding, and deep thinking capabilities..."
},
"finish_reason": "stop",
"moderation_hit_type": "severe_violation"
}
]Token usage statistics
{
"prompt_tokens": 15,
"completion_tokens": 256,
"total_tokens": 271,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0
}
}
