Timing
ReachingACTIVE 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.statusis authoritative for the machine. It takes the deployment values above.purchase.refundStatusandpurchase.refundedMinorare authoritative for your money:SETTLEMENT_PENDING→PENDING→COMPLETED, orNOT_REQUIREDwhen the whole payment was used.- The top-level
stateis the purchase record’s coarser state (for examplePAYMENT_PENDING,PROVISIONING,PROVISIONING_FAILED,TERMINATED). It can trailpurchase.statusby one poll. Do not poll it.
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
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.totalMinoris0, and that is correct. Billing is per second ofACTIVEtime, so there is no prepaid total. The rate ishourlyPriceMinor; what you have been charged so far ischargedMinor, final oncechargeFinalistrue.quote.durationSecondsisnullfor the same reason: you did not buy a fixed duration.memoryGbis the RAM advertised for the type;deliveredMemoryGbis the RAM your container can use, measured inside it atACTIVE, and isnullbefore then. Both are GiB to one decimal.sshcarrieshost,portandusernamewhilestatusisACTIVE, and isnullotherwise. It never includes the private key: get that fromcredentials(next).
Credentials
POST /api/v1/deployments/<deploymentId>/credentials/reveal · ukiyo credentials <deploymentId> · get_deployment_credentials · scripts/ukiyo.sh credentials <deploymentId>
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>
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.accessis present only whilepurchase.statusisACTIVEand only for a GPU block. That is where SSH comes from on this path.chargedMinorandrefundedMinorare strings of cents on this path.- After a failure the response adds
purchase.failureReason,purchase.failureMessageandpurchase.hostsTried.
