POST /v1/chat/completions

OpenAI-kompatibler Chat Completions-Endpunkt.

POST /v1/chat/completions

Verwenden Sie die OpenAI-kompatible Schnittstelle mit OpenAI SDKs und kompatiblen Clients.

Authentifizierung

Authorization: Bearer mg_live_...\ncontent-type: application/json

Anfrage

curl https://api.model-gate.com/v1/chat/completions \
  -H "Authorization: Bearer mg_live_..." \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-4.8",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": false
  }'

Streaming

Satz "stream": true um vom Server gesendete Ereignisse im OpenAI-kompatiblen Format zu empfangen.