POST /v1/chat/completions
OpenAI-compatible Chat Completions endpoint.
POST /v1/chat/completions
Use the OpenAI-compatible interface with OpenAI SDKs and compatible clients.
Authentication
Authorization: Bearer mg_live_...\ncontent-type: application/json
Request
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
Set "stream": true to receive Server-Sent Events in OpenAI-compatible format.