Skip to main content
POST
/
compute
/
provision
Provision a compute instance
curl --request POST \
  --url https://api.x402layer.cc/compute/provision \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan": "<string>",
  "region": "<string>",
  "os_id": 123,
  "label": "<string>",
  "hostname": "<string>",
  "prepaid_hours": 123,
  "network": "base",
  "ssh_public_key": "<string>"
}
'
{
  "x402Version": 123,
  "accepts": [
    {
      "scheme": "<string>",
      "network": "<string>",
      "maxAmountRequired": "<string>",
      "resource": "<string>",
      "description": "<string>",
      "payTo": "<string>",
      "asset": "<string>"
    }
  ]
}

Body

application/json
plan
string
required
region
string
required
os_id
integer
required
label
string
hostname
string
prepaid_hours
integer
network
enum<string>
Available options:
base,
solana
ssh_public_key
string

Response

Provisioning started