ByteDance logo
ByteDance

Doubao Seed Translation

ByteDance Doubao translation-specialized model, providing high-quality multilingual translation services

Category Text Model ID doubao-seed-translation-250915
Context Length128K tokens
Model TypeTranslation-Specialized Model
Key FeaturesMultilingual Translation

Pricing & Specs

💰 Pricing

Input$1.2 / M tokens
Output$3.6 / M tokens

⚙️ Specs

Context Length128K tokens
Model TypeTranslation-Specialized Model
Key FeaturesMultilingual Translation
Training CutoffSeptember 2024

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-translation-250915",
    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-translation-250915",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'