Skip to navigation

Create a volume

Create an empty volume. Pass kind=object for an S3-compatible bucket mounted at /mnt/<name>, or kind=network for a /workspace shared by compatible GPU instances and cluster nodes. Workspace and network volumes are billed by configured size; object buckets bill at least the selected size, with stored usage above it rounded up to whole GB. Storage is prorated per second using a 730-hour month.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
namestringRequiredformat: "^[a-z0-9][a-z0-9\-]*[a-z0-9]$"2-32 characters
Uppercase letters are converted to lowercase before validation.
size_gbintegerRequired1-4000
Volume size in GB, from 1 to 4,000.
kindenumOptionalDefaults to workspace

workspace saves /workspace on stop and restores it on the next attach. object is an S3-compatible bucket mounted at /mnt/<name> and read in place. network shares /workspace across compatible instances and cluster nodes, with the same returned per-GB rate.

Allowed values:

Response

Volume created.
volumeobjectOptional

Errors

400
Bad Request Error
402
Payment Required Error
409
Conflict Error
503
Service Unavailable Error