Skip to main content
POST
Create an instance

Authorizations

Authorization
string
header
required

An API key issued by Hive Compute support. See Authentication above for how to request one.

Body

application/json
name
string
required

Letters, digits, hyphens and underscores.

Maximum string length: 255
Pattern: ^[a-zA-Z0-9_-]+$
Example:

"training-run-1"

preset_id
string<uuid>
required

The id of a preset from GET /presets.

image_type
enum<string>
required

The type of the image. Case-insensitive.

Available options:
vm,
container
image_id
string
required

The id of an image from GET /images of that type.

Maximum string length: 255
Example:

"ubuntu24.04"

Response

The instance was created and is starting.

instance
object

The instance, as GET /instances/{id} returns it. When it could not be read right after the create, it holds only instance_id: the instance exists, so read it with GET /instances/{id} rather than creating again.