API reference

Create instance

Create a new compute instance. The optional mode field is retained for legacy compatibility. Its value does not select execution mode; routing is derived from num_gpus. New integrations should omit mode and use GET /v2/specs for available configurations. SSH access: pass an SSH public key in the public_key field to seed the instance's authorized_keys. If omitted, Thunder generates a key pair and returns the private key in the response (it is only returned once — store it immediately). Note: SSH keys saved in your account (Authentication section of the console) are a separate store and are NOT automatically attached to new instances. To use one of those keys, copy its public key material into the public_key field on this request.

View Markdown

POST/instances/create

Create a new compute instance. The optional mode field is retained for legacy compatibility. Its value does not select execution mode; routing is derived from num_gpus. New integrations should omit mode and use GET /v2/specs for available configurations.

SSH access: pass an SSH public key in the `public_key` field to seed the instance's `authorized_keys`. If omitted, Thunder generates a key pair and returns the private key in the response (it is only returned once — store it immediately).

Note: SSH keys saved in your account (Authentication section of the console) are a separate store and are NOT automatically attached to new instances. To use one of those keys, copy its public key material into the `public_key` field on this request.

Request body

application/json

FieldTypeDescription
cpu_coresRequiredinteger
disk_size_gbRequiredinteger
gpu_typeRequiredstring
modethundertypes.InstanceModeDeprecated: retained for legacy compatibility. Omit in new integrations. Behavior is specific to each endpoint; see its operation description.
num_gpusRequiredinteger
public_keystringOptional SSH public key material to seed authorized_keys. If omitted, a key pair is generated and the private key returned.
templateRequiredstring
workspace_idstring

Responses

201 · Created
FieldTypeDescription
identifierRequiredinteger
keyRequiredstring
uuidRequiredstring
workspace_idstring
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
409 · The instance would exceed one of the organization's quotas
FieldTypeDescription
codeinteger
errorstring
messagestring
quotathundertypes.QuotaExceeded
500 · Internal Server Error
FieldTypeDescription
codeinteger
errorstring
messagestring
503 · The organization's quotas could not be checked, or concurrent changes kept the request from committing; retry
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.