create_compute_volume
Create a persistent machine and boot its first instance.
Start here, then set the machine up however you like (install packages, drivers, models). Everything you do becomes part of the volume the first time you detach or snapshot it.
While attached you pay hourly compute; while detached you pay only for stored bytes (CA$0.03/GB/month). Stopping an instance does NOT save money on this provider — detaching is what stops the compute charge.
Requires: API key with write scope, and an active subscription.
Args: name: Label for the volume, e.g. "trainer" image_id: From list_compute_images, e.g. "UBUNTU_24_04_64BIT". Cannot change later — restores must land on the same OS. instance_type: From list_compute_types, e.g. "lsw.g6.xlarge". CAN change on every later attach. ssh_public_key: Required. Volume instances always boot via cloud-init, so this is the only way in. root_disk_size: GB. Defaults to the type's minimum (or 25).
Returns: Volume dict with state "attached". Poll get_compute_volume until instance.state is "running" (~1-3 min).
Errors: PAYMENT_REQUIRED: No active subscription LIMIT_EXCEEDED: Volume cap reached NOT_AVAILABLE: Volumes not enabled on this deployment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| image_id | Yes | ||
| instance_type | Yes | ||
| root_disk_size | No | ||
| ssh_public_key | Yes |