ByteDance Doubao

Doubao Seed 2 0 Pro API

CN ByteDance Doubao
In Spielwiese testen → API-Schlüssel erhalten

Doubao Seed 2 0 Pro ist ein Flaggschiff-Modell von ByteDance Doubao. Verfügbar über die MeshTok Unified API.

ReasoningCodeToolsJSON

Preise (offiziell, pro 1M Tokens)

Eingabe
$0.46/M
Ausgabe
$2.29/M

Spezifikationen

Kontextfenster256K Tokens EingabemodalitätenText StreamingJa APIOpenAI-kompatibel

So verwenden Sie Doubao Seed 2 0 Pro

Direkter OpenAI-Ersatz. Ändern Sie nur base_url und Modell.

# 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-0-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-0-pro","messages":[{"role":"user","content":"Hello!"}]}'

Ähnliche Modelle

Andere Modelle zum Überlegen.