Back to Models

Doubao Seed 2.0 Code Preview (260215)

bytedancebytedance/doubao-seed-2.0-code-preview-260215

ByteDance Doubao Seed 2.0 Code Preview β€” code-specialist variant with tiered pricing.

Doubao Seed 2.0 Code Preview (260215) is TheRouter's ByteDance/BytePlus route for the February 2026 code-specialized Seed 2.0 snapshot. It is exposed as bytedance/doubao-seed-2.0-code-preview-260215, a text-in/text-out OpenAI-compatible chat model with a 262,144-token context window, 8,192-token maximum completion budget, tool calling, JSON response formatting, and a higher price band above 128K prompt tokens.

Treat this page as the exact BytePlus / ModelArk-facing snapshot, not a floating Doubao coding alias. ByteDance's Seed2.0 announcement says the family includes a dedicated Code model for developers, while TheRouter's catalog pins the preview snapshot id and its token economics. For operators, it belongs in coding-agent, repository-analysis, refactor-review, and code-generation routes where exact snapshot control and 256K prompt capacity matter more than multimodal breadth.

Best for
  • β€’ Coding agents that need a pinned ByteDance / BytePlus Code Preview snapshot with OpenAI-style tools, tool_choice, and JSON response formatting.
  • β€’ Repository-scale code review, migration planning, and multi-file refactor assistance where prompts can approach the 256K context ceiling.
  • β€’ Chinese/English mixed software-engineering workflows where ByteDance model behaviour and exact snapshot pinning are part of the evaluation matrix.
  • β€’ Budgeted long-context coding batches where the caller can account for the verified 128K+ long-context price tier before dispatch.
Reach for something else if
  • β€’ Vision, audio, video, or image-generation workloads β€” TheRouter lists this route as text input and text output only.
  • β€’ Unbounded 128K+ prompts without margin controls: the catalog records doubled input and output prices in the long-context band.
  • β€’ Open-weight self-hosting or fine-tuning projects β€” this is a proprietary hosted API route, not a downloadable model release.
  • β€’ General multimodal reasoning or newest Doubao-family evaluations β€” compare Seed 2.1 Pro and stronger non-code specialists first.

How TheRouter serves this differently from the vendor

As the vendor operates it

BytePlus / ModelArk exposes the upstream doubao-seed-2-0-code-preview-260215 route as part of its hosted model surface, with prompt-length pricing tiers recorded in the official rate-card documentation.

On TheRouter

TheRouter exposes the same snapshot as an OpenAI-compatible chat-completions model and records the base plus long-context token prices in standard-models.yaml. Cache-hit billing is not exposed on this public model row.

Context Length
262K
Max Output
8K
Input Priceper 1M tokens
$0.540/ 1M tokens
Output Priceper 1M tokens
$3.24/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Prompts up to 128K tokens
Input$0.540 / 1M tokens
Output$3.24 / 1M tokens
Cached input$0.540 / 1M tokens
Prompts over 128K tokens
Input$1.08 / 1M tokens
Output$6.48 / 1M tokens
Cached input$1.08 / 1M tokens

Tiered pricing: when a request's prompt (input, cached tokens included) is over 128K tokens, every token in that request is billed at the long-context rates; exactly 128K is still the base rate. This model publishes no separate cached-input price: cached tokens are billed at the input rate of their group (the "Cached input" row shows that rate).

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

Specifications

TheRouter model idbytedance/doubao-seed-2.0-code-preview-260215standard-models.yaml β†—verified
Upstream snapshotdoubao-seed-2-0-code-preview-260215provider-models/astraflow-bytedance.yaml β†—verified
Context window262,144 tokensstandard-models.yaml β†—verified
Maximum completion8,192 tokensstandard-models.yaml β†—verified
Input / output modalitiesText in; text outstandard-models.yaml β†—verified
Supported OpenAI-style parameterstemperature, max_tokens, top_p, tools, tool_choice, response_format, stopstandard-models.yaml β†—verified
TheRouter base price$0.50 / 1M input tokens; $3.00 / 1M output tokensstandard-models.yaml β†—verified
Long-context tierPrompts over 128,000 and up to 256K tokens: $1.00 / 1M input; $6.00 / 1M outputBytePlus ModelArk pricing β†—verified
Training cutoffNot publicly disclosedunknown
License / weightsProprietary hosted API; weights not publicBytePlus ModelArk β†—verified

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "bytedance/doubao-seed-2.0-code-preview-260215",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Minimal OpenAI-compatible request for code explanation, repository notes, or patch planning.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/doubao-seed-2.0-code-preview-260215",
    "messages": [
      {"role": "user", "content": "Explain why this TypeScript generic is unsafe and suggest a patch."}
    ]
  }'

More from bytedance

Similar models

Cross-provider sibling models

News & changes

2026-07-29

TheRouter records BytePlus Seed 2.0 Code Preview (260215) tiered pricing

The local ByteDance catalog records the public Code Preview snapshot with $0.50/$3.00 per million tokens in the base prompt band and $1.00/$6.00 above 128K prompt tokens.

re-authored by TheRouterBytePlus ModelArk pricing β†—
2026-02-15

ByteDance ships Seed2.0 with a dedicated Code model

ByteDance's Seed2.0 announcement presents Pro, Lite, Mini, and a dedicated Code model as the production-oriented lineup for agent and developer workloads.

re-authored by TheRouterseed.bytedance.com β†—

Frequently asked

Is this the same route as doubao/doubao-seed-2-0-code?

No. They are related Seed 2.0 coding routes, but this page is the exact ByteDance / BytePlus 260215 Code Preview snapshot in the bytedance namespace. Use the exact id shown here in production configuration and evaluations.

What happens above 128K prompt tokens?

The TheRouter catalog records a higher prompt-length band. For prompts over 128,000 tokens and up to the 256K range, input and output prices double to $1.00 and $6.00 per million tokens respectively.

Why are the code snippets not marked as verified?

This scheduled curation loop has no paid API budget. The snippet verifier intentionally requires an operator-set SNIPPET_VERIFY_APPROVED=1, so snippets remain unproven until a human approves and funds a live run.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
TheRouter model idstandard-models.yaml β†—2026-07-29verified
Upstream snapshotprovider-models/astraflow-bytedance.yaml β†—2026-07-29verified
Context windowstandard-models.yaml β†—2026-07-29verified
Maximum completionstandard-models.yaml β†—2026-07-29verified
Input / output modalitiesstandard-models.yaml β†—2026-07-29verified
Supported OpenAI-style parametersstandard-models.yaml β†—2026-07-29verified
TheRouter base pricestandard-models.yaml β†—2026-07-29verified
Long-context tierBytePlus ModelArk pricing β†—2026-07-29verified
Training cutoffβ€”β€”unknown
License / weightsBytePlus ModelArk β†—2026-08-06verified
TheRouter records BytePlus Seed 2.0 Code Preview (260215) tiered pricingBytePlus ModelArk pricing β†—2026-07-29verified
ByteDance ships Seed2.0 with a dedicated Code modelseed.bytedance.com β†—2026-08-06verified
Is this the same route as `doubao/doubao-seed-2-0-code`?standard-models.yaml β†—2026-07-29to verify
What happens above 128K prompt tokens?BytePlus ModelArk pricing β†—2026-07-29to verify
Help & contact