Skip to main content
Compose.Market uses x402 for paid HTTP. The pattern is plain: a request costs money, the API asks for payment, the client pays, and the API returns the result. For humans and IDEs, raw x402 is often too much ceremony. Compose Keys cover that case. A Compose Key is a budgeted bearer credential, so an external app can send Authorization: Bearer compose-... and keep using normal OpenAI-compatible HTTP.

Pick the right flow

What happens on a paid inference call

The important detail is the order. Compose does not guess the bill from the prompt. It prices the request from provider output: token usage for text and embeddings, media evidence for image/audio/video, and the model pricing stored in the generated catalog.

Exact vs upto

Usage-priced inference uses upto because the final token count or media evidence is known only after the provider responds.

Headers you will see

Native and external routes

Native routes are for Compose-aware clients. External routes are for OpenAI-compatible tools.