OpenAI-compatible chat completions
chat_completionsUse when an agent must call an LLM with no account and no token metering: chat completions with the exact request and response shape of the OpenAI API - point your existing client at this URL and it works, no code change. One flat price per call whatever the size of the prompt or the answer — no token metering, no API key, no account, no rate limit. Automatic failover across several large models. You are only charged if the completion is delivered. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored on purpose: the service picks the model and fails over between several. Accepted so an OpenAI client can send it unchanged. | |
| prompt | No | Shortcut for a single user message, if you do not want to build the array. | |
| messages | No | The conversation, as in the OpenAI API: [{"role":"system|user|assistant","content":"..."}]. In a POST, send it as a real JSON array, exactly as an OpenAI client does; in a GET, pass that same JSON as text in the query string. Both are accepted. | |
| max_tokens | No | Output token cap, up to 4000. Does not change the price. | |
| temperature | No | Passed through to the model when given. |