Back to Models
Doubao Seed Code
doubaodoubao/doubao-seed-code
API guide
Chat completion
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"doubao/doubao-seed-code","messages":[{"role":"user","content":"用 Python 写一个带类型注解的二分查找函数。"}]}'Streaming
Supports SSE streaming via standard OpenAI SDK for real-time code completion in IDE plugins and agent UIs.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"doubao/doubao-seed-code","messages":[{"role":"user","content":"写一个 Vue3 组合式 API 的 useDebounce hook。"}],"stream":true}'Tool use
OpenAI-style function calling supported. Optimised for agentic coding loops combining search, read, edit, and execute actions within a single repository workspace.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao/doubao-seed-code",
"messages": [{"role":"user","content":"搜索项目中所有 type 定义并移动到 types/ 目录。"}],
"tools": [{"type":"function","function":{"name":"search_files","parameters":{"type":"object","properties":{"pattern":{"type":"string"}}}}}]
}'Fact ledger — every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date | eu.36kr.com ↗ | 2026-05-26 | verified |
| Upstream model ID | blog.laozhang.ai ↗ | 2026-05-26 | verified |
| Native context window | blog.laozhang.ai ↗ | 2026-05-26 | verified |
| Architecture | dev.to ↗ | 2026-05-26 | to verify |
| Visual understanding | eu.36kr.com ↗ | 2026-05-26 | verified |
| API compatibility | eu.36kr.com ↗ | 2026-05-26 | verified |
| Training cutoff | — | — | unknown |
| License | www.volcengine.com ↗ | 2026-05-26 | verified |
| Supported tools | eu.36kr.com ↗ | 2026-05-26 | verified |
| SWE-Bench-Verified | eu.36kr.com ↗ | 2026-05-26 | verified |
| HumanEval | eu.36kr.com ↗ | 2026-05-26 | to verify |
| Aider | eu.36kr.com ↗ | 2026-05-26 | to verify |
| Comparative ranking (launch) | eu.36kr.com ↗ | 2026-05-26 | verified |
| ByteDance releases Doubao Seed Code — first coding model, SOTA on SWE-Bench | 36Kr ↗ | 2026-05-26 | verified |
| Doubao Seed Code integrated into Trae IDE | 36Kr ↗ | 2026-05-26 | verified |
| What is the difference between Doubao Seed Code and Doubao Seed 2.0 Code? | eu.36kr.com ↗ | 2026-05-26 | to verify |