Chat completions
POST /v1/chat/completions
{
"model": "gpt-5.2",
"messages": [
{"role": "system", "content": "You are terse."},
{"role": "user", "content": "Explain a gateway in one line."}
],
"stream": true
}
Supported fields: model, messages, stream, plus any extra field your provider accepts — they are forwarded untouched.
Response (streaming)
data: {"id":"chatcmpl-…","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"One "},"finish_reason":null}]}
data: {"id":"chatcmpl-…","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: [DONE]