ENVIAR /v1/chat/compleciones

Punto final de finalización de chat compatible con OpenAI.

ENVIAR /v1/chat/compleciones

Utilice la interfaz compatible con OpenAI con los SDK de OpenAI y clientes compatibles.

Autenticación

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

Pedido

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
  }'

Transmisión

Colocar "stream": true para recibir eventos enviados por el servidor en formato compatible con OpenAI.