Rent the GPU and start the workload
create_instanceDeploys a GPU instance from a Vast.ai offer, launches the container, downloads weights, and sets an automatic teardown deadline. Requires user confirmation after showing the cost estimate.
Instructions
Rents the offer, starts the container, downloads the weights, and registers the instance for automatic teardown. Requires confirm=true, and you must show the user the cost estimate first. Every instance gets a hard deadline; there is no way to create one that runs forever. Returns JSON: {ok, message, next_tool, next_args, ...tool-specific fields}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Skip the affordability check | |
| label | No | ||
| confirm | Yes | Must be true. The user has seen the estimate and agreed. | |
| disk_gb | No | ||
| offer_id | No | From recommend_plan; omitted means plan again and take the best | |
| template | Yes | ||
| idle_minutes | No | Destroy this long after the render queue goes quiet. Default 15. null disables it. | |
| work_minutes | No | ||
| interruptible | No | Bid for an interruptible instance. Roughly 3-5x cheaper, but the host can reclaim it mid-render; the instance is then stopped (not destroyed) and its disk survives. | |
| allow_unverified | No | ||
| bid_usd_per_hour | No | Bid price; defaults to just above the offer minimum. | |
| teardown_minutes | No | Hard wall: the reaper destroys the instance at this age no matter what. Default 120. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false only when the tool itself failed (bad input, missing key, API error). | |
| message | Yes | Human-readable summary to relay to the user. | |
| next_args | No | Suggested arguments for next_tool. | |
| next_tool | No | Suggested next tool, or null when nothing else is needed. |