Doubao Seed 2.1 Pro 是字节跳动旗下的顶级模型,具备强大的推理能力、多模态视觉及工具使用功能。该模型在中文基准测试中表现优异,并广泛应用于字节跳动内部产品。
直接替换OpenAI。只需改base_url和模型。
# 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.