ByteDancePaidOperational
Doubao Seed 2.0 Code Preview
API model name: doubao-seed-2-0-code-preview-260215
Doubao Seed 2.0 Code Preview is ByteDance's chat model, served on the Api.Airforce unified API. It is priced at $0.46 per million input tokens and $2.28 per million output tokens. That is below the provider's $0.47 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.
Specifications
- Provider
- ByteDance
- Type
- chat model
What is Doubao Seed 2.0 Code Preview used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
Doubao Seed 2.0 Code Preview vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Doubao Seed 2.0 Code Preview | — | — | $0.46 | $2.28 |
| Doubao 1.5 Pro 32k | — | — | $0.12 | $0.29 |
| Doubao 1.5 Vision Pro 32k | — | — | $0.12 | $0.29 |
| Doubao Lite 128k | — | — | $0.17 | $0.17 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Doubao 1.5 Pro 32kByteDance · $0.12 / 1MDoubao 1.5 Vision Pro 32kByteDance · $0.12 / 1MDoubao Lite 128kByteDance · $0.17 / 1MDoubao Lite 32kByteDance · $0.15 / 1MDoubao Lite 4kByteDance · $0.15 / 1MDoubao Pro 32kByteDance · $0.17 / 1MDoubao Vision Lite 32kByteDance · $0.19 / 1MDoubao Vision Pro 32kByteDance · $0.38 / 1MDoubao 1.5 Thinking ProByteDance · $0.40 / 1MDoubao 1.5 Thinking Vision ProByteDance · $0.45 / 1MDoubao 1.5 Ui TarsByteDance · $0.55 / 1MDoubao 1.5 Vision LiteByteDance · $0.22 / 1M
Doubao Seed 2.0 Code Preview — frequently asked questions
- How much does Doubao Seed 2.0 Code Preview cost?
- Doubao Seed 2.0 Code Preview is billed pay-as-you-go at $0.46 per 1M input tokens and $2.28 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can Doubao Seed 2.0 Code Preview do?
- Doubao Seed 2.0 Code Preview is ByteDance's chat model, accessible through the Api.Airforce API.
- Is Doubao Seed 2.0 Code Preview free to use?
- Doubao Seed 2.0 Code Preview is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Doubao Seed 2.0 Code Preview via the API?
- Doubao Seed 2.0 Code Preview is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID doubao-seed-2-0-code-preview-260215 with your Api.Airforce API key.
- Who makes Doubao Seed 2.0 Code Preview?
- Doubao Seed 2.0 Code Preview is ByteDance's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Doubao Seed 2.0 Code Preview via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass doubao-seed-2-0-code-preview-260215 as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seed-2-0-code-preview-260215",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="doubao-seed-2-0-code-preview-260215",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "doubao-seed-2-0-code-preview-260215",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);