Skip to main content
POST
Place a bid
CLI equivalent, a market bid for nodes: ornn market bid --gpu-slug <gpu-slug> --nodes 2 . Pass --idempotency-key to make a retry safe. Send a new Idempotency-Key for each bid. If the response is lost, retry with the same key and body: you get the original order back instead of a second bid. See Rent on Spot. To buy CPU capacity, bid on the cpu book. CPU capacity is sold in whole cores of 2 vCPUs, so there gpus counts vCPUs and must be at least 2 and even; any other count is refused with cpu_quantity_invalid.

Authorizations

Authorization
string
header
required

Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.

Headers

Idempotency-Key
string
required

Required. A unique key of 1 to 200 characters for this operation, such as a UUID. Retrying with the same key and the same body returns the original result with HTTP 200 instead of creating a second one. The key is remembered for 24 hours per organization; reusing it for a different request returns 409 idempotency_conflict. A missing key returns 400 idempotency_key_required.

Required string length: 1 - 200

Body

application/json

Send nodes with orderType market; on the cpu book, gpus (vCPUs) instead is allowed.

gpuSlug
string
required

Catalog GPU slug of the order book, or cpu for CPU capacity.

orderType
enum<string>
required

limit takes capacity at or below your price and rests the rest until it fills or you cancel. market takes what is for sale now and cancels the rest.

Available options:
limit,
market
saleType
enum<string>
default:spot

spot: a reservation on the node can end the VM. on-demand: only a stop or the listing's end ends it.

Available options:
spot,
on-demand
region
string

A region with an order book, for example us-east-11 (see GET /v1/markets/books), or a pattern in which * stands for any characters, such as us-* to fill at any US location, including locations that open while a limit bid rests. Separate entries with commas to combine them (us-*,other-8). Omit to fill at any location. A region without a book, or a pattern that matches none, is refused with unknown_region.

gpus
integer

The cpu book only, in vCPUs, at least 2 and even, as CPU capacity is sold in whole cores of 2 vCPUs (cpu_quantity_invalid otherwise); GPU books refuse it with whole_nodes_only. Send this or nodes.

Required range: x >= 1
nodes
integer

Whole machines with their full GPU or vCPU count. Capacity smaller than one whole machine is skipped. Market orders only (nodes_need_market_order on a limit). Send this or gpus.

Required range: x >= 1
nodeSelections
object[]

Market node bids only. Omit the top-level region. Each region/size/rate tuple must be unique and quantities must sum to nodes. Only exact matches fill; unavailable selections stay unfilled.

Required array length: 1 - 64 elements
pricePerGpuHourMicroUsd
integer<int64>

Required for limit bids; omit for market bids. The most you pay per GPU-hour (vCPU-hour on the cpu book), fees included, in integer micro-USD (1000000 is $1.00).

Required range: x >= 1
diskId
string<uuid>

The disk every VM boots, from your disks or Ornn's. Omit to boot your newest disk, else Ornn's newest.

Response

A retry with the same Idempotency-Key and body; returns the original order's current state.

order
object
required