Skip to content

GPU Workloads

Varity TeamCore Contributors

Varity Cloud offers two GPU execution classes. Their inventory and prices are live supply, not a documentation rate card.

Execution classYou receiveCreate withAccess
virtual_machineA GPU virtual machinePOST /api/machinesSSH when ready
bare_metalA physical GPU hostPOST /api/machinesSSH when ready

Read the matching catalog first:

Terminal window
curl "https://varity.app/api/deployment-profiles?workload=gpu&execution_class=virtual_machine" \
-H "Authorization: Bearer $VARITY_API_KEY"

Use execution_class=bare_metal for a physical host. Region, accelerator, host resources, and available OS images belong to the selected profile; they are not independent assumptions.

  1. Quote the exact profile and image

    Terminal window
    curl -X POST https://varity.app/api/pricing/machine-quote \
    -H "Authorization: Bearer $VARITY_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "profile_id": "<profile id from the current catalog>",
    "execution_class": "virtual_machine",
    "os_image": "<image id from that profile>"
    }'
  2. Create before valid_until

    Terminal window
    curl -X POST https://varity.app/api/machines \
    -H "Authorization: Bearer $VARITY_API_KEY" \
    -H "Idempotency-Key: gpu-machine-001" \
    -H "Content-Type: application/json" \
    -d '{
    "name": "trainer-01",
    "profile_id": "<profile id from the current catalog>",
    "execution_class": "virtual_machine",
    "os_image": "<image id from that profile>",
    "ssh_public_key": "ssh-ed25519 AAAA...",
    "accelerator_quote_token": "<quote token>"
    }'

    Use execution_class: "bare_metal" only with a bare-metal profile and a quote for that same configuration.

  3. Poll for access

    Terminal window
    curl https://varity.app/api/machines/$MACHINE_ID \
    -H "Authorization: Bearer $VARITY_API_KEY"

    access is null until ready, then carries the SSH host, port, and user.

  • The binding price is the quote accepted by the create request, not a catalog snapshot or a value copied from this page.
  • GPU machines carry the documented minimum authorization shown by the current quote flow.
  • Additional storage is not accepted for GPU machines.
  • Restart and soft reboot preserve the reservation and billing.
Terminal window
curl -X DELETE https://varity.app/api/machines/$MACHINE_ID \
-H "Authorization: Bearer $VARITY_API_KEY"

Machine deletion is asynchronous. Acceptance is not closure proof: read the machine until lifecycle.cleanup_state is complete. Deletion destroys the machine disk, so copy required data first.