Doubao Seed 2.0 Code Preview
ByteDance logo

Doubao Seed 2.0 Code Preview

doubao-seed-2-0-code-previewllms.txt
ByteDance
The Doubao 2.0 series is a coding model optimized for real programming environments, capable of reliably invoking tools in common IDEs such as Claude Code. The model is specially optimized for frontend capabilities and performs well with common frontend frameworks. The model supports using Skills and can work with various custom skills.

Pricing

TierPricingCache Read
Input<=32K
$0.482$2.411
$0.09644/M tokens
32K<Input<=128K
$0.723$3.616
$0.144656/M tokens
128K<Input<=256K
$1.447$7.233
$0.28932/M tokens

Input Modalities

  • Text
  • Vision
  • Video

Output Modalities

  • Text

Context length

  • 256K tokens

Max output

  • 128K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Document input
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Bytedance doubao-seed-2-0-code-preview-260215
Pricing$0.482$2.411
Cache Read$0.09644/M tokens
Pricing$0.723$3.616
Cache Read$0.144656/M tokens
Pricing$1.447$7.233
Cache Read$0.28932/M tokens
Context256K
Max output128K
Latency1.1S
Throughput54.8TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
0.00% uptime today

Performance for doubao-seed-2-0-code-preview

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="doubao-seed-2-0-code-preview",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is Doubao Seed 2.0 Code Preview?

The Doubao 2.0 series is a coding model optimized for real programming environments, capable of reliably invoking tools in common IDEs such as Claude Code. The model is specially optimized for frontend capabilities and performs well with common frontend frameworks. The model supports using Skills and can work with various custom skills.