Generate text, tool calls, and Responses-style outputs through native paid inference.
Use these routes when you want native Compose receipts, raw x402 support, or Compose Key billing.Documentation Index
Fetch the complete documentation index at: https://docs.compose.market/llms.txt
Use this file to discover all available pages before exploring further.
| Method | Path | Streaming | Description |
|---|---|---|---|
POST | /v1/chat/completions | Yes | OpenAI Chat Completions-shaped request and response. |
POST | /v1/responses | Yes | Responses-shaped input, tools, multimodal content, and stored response IDs. |
GET | /v1/responses/{id} | No | Retrieve a stored response record. |
GET | /v1/responses/{id}/input_items | No | Return stored input items for a response. |
POST | /v1/responses/{id}/cancel | No | Cancel a stored response or async media job. |
POST | /api/inference | Yes | Legacy alias for /v1/chat/completions. |
Bearer compose-... for Compose Key billing.upto payments.400 invalid_stream.none, auto, required, or a named function choice.previous_response_id supplies history.| Event | Description |
|---|---|
data: {...} | Chat or Responses chunk. |
event: compose.receipt | In-band settlement receipt before stream close. |
event: compose.error | Structured Compose error frame. |
data: [DONE] | Stream terminator. |