Rent a GPU server
create_instanceRents the server of an offer and starts it with a template. Billing starts right away and runs every minute until you stop or destroy it. Confirm the price with the user first. Needs instances:write. The response has the instance id; poll get_instance until status is running (usually 1–5 minutes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A name for the server | |
| type | No | on_demand (default) or interruptible | |
| image | No | Docker image, only with the custom template | |
| disk_gb | Yes | Disk size, GB (use the template's recommended_disk_gb) | |
| offer_id | Yes | Offer id from search_offers | |
| template | Yes | Template slug from list_templates, e.g. "comfyui", "ollama", "pytorch", "custom" | |
| ssh_key_ids | No | SSH key ids to install (default: all of yours) | |
| idempotency_key | No | Reuse the same value when retrying the same request, so a retry never rents twice |