stream: true the response is a server-sent event stream of chat.completion.chunkdata: [DONE]. Supported parameters differ by model.{
"model": "openai/gpt-4o-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}curl --location '/chat/completions' \
--header 'x-opengateway-user-id;' \
--header 'x-opengateway-session-id;' \
--header 'x-sionic-task-id;' \
--header 'Content-Type: application/json' \
--data '{
"model": "openai/gpt-4o-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}'stream false/omitted) or an SSE stream of chat completionstream: true). Each SSE data: line carries one ChatCompletionChunk JSONdata: [DONE].{
"id": "string",
"object": "chat.completion",
"created": 0,
"model": "openai/gpt-5-mini",
"system_fingerprint": "string",
"service_tier": "string",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "string",
"tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"reasoning_content": "string",
"reasoning_details": [
null
],
"function_call": {}
},
"finish_reason": "stop",
"logprobs": {
"content": [
{
"top_logprobs": [
{
"token": "string",
"logprob": 0,
"bytes": [
0
]
}
],
"token": "string",
"logprob": 0,
"bytes": [
0
]
}
],
"refusal": null
}
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0
}
},
"debug": {
"normalizations": [
{
"param": "string",
"action": "add",
"before": null,
"after": null
}
],
"deprecations": [
{
"param": "string",
"message": "string"
}
],
"routing": [
{
"provider": "string",
"region": "string",
"status": "failed",
"target": "string"
}
]
}
}