Skip to main content
One page for the facts an agent needs while it waits: what each status means, which field is authoritative, and what each call returns.

Timing

Reaching ACTIVE takes usually 1 to 4 minutes and at most 15, including automatic fallback across up to three hosts. If no host delivers within 15 minutes, Ukiyo ends the rental itself and charges $0.00. Keep polling the same rental; never start a second one to replace a rental that is still PROVISIONING.

Which field to poll

Poll every 5 to 10 seconds. Stop when the value is ACTIVE or one of the final values below.

Rental status values (API, CLI, MCP)

status on a rental: When a rental is FAILED, failureReason is one of:

Deployment status values

status on a deployment (GET /api/v1/deployments/<deploymentId>, ukiyo status, get_deployment_status, and purchase.status on x402) is the machine’s own state: The rental view folds PAYMENT_CONFIRMED into PROVISIONING, and reports a failed provisioning as FAILED with a failureReason. The deployment view and the x402 purchase.status show PROVISIONING_FAILED itself.

x402 status values

The x402 status response has two levels:
  • purchase.status is authoritative for the machine. It takes the deployment values above.
  • purchase.refundStatus and purchase.refundedMinor are authoritative for your money: SETTLEMENT_PENDING → PENDING → COMPLETED, or NOT_REQUIRED when the whole payment was used.
  • The top-level state is the purchase record’s coarser state (for example PAYMENT_PENDING, PROVISIONING, PROVISIONING_FAILED, TERMINATED). It can trail purchase.status by one poll. Do not poll it.
On failure, purchase.failureReason is NO_HOST_DELIVERED, JOB_TIMED_OUT or JOB_FAILED, with purchase.failureMessage and purchase.hostsTried. See x402.

Response shapes

The HTTP API wraps every result as {"data": {...}, "meta": {...}}. The CLI prints the contents of data at the top level. MCP tools return the API body as JSON text, with the data wrapper. The Skill script prints the CLI form when it delegates to the CLI and the API form when it calls the API with UKIYO_API_TOKEN. Values below are examples only.

List offers

GET /api/v1/offers · ukiyo offers --json · list_compute_offers · scripts/ukiyo.sh offers
The hourly price of a listed type is hourlyPriceMinor, in cents for the whole instance (pricePerHourMinor is the older name; both are returned). vramGb and memoryGb are the guaranteed minimum per GPU and for RAM across the hosts Ukiyo may assign; the machine you get may have more. RAM figures are GiB to one decimal.

Rent, and rental status

POST /api/v1/rentals · GET /api/v1/rentals/<rentalId> · ukiyo rent · ukiyo rental <rentalId> · rent_gpu · get_rental_status
  • quote.totalMinor is 0, and that is correct. Billing is per second of ACTIVE time, so there is no prepaid total. The rate is hourlyPriceMinor; what you have been charged so far is chargedMinor, final once chargeFinal is true.
  • quote.durationSeconds is null for the same reason: you did not buy a fixed duration.
  • memoryGb is the RAM advertised for the type; deliveredMemoryGb is the RAM your container can use, measured inside it at ACTIVE, and is null before then. Both are GiB to one decimal.
  • ssh carries host, port and username while status is ACTIVE, and is null otherwise. It never includes the private key: get that from credentials (next).

Credentials

POST /api/v1/deployments/<deploymentId>/credentials/reveal · ukiyo credentials <deploymentId> · get_deployment_credentials · scripts/ukiyo.sh credentials <deploymentId>
Only works while the deployment is ACTIVE; in any other status it returns CREDENTIALS_NOT_FOUND. The private key is a secret and every reveal is audited. The CLI prints privateKey as [REDACTED] unless you pass --save-key <path> (recommended) or --reveal.

Terminate

POST /api/v1/deployments/<deploymentId>/terminate · ukiyo terminate <deploymentId> --yes · terminate_deployment · scripts/ukiyo.sh terminate <deploymentId>
The API answers 202: termination is accepted, status is TERMINATING or TERMINATED, and chargedMinor is already final. Terminating again returns the same values. To confirm destruction, read the rental again until status is TERMINATED, or use ukiyo terminate <deploymentId> --yes --wait --json, which waits and prints the final deployment.

Balance

GET /api/v1/billing/balance · ukiyo balance --json · get_account_balance
ledger holds the 20 most recent entries. Add ?ledgerLimit=<0 to 100> to change that; 0 returns the balance with an empty ledger.

x402 purchase status and terminate

POST /api/machine/quotes/<purchaseId>/actions/status and POST /api/machine/quotes/<purchaseId>/actions/terminate return the same shape:
  • purchase.access is present only while purchase.status is ACTIVE and only for a GPU block. That is where SSH comes from on this path.
  • chargedMinor and refundedMinor are strings of cents on this path.
  • After a failure the response adds purchase.failureReason, purchase.failureMessage and purchase.hostsTried.