Create Chat Completion
OpenAI-compatible chat completions endpoint backed by Eachlabs LLM Router. Use
Authorization: Bearer <API_KEY> and point an OpenAI-compatible client at
https://api.eachlabs.ai/v1.
This endpoint uses the OpenAI-compatible error envelope rather than the REST error body described in the global contract notes.
Authorizations
API key passed as an Authorization Bearer token for OpenAI-compatible endpoints
Headers
Optional webhook URL for asynchronous result delivery.
Body
OpenAI-compatible chat completions request body
LLM model identifier
"openai/gpt-4o-mini"
OpenAI-compatible chat messages
[
{
"role": "user",
"content": "Write a one sentence caption."
}
]Set to true to receive OpenAI-compatible SSE chunks (text/event-stream) instead of a buffered JSON response.
false
Optional OpenAI-compatible streaming options. When include_usage is true, the stream may include a final usage chunk before [DONE].
Response
OpenAI-compatible chat completion. Requests with stream: true return Server-Sent Events.