Volcengine model

Doubao Seed 2 0 Code API

doubao-seed-2-0-code costs $0.48 per 1M input tokens. Walk away if you need a context window beyond 256,000 tokens, because that is this id's published limit. doubao-seed-2-0-code is a Volcengine catalog entry on NextModel.

VolcenginePlatform curatedCatalog
ThinkingFunction CallingVision
Input priceStarting at $0.48 / 1M tokens
Output price$2.36 / 1M tokens
Context length256k tokens
Max output8.2k tokens
Input lengthInput / 1MOutput / 1MCache hit / 1M
≤ 32k$0.48$2.36$0.1
32k - 128k$0.71$3.53$0.15
128k - 256k$1.42$7.06$0.29

What is Doubao Seed 2 0 Code API in NextModel?

doubao-seed-2-0-code costs $0.48 per 1M input tokens. Walk away if you need a context window beyond 256,000 tokens, because that is this id's published limit. doubao-seed-2-0-code is a Volcengine catalog entry on NextModel.

Doubao Seed 2.0 Code via NextModel: 256k-token context; Starting at $0.48 / 1M tokens in / $2.36 / 1M tokens out per 1M tokens. Capabilities: streaming.

Best use cases

  • Call this id if you want the published input price of $0.48 per 1M tokens and the 256,000-token context window.
  • Call it if a Chinese-language use case matches your workload.
  • You need the listed capabilities on this catalog entry.

When not to use

  • Do not call this id if you require a context window beyond 256,000 tokens.
  • Do not call it if you need first-party CacheSafety data, because no CacheSafety row exists for this exact model.
  • A required number is unpublished in the catalog snapshot.

OpenAI-compatible code example

request.sh
curl https://api.nextmodel.app/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NEXTMODEL_API_KEY" \
  -d '{"model":"doubao-seed-2-0-code","messages":[{"role":"user","content":"Reply with OK."}]}'

Switching models only changes the model field.

Try it in the playground

Similar alternatives

VolcengineCatalog

Doubao Seed 2.0 Lite via NextModel: 256k-token context; Starting at $0.09 / 1M tokens in / $0.53 / 1M tokens out per 1M tokens. Capabilities: streaming.

Starting at $0.09 / 1M tokensInput$0.53 / 1M tokensOutput256kContext
Best forChinese Q&A, general chat
Streaming
Platform curatedCurated and maintained in the NextModel catalog
View details
VolcengineCatalog

Doubao Seed 2.0 Mini via NextModel: 256k-token context; Starting at $0.03 / 1M tokens in / $0.3 / 1M tokens out per 1M tokens. Capabilities: streaming.

Starting at $0.03 / 1M tokensInput$0.3 / 1M tokensOutput256kContext
Best forChinese Q&A, general chat
Streaming
Platform curatedCurated and maintained in the NextModel catalog
View details
VolcengineCatalog

Doubao Seed 2.0 Pro via NextModel: 256k-token context; Starting at $0.48 / 1M tokens in / $2.36 / 1M tokens out per 1M tokens. Capabilities: streaming.

Starting at $0.48 / 1M tokensInput$2.36 / 1M tokensOutput256kContext
Best forChinese Q&A, general chat
Streaming
Platform curatedCurated and maintained in the NextModel catalog
View details

Reading

Articles that explain Doubao Seed 2.0 Code

FAQ

Doubao Seed 2.0 Code API questions

What model id do I send for Doubao Seed 2 0 Code?

Send doubao-seed-2-0-code to https://api.nextmodel.app/v1 with your OpenAI SDK. If that id is missing from /v1/models, the page is stale.

What does the catalog list for price and context?

Doubao Seed 2 0 Code is listed at $0.48 / 1M tokens input and $2.36 / 1M tokens output. Context window: 256,000 tokens.

What should I treat as unverified?

Do not call this id if you require a context window beyond 256,000 tokens. Do not call it if you need first-party CacheSafety data, because no CacheSafety row exists for this exact model.

Start now

Ready to start building?

Passwordless signup, pay-as-you-go billing, and one OpenAI-compatible endpoint for every model. Create your key and send your first request in minutes.