Seed 2.0 Code API

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.
Context
262K tokens
Input
$0.65 / 1M
Output
$3.9 / 1M
Released
Jul 30, 2026

How to use Seed 2.0 Code API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to bytedance-seed/seed-2.0-code.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "bytedance-seed/seed-2.0-code",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = 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": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST 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":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Seed 2.0 Code API Pricing

TypePrice
Input
$0.65 / 1M tokens
Output
$3.9 / 1M tokens

Seed 2.0 Code vs other models

ModelInputOutputContextBest for
Seed 2.0 Code
This page
$0.65 / 1M
$3.9 / 1M
262K tokens
Agentic frontend & coding workflows
$0.325 / 1M
$2.6 / 1M
262K tokens
Reasoning + agents
$6.5 / 1M
$39 / 1M
1M tokens
Frontier reasoning + agents
$2.6 / 1M
$7.8 / 1M
500K tokens
Reasoning + agents with long context
$0.65 / 1M
$3.25 / 1M
262K tokens
Long-horizon coding agents

Start building with Seed 2.0 Code

Get API Key
1000+ models, one API.