Seed 2.0 Code API

Coding-tuned 256K-context model with strong front-end results and multilingual programming support for AI coding tools and agents.

ByteDanceText Generation256K contextMalaysiaProprietary EndpointNew

About Seed 2.0 Code

Coding-tuned 256K-context model with strong front-end results and multilingual programming support for AI coding tools and agents.

Also known as Seed Code, Seed-2.0-Code

code interpreterreasoningagentic coding

Seed 2.0 Code specs

Model ID
seed-2-0-code
Provider
ByteDance
Category
Text Generation
Context window
256K tokens
Max output
128,000 tokens
Input
text, image, video, document
Output
text
Region
Malaysia
Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages

Seed 2.0 Code API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
<=128K $0.40128K-256K $0.80
Output
per 1M generated tokens
<=128K $2.40128K-256K $4.80
Compare on the full pricing page

How to call the Seed 2.0 Code API

Seed 2.0 Code serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id seed-2-0-code. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seed-2-0-code",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="seed-2-0-code",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Seed 2.0 Code API reference

Seed 2.0 Code API parameters

Request parameters supported by the Seed 2.0 Code API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
max_tokensnumber40961 to 65536Max output tokens
frequency_penaltynumber0-2 to 2Penalty for repeated tokens. >0 reduces repetition, <0 encourages it.
presence_penaltynumber0-2 to 2Penalty for new vs. seen tokens. >0 encourages new topics, <0 encourages staying on topic.
stopstring--Comma-separated stop sequences
enable_thinkingbooleantrue-Enable deep thinking / reasoning mode.
reasoning_effortenummediumlow, medium, highReasoning effort tier. Use enable_thinking=false to disable reasoning entirely.
enable_web_searchbooleanfalse-Enable BytePlus Ark MCP web search.
enable_cachingbooleanfalse-Cache the prompt prefix for ~10 min so follow-up requests reuse it and pay fewer input tokens for the cached portion.
image_detailenumhighlow, high, xhighImage visual quality tier for vision input.
video_fpsnumber-0.2 to 5Frames per second extracted from video input.

Good to know

Pricing is 2x when input tokens >=128K. Temperature and top_p are server-fixed (temp=1, top_p=0.95) regardless of client value.

Seed 2.0 Code API: common questions

How much does the Seed 2.0 Code API cost?

On EmpirioLabs, Seed 2.0 Code is billed pay as you go: Input <=128K $0.40; 128K-256K $0.80 per 1M prompt tokens; Output <=128K $2.40; 128K-256K $4.80 per 1M generated tokens. The live rate card on this page always matches what the API charges.

What is the context window of Seed 2.0 Code?

Seed 2.0 Code supports a 256K-token context window with up to 128,000 output tokens per response.

Is the Seed 2.0 Code API OpenAI-compatible?

Yes. Seed 2.0 Code serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to seed-2-0-code.

Can I try Seed 2.0 Code in the browser before integrating?

Yes. The EmpirioLabs playground runs Seed 2.0 Code in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Seed 2.0 Code API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.