Skip to main content
POST
/
cloud
/
v3
/
gpu
/
virtual
/
{project_id}
/
{region_id}
/
clusters
Create virtual GPU cluster
curl --request POST \
  --url https://api.gcore.com/cloud/v3/gpu/virtual/{project_id}/{region_id}/clusters \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flavor": "g3-ai-32-192-1500-l40s-48-1",
  "name": "gpu-cluster-1",
  "servers_count": 3,
  "servers_settings": {
    "interfaces": [
      {
        "type": "<string>",
        "ip_family": "ipv4",
        "name": "eth0",
        "security_groups": [
          {
            "id": "b4849ffa-89f2-45a1-951f-0ae5b7809d98"
          }
        ]
      }
    ],
    "volumes": [
      {
        "boot_index": 1,
        "name": "my-data-disk",
        "size": 100,
        "source": "<string>",
        "delete_on_termination": true,
        "tags": {
          "key1": "value1"
        }
      }
    ],
    "credentials": {
      "password": "securepassword",
      "ssh_key_name": "my-ssh-key",
      "username": "admin"
    },
    "file_shares": [
      {
        "id": "a3f2d1b8-45e6-4f8a-bb5d-19dbf2cd7e9a",
        "mount_path": "/mnt/vast"
      }
    ],
    "security_groups": [
      {
        "id": "b4849ffa-89f2-45a1-951f-0ae5b7809d98"
      }
    ],
    "user_data": "eyJ0ZXN0IjogImRhdGEifQ=="
  },
  "tags": {}
}
'
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://gcore.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Example:

1

region_id
integer
required

Region ID

Example:

7

Body

application/json
flavor
string
required

Cluster flavor ID

Example:

"g3-ai-32-192-1500-l40s-48-1"

name
string
required

Cluster name

Maximum string length: 63
Pattern: ^[a-zA-Z0-9][a-zA-Z 0-9._\-]{1,61}[a-zA-Z0-9._]$
Example:

"gpu-cluster-1"

servers_count
integer
required

Number of servers in the cluster

Example:

3

servers_settings
VirtualServerSettingsInputSerializer · object
required

Configuration settings for the servers in the cluster

tags
CreateTagsSerializer · object

Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.

Example:
{ "my-tag": "my-tag-value" }

Response

200 - application/json

OK

tasks
string[]
required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
Example:
["d478ae29-dedc-4869-82f0-96104425f565"]