Skip to main content
POST
Create a GPU instance

Authorizations

Authorization
string
header
required

Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.

Body

application/json

Provide either gpu_type (auto-deploy to cheapest available config) or instance_type_id (specific config from /instances/types).

name
string
required

Human-readable instance name.

gpu_type
string

GPU model id (e.g. h100-sxm). Required if instance_type_id is not provided.

instance_type_id
string

Exact instance-type id from GET /instances/types. Required if gpu_type is not provided.

region
string

Region preference. Defaults to auto.

gpu_count
integer
Required range: x >= 1
cpu_cores
integer
Required range: x >= 1
memory
integer

GB

Required range: x >= 1
storage
integer

GB ephemeral storage

Required range: x >= 1
template
string

Template id to boot from.

ssh_key_id
string

ID of an SSH key to inject (create one via POST /ssh-keys).

env_vars
object[]

Environment variables to inject. Each item must be { "key": "NAME", "value": "..." }.

startup_commands
string[]
storage_id
string

Persistent volume to attach at boot. Mounts at /workspace.

launch_script
string

Raw shell script to run on boot.

launch_script_base64
string

Base64-encoded launch script (alternative to launch_script).

Response

Instance created. Status will be starting or deploying until ready.

data
object
required