Skip to main content
POST
/
compute
/
provision
Provision a compute instance
curl --request POST \
  --url https://compute.x402layer.cc/compute/provision \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "<string>",
  "region": "<string>",
  "os_id": 123,
  "label": "<string>",
  "hostname": "<string>",
  "prepaid_hours": 123,
  "ssh_public_key": "<string>"
}
'
{
  "x402Version": 123,
  "accepts": [
    {
      "scheme": "<string>",
      "network": "<string>",
      "maxAmountRequired": "<string>",
      "resource": "<string>",
      "description": "<string>",
      "payTo": "<string>",
      "asset": "<string>"
    }
  ],
  "api_schema": {
    "baseUrl": "<string>",
    "routes": [
      {
        "path": "/users/{id}",
        "summary": "<string>",
        "parameters": [
          {
            "name": "<string>",
            "required": true,
            "description": "<string>",
            "example": "<string>"
          }
        ],
        "requestBody": {
          "fields": [
            {
              "name": "<string>",
              "required": true,
              "description": "<string>",
              "example": "<string>"
            }
          ],
          "example": "<string>"
        },
        "responseExample": "<string>"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.x402layer.cc/llms.txt

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

Body

application/json
plan
string
required
region
string
required
os_id
integer
required
label
string
hostname
string
prepaid_hours
integer
provider
enum<string>

Optional provider hint. Plan IDs with do: prefix resolve to DigitalOcean.

Available options:
vultr,
digitalocean
network
enum<string>

x402 payment network. MPP clients use Authorization: Payment and do not need this field.

Available options:
base,
solana
ssh_public_key
string

Response

Provisioning started