Skip to content

Create a Spot Instance

A Spot Instance is created exactly like a regular Cloud Server, by enabling the Spot option during configuration. The only requirement is that the chosen plan has an active spot discount.

From the web panel

The flow is identical to that of an on-demand Cloud Server; only the plan choice and the Spot option change.

  1. Open the Configurator of the desired family — Shared CPU, GPU, High Memory or NPU.
  2. Enable the Spot option.
  3. Choose one of the spot plans offered: with the spot view enabled, the configurator shows the plans with an available spot discount .
  4. Complete the configuration (image, datacenter, network, SSH key, …) as for an on-demand server and confirm the creation.

From the API

To create a spot via API just add the "spot": true field to the normal server creation body:

POST /api/v2/servers
{
  "plan": "ECS4",
  "image": "ubuntu-22.04",
  "location": "it-fr2",
  "notes": "worker",
  "spot": true
}

The response is identical to an on-demand create: it contains the action_id to monitor and, once created, the server exposes the spot node with its status. Details and examples in Spot Instances API.

Mutual exclusion with Reserved

spot: true and reserved_plan are mutually exclusive: using them together returns 400. A spot cannot be created as a reserved plan.

See also