Doubao Seed 1.6 เป็นโมเดลเอนกประสงค์จาก ByteDance Doubao ให้บริการผ่าน MeshTok unified API
เปลี่ยนแทน OpenAI ได้ทันที แค่เปลี่ยน base_url และ model เท่านั้น
# Python - pip install openai from openai import OpenAI client = OpenAI( base_url="https://meshtok.com/v1", api_key="sk-your-MeshTok-key", ) resp = client.chat.completions.create( model="bytedance/doubao-seed-1.6", messages=[{"role":"user","content":"Hello!"}], ) print(resp.choices[0].message.content)
# cURL curl https://meshtok.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-MeshTok-key" \ -H "Content-Type: application/json" \ -d '{"model":"bytedance/doubao-seed-1.6","messages":[{"role":"user","content":"Hello!"}]}'
โมเดลอื่นๆ ที่คุณอาจสนใจ
ByteDance’s flagship Doubao model.
Doubao's flagship model.
Fast and cost-efficient.
Step-by-step reasoning model.