Use Compose models from OpenAI-compatible IDEs, agent tools, and inference wrappers.
External routes are for clients that can set an OpenAI-compatibleDocumentation Index
Fetch the complete documentation index at: https://docs.compose.market/llms.txt
Use this file to discover all available pages before exploring further.
baseURL and bearer token but do not understand x402 challenge flows. They use Compose Key auth only.
| Method | Path | Description |
|---|---|---|
GET | /.well-known/opencode | Remote OpenCode config document. |
GET | /external/opencode | Compose provider config with env-based API key placeholder. |
GET | /external/v1/models | OpenAI-shaped model list. |
GET | /external/v1/models/{model} | One OpenAI-shaped model row. Slash-containing IDs are supported. |
POST | /external/v1/chat/completions | OpenAI-compatible chat completions. |
POST | /external/v1/responses | OpenAI-compatible Responses-style requests. |
POST | /external/v1/embeddings | OpenAI-compatible embeddings. |
POST | /external/v1/images/generations | Image generation. |
POST | /external/v1/audio/speech | Speech generation. |
POST | /external/v1/audio/transcriptions | Audio transcription. |
POST | /external/v1/videos/generations | Video generation. |
Bearer compose-.... Missing or invalid keys return an OpenAI-shaped 401./external/v1/models.| Header | Description |
|---|---|
x-compose-public-model | Public catalog ID requested by the client. |
x-compose-upstream-provider | Provider selected by the catalog resolver. |
x-compose-upstream-model | Provider wire model used upstream. |
compose_receipt. Upstream content-filter errors are sanitized while keeping the diagnostic headers above.