LiteLLMModels

Seed 2.0 Code API Pricing

As of October 10, 2026, Seed 2.0 Code costs $0.50 per 1M input tokens and $3.00 per 1M output tokens on DeepInfra, with cache reads at $0.10 per 1M tokens. It has a 256,000-token context window.

By ByteDanceModel ID deepinfra/ByteDance/Seed-2.0-codePrices updated Checked
Input
$0.50 / 1M tokens
Output
$3.00 / 1M tokens
Cache read
$0.10 / 1M tokens
Context window
256,000 tokens
Providers
1
Added to LiteLLM
August 27, 2026

Seed 2.0 Code pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readContext
DeepInfradeepinfra/ByteDance/Seed-2.0-code$0.50$3.00$0.10256K

What Seed 2.0 Code costs in practice

1,000 requests with 2,000 input and 500 output tokens each

DeepInfra$2.50

100 long-document requests with 100,000 input and 2,000 output tokens each

DeepInfra$5.60

Seed 2.0 Code features

Use Seed 2.0 Code with LiteLLM

Call Seed 2.0 Code through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="deepinfra/ByteDance/Seed-2.0-code",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: seed-2.0-code
    litellm_params:
      model: deepinfra/ByteDance/Seed-2.0-code
      api_key: os.environ/DEEPINFRA_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "seed-2.0-code",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Seed 2.0 Code FAQ

How much does Seed 2.0 Code cost?

Seed 2.0 Code costs $0.50 per 1M input tokens and $3.00 per 1M output tokens on DeepInfra, with cache reads at $0.10 per 1M tokens.

What is the context window of Seed 2.0 Code?

Seed 2.0 Code has a 256,000-token context window.

Which providers offer Seed 2.0 Code?

Seed 2.0 Code is available from DeepInfra through LiteLLM, using the model name deepinfra/ByteDance/Seed-2.0-code.

How do I call Seed 2.0 Code with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="deepinfra/ByteDance/Seed-2.0-code", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Seed 2.0 Code support?

Seed 2.0 Code supports function calling, structured output, image input, reasoning and prompt caching.

When did LiteLLM add Seed 2.0 Code?

Seed 2.0 Code was added to LiteLLM's model price file on August 27, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: DeepInfra.

Provider pages: DeepInfra.