Skip to main content
POST
Create a cluster

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.

Headers

Idempotency-Key
string

1 to 255 visible ASCII characters. The same key in the same environment returns the cluster it created (200) instead of creating another.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$

Body

application/json
name
string
required

1 to 63 letters, digits or hyphens, starting with a letter or digit. Machines are named <name>-<rank>.

Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,62}$
offer_id
string
required

From GET /clusters/offers.

node_count
integer
required

Number of machines: within the offer's min_nodes and max_nodes, and one of its allowed_node_counts when it has them.

Required range: 2 <= x <= 64
stack
enum<string>
default:none

Software installed across the machines. Must be one of the offer's stacks.

Available options:
none,
slurm,
kubernetes,
ray
ssh_key_ids
string<uuid>[]

SSH keys added on every machine. Optional: keyless SSH certificates always work.

Maximum array length: 20
storage_id
string<uuid> | null

A volume synced into /shared/volume on the head. Not on community hosts; list offers with volume=true.

include_community
boolean
default:false

Needed when the offer is on community hosts.

Response

The cluster this Idempotency-Key already created.

data
object
required