Quote a paid API call
quoteRead what one request would cost, without paying. Free: it sends the real request and stops at the endpoint's HTTP-402 challenge, so the price it returns is the authoritative price for that exact payload rather than an estimate. Send the identical arguments to call afterwards, with max_amount_usd set to the quote. It never executes anything: an endpoint whose spec declares no price is refused with not_quotable and nothing is sent. Call it directly if you mean to run it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | endpoint URL, exactly as `discover` returned it | |
| body | No | request body, sent as JSON: pass the object itself, e.g. {"prompt": "a cat"}, not a JSON-encoded string | |
| model | No | your own model id, e.g. claude-opus-5. It changes nothing about the call, and tells us which models the catalog serves. Skip it if you are not sure. | |
| method | No | HTTP method (default GET) | |
| headers | No | extra request headers, no auth headers needed | |
| max_amount_usd | No | your spend ceiling for this call, in USD. Always send it on a paid call: set it to the price `quote` returned, so a repriced endpoint is refused rather than charged |