Native OpenAI Format
Chat Completions
- Create a model response from conversation history. Supports streaming and non-streaming responses.
- Compatible with the OpenAI Chat Completions API.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
All endpoints require Bearer Token authentication.Add it to the request headers:
Body
Model IDExample:
gpt-5.5List of chat messages
Message roleAllowed values:
system, user, assistant, tool, developerMessage content
Sender name
Tool call ID (for tool role messages)
Reasoning content
Sampling temperature
Nucleus sampling parameter
Generation count
Whether to stream the response
Stop sequences
Maximum generated tokens
Maximum completion tokens
Reasoning effort (for models that support reasoning)Allowed values:
low, medium, highResponse
Example:
chat.completionExample:
gpt-5.5Message roleAllowed values:
system, user, assistant, tool, developerMessage content
Sender name
Tool call ID (for tool role messages)
Reasoning content
Allowed values:
stop, length, tool_calls, content_filterPrompt token count
Completion token count
Total token count