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
sourceURLretrieved
Release dateeu.36kr.com ↗2026-05-26verified
Upstream model IDblog.laozhang.ai ↗2026-05-26verified
Native context windowblog.laozhang.ai ↗2026-05-26verified
Architecturedev.to ↗2026-05-26to verify
Visual understandingeu.36kr.com ↗2026-05-26verified
API compatibilityeu.36kr.com ↗2026-05-26verified
Training cutoff——unknown
Licensewww.volcengine.com ↗2026-05-26verified
Supported toolseu.36kr.com ↗2026-05-26verified
SWE-Bench-Verifiedeu.36kr.com ↗2026-05-26verified
HumanEvaleu.36kr.com ↗2026-05-26to verify
Aidereu.36kr.com ↗2026-05-26to verify
Comparative ranking (launch)eu.36kr.com ↗2026-05-26verified
ByteDance releases Doubao Seed Code — first coding model, SOTA on SWE-Bench36Kr ↗2026-05-26verified
Doubao Seed Code integrated into Trae IDE36Kr ↗2026-05-26verified
What is the difference between Doubao Seed Code and Doubao Seed 2.0 Code?eu.36kr.com ↗2026-05-26to verify
Help & contact