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

# Dedicated compute

> Reserve whole GPU nodes by the month, SSH into them, manage keys, and give notice

Dedicated compute is bare metal: whole GPU nodes reserved to your organization, reached over SSH. You run your own software on them. For a model Morph operates behind an API, use [dedicated endpoints](https://docs.morphllm.com/dedicated-endpoints.md).

> [!NOTE]
>
> Reservations are in limited preview. An account outside the preview gets `403` with `Compute reservations are not open to this account yet`. Email [info@morphllm.com](mailto:info@morphllm.com) for access.

```bash theme={null}
export MORPH_API_KEY="YOUR_ORG_API_KEY"
morph compute offers
morph compute reserve --nodes 1 --key ~/.ssh/id_ed25519.pub
morph compute status RESERVATION_ID
```

`reserve` holds the nodes and prints a bank checkout URL. `status` prints one `ssh` command per node once the reservation is `running`.

## What you reserve

| | |
| :- | :- |
| **Unit** | Whole nodes. Every GPU comes with an even share of its node's CPU cores, RAM and local disk. The share is fixed: you cannot take less CPU, RAM or disk. |
| **Term** | 1 month minimum. The first term is 1 to 12 months, then the reservation renews monthly until you give notice. |
| **Price** | Shown at checkout and in `morph compute offers`, per node per month, excluding tax. A month is billed as 730 hours. |
| **Payment** | Prepaid monthly in advance by bank debit (ACH). The first invoice is paid at checkout. |
| **Start** | Any day from today to 90 days out. Dates are UTC. |
| **Owner** | An organization. Use an organization API key. Reserving, giving notice and changing SSH keys need an organization admin; any member's key can read. |

`morph compute offers` lists each kind of hardware on sale: what one GPU comes with, the price of a node for a month, the shortest term, the most nodes one order takes, and the nodes free per day.

## Reserve

> [tab] CLI
>
> Install the [Morph CLI](https://docs.morphllm.com/cli.md), then set an organization [API key](https://www.morphllm.com/dashboard/api-keys) created by an admin:
>
> ```bash theme={null}
> export MORPH_API_KEY="YOUR_ORG_API_KEY"
> morph compute offers
> morph compute reserve --pool OFFER_ID --nodes 2 --start 2027-01-04 --months 1 --key ~/.ssh/id_ed25519.pub
> ```
>
> | Flag | Default | |
> | :- | :- | :- |
> | `--pool <offer-id>` | the only offer, when one is on sale | Which hardware |
> | `--nodes <N>` | 1 | Whole nodes |
> | `--start <YYYY-MM-DD>` | today (UTC) | First day |
> | `--months <N>` | the offer's minimum | First term |
> | `--key <file.pub>` | none | SSH public key to put on the nodes, named after the file |
> | `--email <address>` | your account email | Where invoices go |
> | `-y`, `--yes` | off | Skip the confirmation prompt |
>
> The CLI prints the hardware, the price per node per month, the first month's total and the terms, then asks you to confirm. It then prints the checkout URL and opens it in your browser. Nothing is charged from the terminal.

> [tab] Dashboard
>
> Open [Dedicated compute](https://www.morphllm.com/dashboard/dedicated/compute) in the organization that will own the nodes and select **Reserve compute**. Choose the nodes, start date and first term, optionally paste an SSH public key, accept the terms, and continue to the bank payment page.

> [tab] API
>
> Read the offers, then reserve. `acceptedTerms` must be `true`.
>
> ```bash theme={null}
> curl https://api.morphllm.com/api/v1/compute/offers \
>   -H "Authorization: Bearer $MORPH_API_KEY"
>
> curl https://api.morphllm.com/api/v1/compute/reservations \
>   -H "Authorization: Bearer $MORPH_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "poolId": "OFFER_ID",
>     "nodes": 2,
>     "startsOn": "2027-01-04",
>     "months": 1,
>     "acceptedTerms": true,
>     "sshKey": { "name": "laptop", "publicKey": "ssh-ed25519 AAAA... you@laptop" }
>   }'
> ```
>
> The response is `201` with `reservation` and `checkoutUrl`. Open `checkoutUrl` in a browser to pay.
>
> | Field | Required | |
> | :- | :- | :- |
> | `poolId` | yes | An offer `id` from `/api/v1/compute/offers` |
> | `nodes` | yes | Whole nodes, up to the offer's `maxNodesPerOrder` |
> | `startsOn` | yes | `YYYY-MM-DD`, today to 90 days out |
> | `months` | yes | The offer's `minTermMonths` to 12 |
> | `acceptedTerms` | yes | Must be `true` |
> | `billingEmail` | no | Where invoices go. Defaults to the key owner's email |
> | `sshKey` | no | `{ "name", "publicKey" }`, the first key on the nodes |
> | `expectedMonthlyCents` | no | The first month you expect to pay, in cents: the offer's `firstMonthCentsByNodes` entry for this many nodes (entry n - 1 is n nodes). The order is refused with `409` if the price differs |

### Pay

The nodes are held from the moment the reservation is made. The hold is released if the first invoice is not paid in time, and an organization can hold one unpaid reservation at a time. If you close the checkout page, pay the open invoice on the [Dedicated compute](https://www.morphllm.com/dashboard/dedicated/compute) page.

Preparation of the nodes starts when the bank debit is started, not when it clears.

If that first debit fails or your bank returns it before the nodes are handed over, the nodes stay held for 24 hours. Pay the invoice again in that time, from the email or the Dedicated compute page, and the reservation goes ahead. After 24 hours the reservation is released and the nodes go back on sale.

## Connect

```bash theme={null}
morph compute list
morph compute status RESERVATION_ID
```

`status` shows the reservation and, once it is `running`, each node's addresses and the exact command to reach it: `ssh LOGIN@PUBLIC_IP`, or `ssh -J JUMP_HOST LOGIN@PUBLIC_IP` when the nodes sit behind a jump host. The same fields are in `status --json` and `GET /api/v1/compute/reservations/{id}` as `login`, `jumpHost` and `nodes[].publicIp`.

### Reservation status

| `status` | Meaning | SSH works |
| :- | :- | :- |
| `awaiting_payment` | Nodes held, first invoice unpaid. | No |
| `provisioning` | Payment started. Nodes are being prepared. | No |
| `running` | Nodes handed over. | Yes |
| `suspended` | An invoice is unpaid 7 days past due. Your SSH keys are off the nodes until it is paid. | No |
| `ending` | Notice given. Nodes stay yours through `termEnd`, the last day. | Yes |
| `ended` | Nodes returned and wiped. | No |

`list` shows every cluster your organization owns, including ones Morph set up for you under a contract. Those are never `awaiting_payment`.

## Manage SSH keys

A key you add goes on every node of the reservation. It is `applying` until it is on all of them, then `active`. A removed key shows as `removing` until it is off every node. A reservation holds up to 50 keys. Keys can be added before the nodes are handed over: they go on with the handover.

> [tab] CLI
>
> ```bash theme={null}
> morph compute keys list RESERVATION_ID
> morph compute keys add RESERVATION_ID ~/.ssh/id_ed25519.pub
> cat ~/.ssh/ci.pub | morph compute keys add RESERVATION_ID - --name ci
> morph compute keys remove RESERVATION_ID KEY_ID
> ```
>
> A key from a file is named after the file unless you pass `--name`. The CLI refuses to send a private key.

> [tab] Dashboard
>
> On [Dedicated compute](https://www.morphllm.com/dashboard/dedicated/compute), find **SSH keys** on the reservation and select **Add key**. Remove a key from the same list.

> [tab] API
>
> ```bash theme={null}
> curl https://api.morphllm.com/api/v1/compute/reservations/RESERVATION_ID/ssh-keys \
>   -H "Authorization: Bearer $MORPH_API_KEY"
>
> curl https://api.morphllm.com/api/v1/compute/reservations/RESERVATION_ID/ssh-keys \
>   -H "Authorization: Bearer $MORPH_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "name": "ci", "publicKey": "ssh-ed25519 AAAA... ci@build" }'
>
> curl -X DELETE https://api.morphllm.com/api/v1/compute/reservations/RESERVATION_ID/ssh-keys/KEY_ID \
>   -H "Authorization: Bearer $MORPH_API_KEY"
> ```
>
> The list returns `sshKeys`; add and remove return the key as `sshKey` with its `id`, `fingerprint` and `state`.

## Give notice

A reservation renews monthly until you give notice. Notice is never refused for timing: it ends the reservation on a last day you see before you confirm.

| When you give notice | Last day |
| :- | :- |
| The next month is not invoiced yet | The end of the term or monthly period you are in |
| The next month is already invoiced | The end of that next month |

A month is invoiced 15 days before it starts. To stop at the end of the period you are in, give notice more than 15 days before it ends.

The nodes stay yours through the last day and are wiped after it. Copy your data off first.

> [tab] CLI
>
> ```bash theme={null}
> morph compute cancel RESERVATION_ID
> ```
>
> The prompt shows the last day before you confirm. `-y` skips the prompt and prints the last day after.

> [tab] Dashboard
>
> On [Dedicated compute](https://www.morphllm.com/dashboard/dedicated/compute), select **End reservation** on the reservation. The dialog shows the last day before you confirm.

> [tab] API
>
> Read `noticeLastDay` on the reservation, then give notice:
>
> ```bash theme={null}
> curl https://api.morphllm.com/api/v1/compute/reservations/RESERVATION_ID \
>   -H "Authorization: Bearer $MORPH_API_KEY"
>
> curl -X POST https://api.morphllm.com/api/v1/compute/reservations/RESERVATION_ID/cancel \
>   -H "Authorization: Bearer $MORPH_API_KEY"
> ```
>
> The second call returns `{ "lastDay": "YYYY-MM-DD" }`. Repeating it returns the same day. `noticeLastDay` is set while the reservation is `running` and no notice has been given; otherwise it is `null`.

## If an invoice is not paid

Later months are debited from your bank on the due date. If an invoice stays unpaid, two things happen on fixed days:

| Days after the due date | What happens |
| :- | :- |
| 7 | Access is suspended. Your SSH keys are taken off the nodes and the status is `suspended`. Nothing on the nodes is changed. |
| 14 | The reservation is ended and the nodes are wiped. Data on them cannot be recovered. The invoice is still owed. |

Paying before day 14 restores access with the same keys, once the payment is received. A bank debit takes about 4 business days to clear, so pay early.

You are emailed when access is suspended, with the date the reservation ends. That date is always at least 7 days after the suspension. The dashboard shows it next to the status, and `morph compute status` and the API return it as `suspensionEndsOn`.

## API routes

Every route takes `Authorization: Bearer` with an organization API key and returns JSON. An error is `{ "error": "..." }`, a sentence that says what to change. Schemas and example responses are in the [API reference](https://docs.morphllm.com/api-reference/endpoint/compute-offers.md).

| Route | |
| :- | :- |
| `GET /api/v1/compute/offers` | Hardware on sale: `id`, `label`, `hardware`, `region`, `gpusPerNode`, `perGpu`, `gpuHourRateUsd`, `nodeMonthlyCents`, `firstMonthCentsByNodes`, `minTermMonths`, `maxNodesPerOrder`, `availability` (free nodes per day) |
| `GET /api/v1/compute/reservations` | `reservations`, newest first |
| `POST /api/v1/compute/reservations` | Reserve. Returns `reservation` and `checkoutUrl` |
| `GET /api/v1/compute/reservations/{id}` | One reservation: `status`, `startsOn`, `termEnd`, `renews`, `login`, `jumpHost`, `nodes`, `monthlyCents`, `noticeLastDay` |
| `POST /api/v1/compute/reservations/{id}/cancel` | Give notice. Returns `lastDay`, the reservation's `noticeLastDay` at that moment |
| `GET /api/v1/compute/reservations/{id}/ssh-keys` | `sshKeys` |
| `POST /api/v1/compute/reservations/{id}/ssh-keys` | Add a key: `{ "name", "publicKey" }` |
| `DELETE /api/v1/compute/reservations/{id}/ssh-keys/{keyId}` | Remove a key |

`monthlyCents` is `null` unless the key's owner is an organization admin.

| Status | Meaning |
| :- | :- |
| `400` | A field is missing or invalid. The message names it. |
| `401` | Missing or invalid API key. |
| `403` | The account is outside the preview, the key is a personal key, or a write was sent with a key whose owner is not an organization admin. |
| `404` | No such reservation, key or offer in this organization. Another organization's id also returns `404`. |
| `409` | The order cannot be made as sent: not enough free nodes on those dates, an unpaid reservation already held, a changed price, or a duplicate key. The message says which. Notice is not refused for timing; it returns `409` only on a reservation that has already ended or a cluster Morph set up under a contract. |
| `502` | The nodes were reserved but the bank payment page could not be created. The body carries `reservationId`. Pay the open invoice in the dashboard; do not reserve again. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.