Doubao Seed 2.0 Code Preview
ByteDance logo

Doubao Seed 2.0 Code Preview

doubao-seed-2-0-code-preview
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

Capabilities

  • Thinking
  • Web
  • Tools
  • Tool calling

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.