Quote
quoteFree price check incl. value estimate (raw vs output tokens, break-even $/M). Call only to change quantity/currency or check value before buying. When Lightning payments are temporarily paused, the result includes paymentsPaused and retryAfter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Catalog id or slug from search_catalog. Omit when items is set. | |
| items | No | Basket to price. One entry per SKU. A repeated line is refused unless confirm_duplicates is true on this call or on that line. Does not spend sats. Copy buy.quote_id into buy. | |
| params | No | Optional fields to check before payment. An object, or a JSON array when the SKU body is an array. An invalid value, including a page URL that is not http or https, is rejected. The quote does not spend sats. | |
| baseline | No | Accepted for older clients. Savings use the page's visible text. raw is ignored. | |
| currency | No | ISO 4217. Default USD. Includes MXN. | |
| quantity | No | How many calls to price. Default 1, maximum 3. | |
| accept_terms | No | Optional. When this covers the current terms, the account stores that acceptance. The quote still does not spend sats. | |
| usd_per_million | No | Your model input price in dollars per million tokens. Default 2. This does not change the Amazap price. | |
| confirm_duplicates | No | Set true only to price the same line more than once. Otherwise a repeated line is refused and nothing is charged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance. | |
| paid | No | ||
| which | No | per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| status | No | ||
| message | No | ||
| quoteId | No | ||
| results | No | Search rows when this is a search result. | |
| totalCost | No | ||
| totalSats | No | ||
| approvalUrl | No | Page where the person approves this exact price. |