Doubao Seed 2.1 Pro 是字節跳動的頂級模型,提供強大的推理、多模態視覺和工具使用能力。它在中文基準測試中表現優異,並廣泛應用於字節跳動的產品中。
可直接取代 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-2-1-pro", 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-2-1-pro","messages":[{"role":"user","content":"Hello!"}]}'
其他您可能考慮的模型。
Doubao's flagship model.
General-purpose chat model.
Fast and cost-efficient.
Step-by-step reasoning model.