Skip to Content
gpuvoxDocumentation
Account and rentals

Rent a machine

Rent a machine now. Billing by the second from the account's credit starts at once.

POST
/api/v1/rentals

Rent a machine now. Billing by the second from the account's credit starts at once.

Authorization

apiKey
headerAuthorizationBearer <token>

A key created in the console under API keys, sent as Authorization: Bearer vox_…

Request Body

application/json
  1. body
offerId*string

id of a machine from /api/v1/offers.

sshKey*string

SSH public key to install for root. Never a private key.

image?string
Default"ubuntu"
Value in"llama-cpp""pytorch""comfyui""ubuntu"
diskGb?integer

Disk to allocate, GB, up to what the machine has free. Part of the hourly price.

Default40
Value in2040100200500

Response Body

The rental, status provisioning.

application/json
  1. response
id?string
status?string
Value in"provisioning""running""stopped""failed"
machine?string
specs?string
location?string
offerId?string
image?string
pricePerHour?number

USD per hour, fixed for this rental.

chargedUsd?number

Machine time charged so far.

diskGb?|

Disk allocated, GB. Null when the disk is part of the machine.

transferUsd?number

Data transfer charged so far.

startedAt?string
Formatdate-time
stoppedAt?|
Formatdate-time
stopReason?string|null
ssh?|

Present once status is running.

Example Request
curl -X POST 'https://gpuvox.com/api/v1/rentals' \  -H 'Content-Type: application/json' \  -d '{  "offerId": "string",  "sshKey": "string"}'
Example Response
{  "id": "string",  "status": "provisioning",  "machine": "string",  "specs": "string",  "location": "string",  "offerId": "string",  "image": "string",  "pricePerHour": 0,  "chargedUsd": 0,  "diskGb": 0,  "transferUsd": 0,  "startedAt": "2019-08-24T14:15:22Z",  "stoppedAt": "2019-08-24T14:15:22Z",  "stopReason": "string",  "ssh": {    "host": "string",    "port": 0,    "user": "string",    "command": "string"  }}