Rent a GPU (spends balance)
create_rentalRent a GPU by quoting a template and reserving the machine in one step, holding budget_micro as a hard cap; returns rental_id, quote, and state. Requires spend enabled.
Instructions
Rent a GPU on AmpleRun: quotes the template on the offer and reserves the machine in one step, holding up to budget_micro from the account balance. budget_micro is required and is a hard cap: the rental is never charged more, and metering starts only once the machine is verified ready. Returns rental_id, state, the quote, fee_split and the idempotency_key used; retrying with the same idempotency_key never creates a second rental. get_rental reports state and access. Spends money. Write tool: refused unless the server was started with AMPLERUN_MCP_ALLOW_SPEND=1 (the default is read-only).
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. | |
| ssh_public_key | Yes | One-line OpenSSH public key (the .pub file), e.g. "ssh-ed25519 AAAA... you@laptop". Installed for SSH access. | |
| idempotency_key | No | UUID that makes retries safe. Generated when omitted and returned in the result. | |
| duration_limit_s | Yes | Maximum runtime in seconds (60 to 31536000), e.g. 7200 for two hours. |