字节跳动
豆包 Seed Translation
字节跳动豆包翻译专用模型,提供高质量的多语言翻译服务
上下文长度128K tokens
模型类型翻译专用模型
特色能力多语言翻译
定价与规格
💰 定价
输入¥1.2 / M tokens
输出¥3.6 / M tokens
⚙️ 规格
上下文长度128K tokens
模型类型翻译专用模型
特色能力多语言翻译
训练截止日期2024年9月
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!"}
]
}'