> For the complete documentation index, see [llms.txt](https://docs.nebulablock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nebulablock.com/products/gpu-cloud/spot-instances.md). Agents can also search and read this documentation through its [MCP server](https://docs.nebulablock.com/~gitbook/mcp).

# Spot Instances

How Spot instances are priced, when they are preempted, and how to restart them at the current spot rate.

Spot instances run on spare GPU capacity at a lower hourly rate than on-demand instances. In return, they can be interrupted. They suit work that can pause and resume: batch jobs, experiments, and training runs that checkpoint regularly.

You deploy a Spot instance from the [Deploy](https://console.nebulablock.com/deploy) page like any other. Through the API, Spot configurations are the products with `is_spot: true` in [List Products](https://docs.nebulablock.com/api-reference/platform-api/list-products.md), and Spot instances carry `is_spot: true` in [Get Instance](https://docs.nebulablock.com/api-reference/platform-api/list-products/get-instance.md).

## Pricing

Spot instances are priced at the **current spot rate**, which moves with demand and can change several times a day. The price shown when you deploy is the hourly rate your instance runs at.

The rate is hourly, charged per minute of running time and deducted from your credit balance like any other instance.

> **Note:** If the spot rate has gone up since the price list was last refreshed, the deploy is rejected with a message giving the new rate, for example `"The spot price for this configuration has changed to $2.350/hour. Please review the new price and deploy again."` No instance is created. Review the new price and deploy again.

## When the spot rate rises

A Spot instance runs at the spot rate in effect when you start it. If the spot rate rises above that rate, the instance may be **preempted**:

* it stops, and its status becomes `Preempted`;
* compute billing pauses;
* its disks and data are kept, and storage keeps being billed at a lower storage rate.

You are notified in the console when an instance is preempted.

> **Note:** Only preemption pauses compute billing. A Spot instance you stop yourself with **Stop** keeps being billed at its full rate while it is stopped. Delete it if you no longer need it.

## Billing while preempted

While a Spot instance is preempted, you are not billed for compute, but its disks — which hold your data — are billed at a **storage rate** until you start or delete the instance. The storage rate depends on disk size, typically from a few cents to a few tens of cents per hour, and is shown in the instance details in the console. If no storage rate is shown, nothing is billed while the instance is preempted.

* **Start** the instance to resume work. It is billed at the full hourly rate again, at the current spot rate you confirm.
* **Delete** the instance to stop all charges. Its disks and data are deleted with it.

Through the API, `billing_price_per_hour` in [Get Instance](https://docs.nebulablock.com/api-reference/platform-api/list-products/get-instance.md) shows what the instance is billed per hour right now.

## Starting a preempted instance

A preempted or stopped Spot instance can be started again from the console. Before it starts, the console shows the current spot rate — and the rate it ran at before, if that has changed — for example:

> The current spot price is $2.350/hour (was $2.100/hour).

Confirm to start the instance. It then runs at the new rate. If the rate changes again before the instance starts, you are asked to confirm again.

To do the same through the API, see [Get Spot Price](https://docs.nebulablock.com/api-reference/platform-api/list-products/get-spot-price.md) and the `accepted_price_per_hour` parameter of [Start Instance](https://docs.nebulablock.com/api-reference/platform-api/list-products/start-instance.md).

## Rebooting a Spot instance

Rebooting a running Spot instance stops it and starts it again at its current rate. If the spot rate has risen above that rate in the meantime, the instance cannot start and ends up `Preempted`: compute billing pauses and only storage is billed. Start it again from the console at the current rate, after confirming the new price. To keep a running Spot instance running, avoid rebooting it while spot rates are rising.

## Interruptions

Price is not the only reason a Spot instance can stop. Spot instances can be **preempted at any time** when capacity is reclaimed, regardless of the spot rate. The same rules apply: compute billing pauses, data is kept and billed at the storage rate, and you can start the instance again once capacity is available.

> **Important:** Use on-demand instances for workloads that cannot tolerate interruption, such as production serving. For long jobs on Spot, save checkpoints to disk or [object storage](https://docs.nebulablock.com/products/object-storage.md) so a preemption costs you minutes, not hours.

## See also

* [GPU Cloud](https://docs.nebulablock.com/products/gpu-cloud.md)
* [Start Instance](https://docs.nebulablock.com/api-reference/platform-api/list-products/start-instance.md)
* [Get Spot Price](https://docs.nebulablock.com/api-reference/platform-api/list-products/get-spot-price.md)
* [Billing](https://docs.nebulablock.com/getting-started/get-started/billing.md)
