Chat Completions
Create a chat completion
Generate an OpenAI-compatible chat completion from conversation messages. Supports streaming, multimodal content, structured outputs, and tool calling.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.naga.ac/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Primary authentication for inference endpoints. Send your Naga API key as Authorization: Bearer <api-key>.
Body
application/json
Model identifier to route the request to.
Example:
"gpt-4o-mini"
Conversation history in OpenAI Chat Completions format.
Minimum array length:
1- TextResponseFormat
- JsonObjectResponseFormat
- JsonSchemaResponseFormat
Required range:
0 <= x <= 2Required range:
0 <= x <= 1Required range:
x >= 1Available options:
none, minimal, low, medium, high, xhigh Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Response
JSON response when stream=false, or Server-Sent Events when stream=true.