Seed 2.0 Code overview
Seed 2.0 Code by ByteDance
ByteDance's agentic coding model built for frontend and multilingual programming.
Seed 2.0 Code specs
- Model ID
bytedance-seed/seed-2.0-code- Developer
- ByteDance
- Context window
- 262,144 tokens
- Max output
- 131,072 tokens
- Input
- Image, Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
ByteDance Seed-2.0-Code is optimized for agentic coding, frontend development, multilingual programming tasks and coding-agent workflows, with a 256K context window, multimodal (text/image/video) input and selectable reasoning effort.
Use cases
Seed-2.0-Code is documented as suited for frontend development, especially when building or iterating on user interfaces. It is also suited for multilingual programming tasks, making it a fit for code work across different programming languages.
The model is documented for coding-agent workflows, where it can help with multi-step software tasks in tools and IDEs designed for agentic coding. It is also described as useful for bug diagnosis and repair, including tracing defects and proposing fixes across files.
Capabilities
- Reasoning
- Streaming
- Structured outputs
- Function calling
- Vision
- Web search
Seed 2.0 Code API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $0.529 | 1M tokens |
| Output | $3.17 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Seed 2.0 Code vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.529 | $3.17 | |
| $0.1 | $0.4 | |
| $0.25 | $2 | |
| $0.529 | $2.65 | |
| $0.5 | $3 |
How to use the Seed 2.0 Code API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "bytedance-seed/seed-2.0-code",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "bytedance-seed/seed-2.0-code",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "bytedance-seed/seed-2.0-code",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Seed 2.0 Code FAQ
What is the context window of Seed 2.0 Code?
Seed 2.0 Code has a 262,144 tokens context window and can return up to 131,072 tokens.
What inputs and outputs does Seed 2.0 Code support?
Seed 2.0 Code takes image, text as input and returns text.
What is the model ID for Seed 2.0 Code?
Use bytedance-seed/seed-2.0-code as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
When was Seed 2.0 Code released?
Seed 2.0 Code became available on July 30, 2026.
How much does Seed 2.0 Code cost?
Seed 2.0 Code costs $0.529 input and $3.17 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does Seed 2.0 Code support streaming?
Yes, Seed 2.0 Code can stream responses as they are generated.
Can Seed 2.0 Code read images?
Yes, Seed 2.0 Code accepts image input alongside text.
Who created Seed 2.0 Code?
Seed 2.0 Code was built by ByteDance.
What is Seed 2.0 Code designed for?
It is built for agentic coding tasks such as frontend development, multilingual programming, and coding-agent workflows.
Does Seed 2.0 Code support tool/function calling?
Yes, it supports parallel tool calls and function calling.
