One LLM chat completion with no account and no model key (paid, x402)
infer_chatPAID: LLM chat completion for $0.0100, no account or model key: send messages, get {model, content, finish_reason, usage}. Unpaid, it returns the price; pay with x402 (USDC on Base, Solana, Polygon, Arbitrum, Avalanche, Sei or X Layer) in _meta['x402/payment'] and call again. Feedback: POST /feedback (free). Read daily; no individual reply.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "infer_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | The tier to buy: fast. Omitted means fast. | |
| messages | No | 1..32 chat messages summing to at most 8000 chars, e.g. [{"role":"system","content":"You are terse. Answer in one sentence."},{"role":"user","content":"What is the capital of Japan?"}]. | |
| max_tokens | No | Ceiling on the answer, 1..2048. Omitted means 1024. | |
| temperature | No | Sampling temperature, 0..2. Omitted means 1. |