Get a rental quote
get_quotePrice a rental without committing: create a free, non-binding AmpleRun quote capped by budget, valid for 60 seconds, with no reservation or charge.
Instructions
Price a rental without committing: creates a free, non-binding AmpleRun quote (valid 60 seconds; nothing is reserved or charged) for a template on an offer, capped by budget_micro. Returns the quote exactly as the API sent it plus fee_split: the most the rental can cost and how that divides into the platform fee (platform_fee_bps) and the host's share. Needs AMPLERUN_API_KEY with the renter scope. create_rental quotes again when it reserves, so this step is optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | Balance to pay from. USDC when omitted. | |
| offer_id | Yes | offer_id from search_offers. | |
| template | Yes | Template slug such as "pytorch-cuda", or its id (UUID), from list_templates. | |
| budget_micro | Yes | Spending cap in micro-units of the asset ("1000000" = 1 USDC). The rental is never charged more than this. | |
| duration_limit_s | Yes | Maximum runtime in seconds (60 to 31536000), e.g. 7200 for two hours. |