Seed 2.0 Code API

bytedance-seed/seed-2.0-code
ByteDance's agentic coding model built for frontend and multilingual programming.
Context
256K tokens
Input
$0.6877 / 1M tokens
Output
$4.1262 / 1M tokens
Released
Jul 30, 2026

Overview

What is 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.

Technical Specifications
- Context window: 262,144 tokens
- Max output: 131,072 tokens
- Supported inputs: Image, Text
- Output: Text

Seed-2.0-Code API Pricing
- Input: $0.65 / 1M tokens
- Output: $3.9 / 1M tokens

Uptime and performance

  • Uptime (7d): 100%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

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.

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.6877 / 1M tokens
Output
$4.1262 / 1M tokens

Seed 2.0 Code vs other models

ModelInputOutputContextBest for
Seed 2.0 Code
This page
$0.6877 / 1M tokens
$4.1262 / 1M tokens
256K tokens
Agentic frontend & coding workflows
$0.34385 / 1M tokens
$2.7508 / 1M tokens
256K tokens
Reasoning + agents
$5.2 / 1M tokens
$26 / 1M tokens
1M tokens
Frontier reasoning + agents
$2.6 / 1M tokens
$7.8 / 1M tokens
500K tokens
Reasoning + agents with long context
$0.6877 / 1M tokens
$3.4385 / 1M tokens
256K tokens
Long-horizon coding agents

Frequently asked questions

Seed 2.0 Code has a 262,144 tokens context window and can return up to 131,072 tokens.

Seed 2.0 Code takes image, text as input and returns text.

Use bytedance-seed/seed-2.0-code as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Seed 2.0 Code became available on July 30, 2026.

Seed 2.0 Code is priced at input $0.6877 / 1M tokens, output $4.1262 / 1M tokens.

Yes, Seed 2.0 Code can stream responses as they are generated.

Yes, Seed 2.0 Code accepts image input alongside text.

Seed 2.0 Code was built by ByteDance.

It is built for agentic coding tasks such as frontend development, multilingual programming, and coding-agent workflows.

Yes, it supports parallel tool calls and function calling.

Start building with Seed 2.0 Code

Get API Key
1000+ models, one API.