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 Authorization: Bearer <api_key>
Headers
Optional webhook URL for asynchronous result delivery.
Body
OpenAI-compatible chat completions request body
Model ID. Any chat model ID from OpenRouter's model list works (for example openai/gpt-5.6-sol); see Available Models in the LLM Router docs.
"openai/gpt-5.6-sol"
OpenAI-compatible chat messages
Required. Stable, pseudonymous ID of the real person this request is for. See https://docs.eachlabs.ai/end-user-id
1 - 256"usr_4f9a2c"
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.