doubao · Balanced
Doubao Seed 2.0 Code Preview
Code-focused preview model in the Doubao Seed 2.0 family. Supports a 256k context window and up to 128k output tokens. ⚠️ Note: This model routes through ByteDance, a Chinese entity - privacy and logging guarantees may be limited.
- Input
- Text
- Output
- Text
- Discovery tier
- Balanced
Pricing
USD per 1M tokens- Input
- $0.78
- Output
- $3.89
Reference prices as published by the model provider. API example
Specifications
- Context window
- 256K
- Max output
- 128K
Side by side
Compare models
Put Doubao Seed 2.0 Code Preview next to up to three other models. The comparison stays in the link, so you can share it.
Public evaluations
Benchmarks
There are no public benchmark results for Doubao Seed 2.0 Code Preview yet.
Developers
Use it through the API
Noumen’s API is OpenAI-compatible: any Chat Completions client works with a base URL and a key.
curl https://www.noumen.xyz/api/v1/chat/completions \
-H "Authorization: Bearer $NOUMEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seed-2-0-code-preview-260215",
"messages": [{ "role": "user", "content": "Explain this stack trace." }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://www.noumen.xyz/api/v1", api_key=os.environ["NOUMEN_API_KEY"])
reply = client.chat.completions.create(
model="doubao-seed-2-0-code-preview-260215",
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print(reply.choices[0].message.content)doubao
Related models
Other doubao models, starting with the same family.