ByteDance
Doubao Seed Translation
ByteDance Doubao translation-specialized model, providing high-quality multilingual translation services
Context Length128K tokens
Model TypeTranslation-Specialized Model
Key FeaturesMultilingual Translation
ๅฎไปทไธ่งๆ ผ
๐ฐ ๅฎไปท
่พๅ
ฅ$1.2 / M tokens
่พๅบ$3.6 / M tokens
โ๏ธ ่งๆ ผ
Context Length128K tokens
Model TypeTranslation-Specialized Model
Key FeaturesMultilingual Translation
Training CutoffSeptember 2024
API ่ฐ็จ็คบไพ
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!"}
]
}'