Anthropic-compatible messages
messagesUse when an agent is written against the Anthropic Messages API and must call a model with no account: the same request and response shape - system as its own field, content as text blocks, stop_reason - so pointing your client at this URL is all it takes. One flat price per call, whatever the size. Automatic failover across several large models. Do not use for the OpenAI shape (/v1/chat/completions serves that one). You are only charged if the answer 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 Anthropic client can send it unchanged. | |
| prompt | No | Shortcut for a single user message, if you do not want to build the array. | |
| system | No | The system prompt, as its own field (this is how the Anthropic API does it). | |
| messages | No | The conversation, as in the Anthropic API: [{"role":"user|assistant","content":"..."}]. In a POST send a real JSON array, exactly as an Anthropic client does; in a GET pass that same JSON as text. Both are accepted. | |
| max_tokens | No | Output token cap, up to 4000. Does not change the price. Required by the real API; here it is optional. | |
| temperature | No | Passed through to the model when given. |