Skip to main content
POST
Reserve compute

Overview

Holds whole nodes for the key’s organization; the write behind morph compute reserve. The response carries checkoutUrl, the bank payment page for the first invoice. This call charges nothing. The hold is released if the invoice is not paid in time. On 502 the nodes are held but the payment page was not created: pay the open invoice in the dashboard and do not reserve again. Send expectedMonthlyCents to have the order refused if the price changed since you read the offer. Organization keys require an organization admin.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Body

application/json

The offer, size, start date and first term, with the terms accepted.

A reservation to make. Carries no price: the server prices it.

poolId
string<uuid>
required

An offer id from GET /api/v1/compute/offers.

Example:

"5d0c1e7a-3b62-4f19-a8d4-0e9b7c21f6a3"

nodes
integer
required

Whole nodes, up to the offer’s maxNodesPerOrder.

Required range: 1 <= x <= 1000
Example:

1

startsOn
string
required

First day as YYYY-MM-DD, from today (UTC) to 90 days out.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2027-01-04"

months
integer
required

First term in months, from the offer’s minTermMonths to 12. The reservation then renews monthly.

Required range: 1 <= x <= 12
Example:

1

acceptedTerms
enum<boolean>
required

Must be true: acceptance of the terms (1 month minimum, prepaid monthly in advance, renews monthly until notice, whole nodes). Recorded on the reservation.

Available options:
true
Example:

true

billingEmail
string

Where invoices go. Defaults to the key owner’s email.

Maximum string length: 254
Example:

"billing@example.com"

sshKey
object

The first key on the nodes. More are added through the SSH key routes.

Example:
expectedMonthlyCents
integer

The first month you expect to pay, in US cents: the offer’s firstMonthCentsByNodes entry for this many nodes. When sent, the order is refused with 409 if the price differs. The example is illustrative.

Required range: x >= 1
Example:

584000

Response

Nodes held. Pay at checkoutUrl.

A held reservation and where to pay for it.

reservation
object
required

The new reservation, awaiting_payment.

Example:
checkoutUrl
string<uri>
required

Bank payment page for the first invoice. Open it in a browser.

Example:

"https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5F6g7H8i9J0"