x402_llmchat_post_v1_chat
Submits chat completion prompts to OpenRouter models using pay-per-call USDC pricing, so agents can obtain LLM inference without an OpenRouter API key and with live model-price validation.
Instructions
llmchat — Pay-per-call LLM chat completions via OpenRouter — 437 models, 4 price tiers ($0.005-$0.25). Live model-price validation; agents get frontier inference without an OpenRouter API key. [POST /v1/chat] $0.005-0.25 USDC on eip155:8453. Example: {"messages":[{"role":"user","content":"..."}]} — $0.005, cheap models
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": "x402_llmchat_post_v1_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT/PATCH/DELETE | |
| query | No | Query parameters, e.g. {base:'USD', quote:'EUR'} | |
| restart | No | Explicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete. | |
| operationId | No | Durable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments. |