ByteDance logo
ByteDance

Doubao Seed 1.8

ByteDance's Doubao 1.8 flagship model with comprehensive and balanced large language model capabilities

Category Text Model ID doubao-seed-1-8-251215
Context Length256K tokens
Model TypeLarge Language Model (LLM)
Special CapabilitiesComprehensive and Balanced

Pricing & Specs

💰 Pricing

Input$0.8 / M tokens
Output$2 / M tokens

⚙️ Specs

Context Length256K tokens
Model TypeLarge Language Model (LLM)
Special CapabilitiesComprehensive and Balanced
Training Cutoff DateDecember 2025

API Examples

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.xairouter.com/v1",
    api_key="your-api-key"
)

response = client.chat.completions.create(
    model="doubao-seed-1-8-251215",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

cURL

curl https://api.xairouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "doubao-seed-1-8-251215",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'