Doubao Seed 2 0 Code API
doubao-seed-2-0-code costs $0.069 per 1M input tokens. Walk away if you need a published context window, because this id has context unpublished. doubao-seed-2-0-code is a Volcengine catalog entry on NextModel.
| Input length | Input / 1M | Output / 1M | Cache hit / 1M |
|---|---|---|---|
| — - 32k | $0.069 | $0.341 | $0.014 |
| 32k - 128k | $0.103 | $0.511 | $0.022 |
| 128k - 256k | $0.205 | $1.02 | $0.042 |
What is Doubao Seed 2 0 Code API in NextModel?
doubao-seed-2-0-code costs $0.069 per 1M input tokens. Walk away if you need a published context window, because this id has context unpublished. doubao-seed-2-0-code is a Volcengine catalog entry on NextModel.
Best use cases
- Call this id if you want the published input price of $0.069 per 1M tokens and need streaming support.
- 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 published context window.
- 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
Keep the OpenAI SDK style, set base_url to NextModel, and use the catalog model ID doubao-seed-2-0-code.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="doubao-seed-2-0-code",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)Similar alternatives
Available through the NextModel gateway via Volcengine.
Available through the NextModel gateway via Volcengine.
Available through the NextModel gateway via Volcengine.
Reading
Articles that explain Doubao Seed 2 0 Code
How to estimate AI API cost before you ship
Listed price only tells you the unit cost. This walkthrough turns that into a traffic estimate.
Lin Qiming
LLM Gateway: Compare Options and Alternatives
Same OpenAI-compatible base URL, with routing and billing sitting in front of the model.
Zhao Yu'an
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.069 / 1M tokens input and $0.341 / 1M tokens output. Context window: not published in catalog.
What should I treat as unverified?
Do not call this id if you require a published context window. Do not call it if you need first-party CacheSafety data, because no CacheSafety row exists for this exact model.