Completions
Create Completion
Generate a text completion. Set stream: true for SSE streaming.
All SSE frames use event: stream_event with a JSON-serialized lithos StreamEvent payload, discriminated by type: started, content_block_start, text_delta, reasoning_delta, tool_call_delta, content_block_end, usage, rate_limits, ended, and error.
post/api/v1/completions
Request body
Response
Completion result (JSON when stream=false, SSE when stream=true)
Example response
{
"model": {
"provider": "anthropic"
}
}