POST /v1/chat/completions
Punct final de finalizare a chatului compatibil OpenAI.
POST /v1/chat/completions
Utilizați interfața compatibilă cu OpenAI cu SDK-urile OpenAI și clienții compatibili.
Autentificare
Authorization: Bearer mg_live_...\ncontent-type: application/json
Cerere
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 pentru a primi evenimente trimise de server în format compatibil OpenAI.