Where it fits
Use Compose when billing is part of the request lifecycle: budgeted keys, raw x402, receipts, and catalog-backed metering. If you only need a generic LLM router, use the router that fits that job.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Where Compose inference fits beside OpenRouter, LiteLLM, provider APIs, and AI SDK.
| Product style | Good at | Different from Compose |
|---|---|---|
| OpenAI, Gemini, Anthropic, provider APIs | Direct provider access and first-party model features. | You manage provider accounts, payment rails, catalog differences, and per-provider metering yourself. |
| OpenRouter | OpenAI-compatible access and provider routing across many models. | Payment is account/API-key based, not x402 settlement per paid HTTP request. |
| LiteLLM | Self-hosted proxying, provider normalization, and budget controls. | It is a proxy layer, not the Compose x402 facilitator or receipt model. |
| AI SDK | App-side TypeScript abstractions for model calls. | It is a client library. Compose is a paid HTTP gateway the AI SDK can call. |
| Cloudflare Workers AI, Together AI, Fireworks, Hugging Face Inference Providers | Provider or router-specific inference APIs. | They are upstreams or peers in routing. Compose adds session budget, x402, and receipt handling around calls. |
| Concern | Compose behavior |
|---|---|
| Model choice | The public model ID resolves to one catalog row. Duplicate provider rows use public aliases such as openai/gpt-5.5. |
| Provider execution | The adapter receives the selected provider and provider wire model. No prompt rewriting, no provider guessing. |
| External compatibility | /external/v1/* keeps OpenAI-compatible response bodies for IDEs and apps. |
| Payment | Native routes support raw x402 and Compose Keys. External routes use Compose Keys. |
| Metering | The final bill comes from provider usage or media evidence plus catalog pricing. |
| Receipts | Native routes expose Compose receipts; external routes keep receipts out of response bodies. |