ByteDance: seed-2.0-code-previewAPI pricing
seed-2.0-code-preview is a language model from ByteDance, tuned for writing and editing code.
- Price per 1M tokens
- $0.52 / $3.15input / output
- Cached input
- $0.10per 1M tokens
- Context
- 128K tokens
- Providers
- 1
Providers
1 provider ·
128K context
A request picks by price (:floor) or by speed (provider.sort, :nitro), or sets a floor on tokens per second. How routing works
Price history
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/seed-2.0-code-preview", "messages": [{ "role": "user", "content": "Hi" }] }'About seed-2.0-code-preview
seed-2.0-code-preview costs from $0.52 per 1M input tokens and $3.15 per 1M output tokens on OpenCheap, with cached input at $0.10 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0084, and 1,000 such requests about $8.40. Prices as of 2026-11-29 01:44 UTC.
One provider serves seed-2.0-code-preview on OpenCheap today. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in usage.cost. Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.
seed-2.0-code-preview is one of 25 ByteDance models on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
Call seed-2.0-code-preview with the OpenAI SDK
Point the OpenAI SDK at OpenCheap and pass the model id opencheap/seed-2.0-code-preview; the rest of your code stays the same.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/seed-2.0-code-preview",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)Pricing questions
- How much does the seed-2.0-code-preview API cost per 1M tokens?
- seed-2.0-code-preview costs from $0.52 per 1M input tokens and $3.15 per 1M output tokens on OpenCheap, with cached input at $0.10 per 1M tokens. Prices as of 2026-11-29 01:44 UTC.
- What does one seed-2.0-code-preview request cost?
- A request with 10,000 input tokens and 1,000 output tokens costs about $0.0084, and 1,000 such requests about $8.40. Every answer reports its own cost in usage.cost.
- Which providers serve seed-2.0-code-preview?
- One provider serves seed-2.0-code-preview on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
- What is the context window of seed-2.0-code-preview?
- Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.
- How do I call the seed-2.0-code-preview API?
- Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/seed-2.0-code-preview. One OpenCheap key works for every model; the rest of your code stays the same.
More from ByteDance
- Doubao Seed 1.6doubao-seed-1.6$0.11 / $1.10 per 1M · 256K context
- Doubao Seed 1.6 Flashdoubao-seed-1.6-flash$0.021 / $0.21 per 1M · 256K context
- Doubao Seed 1.6 Litedoubao-seed-1.6-lite$0.041 / $0.33 per 1M · 256K context
- Doubao Seed 1.6 Thinkingdoubao-seed-1.6-thinking$0.11 / $1.10 per 1M · 256K context
- Doubao Seed 2.0 Code Previewdoubao-seed-2.0-code-preview$0.48 / $2.41 per 1M · 256K context
- doubao-seed-2.0-code-preview-260215doubao-seed-2.0-code-preview-260215$0.82 / $4.08 per 1M · 127K context
- Doubao Seed 2.0 Lite 260215doubao-seed-2.0-lite-260215$0.09 / $0.54 per 1M · 256K context
- Doubao Seed 2.0 Lite 260428doubao-seed-2.0-lite-260428$0.09 / $0.54 per 1M · 256K context
Similar models
- Grok Code Fast 1xAI · 256K context$1.00 / $2.00 per 1M30 % cheaperCompare with seed-2.0-code-preview →
- GPT-5.3-CodexOpenAI · 400K context$0.61 / $4.90 per 1MCompare with seed-2.0-code-preview →
- Qwen 3 Coder 480B TurboQwen · 256K context$0.44 / $1.88 per 1M39 % cheaperCompare with seed-2.0-code-preview →
- Qwen3 Coder PlusQwen · 1M context$0.55 / $2.19 per 1M29 % cheaperCompare with seed-2.0-code-preview →
- Kimi K3.1 ProMoonshot · 1M context$0.60 / $3.00 per 1MCompare with seed-2.0-code-preview →
- NousResearch/Hermes-4-405BNous · 131K context$1.00 / $3.00 per 1MCompare with seed-2.0-code-preview →