MiniMax

Minimax M2.1 Lightning API

CN MiniMax
In Spielwiese testen → API-Schlüssel erhalten

Minimax M2.1 Lightning ist ein Flaggschiff-Modell von MiniMax. Verfügbar über die MeshTok Unified API.

SchnellTools

Preise (offiziell, pro 1M Tokens)

Eingabe
$0.30/M
Ausgabe
$2.40/M

Spezifikationen

Kontextfenster200K Tokens EingabemodalitätenText StreamingJa APIOpenAI-kompatibel

So verwenden Sie Minimax M2.1 Lightning

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="minimax/minimax-m2.1-lightning",
    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":"minimax/minimax-m2.1-lightning","messages":[{"role":"user","content":"Hello!"}]}'

Ähnliche Modelle

Andere Modelle zum Überlegen.