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 MarkdownPOST/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
| Field | Type | Description |
|---|---|---|
cpu_coresRequired | integer | |
disk_size_gbRequired | integer | |
gpu_typeRequired | string | |
mode | thundertypes.InstanceMode | Deprecated: retained for legacy compatibility. Omit in new integrations. Behavior is specific to each endpoint; see its operation description. |
num_gpusRequired | integer | |
public_key | string | Optional SSH public key material to seed authorized_keys. If omitted, a key pair is generated and the private key returned. |
templateRequired | string | |
workspace_id | string |
Responses
201 · Created
| Field | Type | Description |
|---|---|---|
identifierRequired | integer | |
keyRequired | string | |
uuidRequired | string | |
workspace_id | string |
400 · Bad Request
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
401 · Unauthorized
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
409 · The instance would exceed one of the organization's quotas
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string | |
quota | thundertypes.QuotaExceeded |
500 · Internal Server Error
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
503 · The organization's quotas could not be checked, or concurrent changes kept the request from committing; retry
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
Operation specification
The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.