> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qbraid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On-Demand Instances

> Launch, manage, and understand the lifecycle of on-demand GPU and CPU instances on qBraid Lab.

On-demand instances give you access to high-performance GPUs and large CPU configurations with pay-as-you-go credit billing. No subscription commitment or reserved capacity is required — just pick an instance, launch it, and start working.

## Launching an Instance

From your [dashboard](https://account.qbraid.com/dashboard), switch to the **On-Demand** tab to see available GPU and CPU profiles. Each profile shows its pricing in credits per minute and a capacity tag indicating current availability: **High**, **Medium**, or **Low**. Profiles tagged **No Capacity** cannot be launched until resources free up. Profiles with no tag means capacity data is not currently available.

Click **Launch** next to any available profile to start an instance.

<img src="https://mintcdn.com/qbraidco/qWiEKVA7MmsvGxXj/v2/lab/_static/on-demand-tab.png?fit=max&auto=format&n=qWiEKVA7MmsvGxXj&q=85&s=2802ed65cddf47e016c5f801f2deb75f" width="1485" height="753" data-path="v2/lab/_static/on-demand-tab.png" />

<Note>
  You can run up to 5 concurrent on-demand instances at once, depending on your
  credit balance. See [pricing](/v2/home/pricing#gpu-instances) for per-minute
  rates.
</Note>

## Accessing Your Instance

Once an instance is running, it appears under your **My Instances** tab.

<img src="https://mintcdn.com/qbraidco/qWiEKVA7MmsvGxXj/v2/lab/_static/my-instances.png?fit=max&auto=format&n=qWiEKVA7MmsvGxXj&q=85&s=38fdda31188954e6c91f9716ae744191" width="1191" height="388" data-path="v2/lab/_static/my-instances.png" />

From there you have two quick actions:

* **Arrow icon** — Opens the instance directly in JupyterLab.
* **Pencil (Edit) icon** — Opens the instance detail page where you can choose how to connect, all from your browser:

  * **JupyterLab** — Notebook-first environment for interactive computing
  * **VS Code** — Full IDE with extensions and debugging
  * **Terminal** — Direct shell access to the instance

<img src="https://mintcdn.com/qbraidco/qWiEKVA7MmsvGxXj/v2/lab/_static/launch-options.png?fit=max&auto=format&n=qWiEKVA7MmsvGxXj&q=85&s=e3e4c341e2b3d1ab5a52063bb81e43c4" width="1238" height="302" data-path="v2/lab/_static/launch-options.png" />

You can also connect to running instances remotely via SSH using the [qBraid CLI](https://docs.qbraid.com/v2/cli/api-reference/qbraid_compute).

## Instance Lifecycle

On-demand instances have three states you control: **Running**, **Stopped**, and **Terminated**.

```
Launch → Running → Stop → Stopped → Resume → Running
                      │                  │
                      └── Terminate ◄────┘
```

### Running

Your instance is active and accessible. You are billed for both compute and storage at the rate shown on the instance tile (credits per minute).

### Stopped

Compute is released, but your instance's disk is preserved — all your files, installed packages, and work remain intact. You are billed a small storage-only fee (credits per minute) while the instance is stopped.

You can resume a stopped instance at any time. When you do, your files will be exactly as you left them.

### Terminated

The instance and its disk are **permanently deleted**. All files on the instance are lost and cannot be recovered. Billing stops completely.

## Stop vs Terminate

|                  | Stop                            | Terminate                       |
| :--------------- | :------------------------------ | :------------------------------ |
| **Compute**      | Released (no compute charges)   | Deleted                         |
| **Disk / Files** | Preserved                       | Permanently deleted             |
| **Billing**      | Small storage fee (credits/min) | No further charges              |
| **Resumable**    | Yes — resume anytime            | No — must launch a new instance |

**When to stop**: You want to take a break but come back to the same environment later. Your files, packages, and configuration stay intact.

**When to terminate**: You are done with the instance and don't need the data. Terminating frees the storage slot and stops all billing.

<Note>
  Some instance types only support terminate — stop and resume is not available.
  For these instances, the Stop button will not appear; only Terminate is shown.
</Note>

<img src="https://mintcdn.com/qbraidco/qWiEKVA7MmsvGxXj/v2/lab/_static/terminate-instance.png?fit=max&auto=format&n=qWiEKVA7MmsvGxXj&q=85&s=dd174cf31e0843b338a46d8211dd2b1a" width="592" height="243" data-path="v2/lab/_static/terminate-instance.png" />

<Warning>
  Terminating an instance permanently deletes all files on it. Download or
  export any important work before terminating. To keep your data, **stop** the
  instance instead — it stays resumable.
</Warning>

## File Persistence

On-demand instances handle files differently from subscription instances:

* **No automatic file sync**: Unlike subscription instances, on-demand instances do not automatically sync files from cloud storage on launch. Each on-demand instance has its own independent disk.
* **Download from cloud storage**: You can use the Files tab to download files from your cloud storage into an on-demand instance. However, changes you make are **not synced back** to cloud storage.
* **Stop preserves files**: When you stop an instance, its disk is preserved. The next time you resume, your files will be exactly where you left them.
* **Terminate deletes files**: When you terminate an instance, the disk and all files on it are permanently deleted.

<Tip>
  If you're working on important files in an on-demand instance, download them
  to your local machine or push them to a Git repository before terminating.
</Tip>

## Billing

On-demand instances are billed per minute in [qBraid credits](/v2/home/pricing#credits) (100 credits = \$1 USD).

| State          | What you're charged | Example               |
| :------------- | :------------------ | :-------------------- |
| **Running**    | Compute + storage   | 8.95 cr/min (NV H100) |
| **Stopped**    | Storage only        | \~0.02 cr/min         |
| **Terminated** | Nothing             | \$0                   |

Compute rates vary by instance type. See the [pricing page](/v2/home/pricing#gpu-instances) for the full rate table. Storage rates are a small pass-through cost based on disk size.

Your credit balance also determines how many concurrent instances you can run:

| Credit Balance         | Concurrent Instances |
| :--------------------- | :------------------- |
| 100+ credits (\$1+)    | 1                    |
| 1,000+ credits (\$10+) | 2                    |
| 2,500+ credits (\$25+) | 5                    |
