Skip to main content
Everything below is copy-paste. Base URL is https://pay.u-kiyo.ai. You need curl and a shell. An account-balance rental is charged at the listed hourly price multiplied by the time the instance is ACTIVE, rounded down to the cent. Data transfer is included. Nothing accrues after termination, and the charge shown at termination is final. A rental that never delivers a working instance costs $0.00.
python3 and python run PyTorch. On the instance, python3, python, pip and pip3 all use the image’s PyTorch environment (torch 2.14.1 with CUDA 13), in an interactive shell and over non-interactive SSH alike: ssh host python3 -c "import torch; print(torch.cuda.is_available())" prints True. The interpreter itself is /venv/main/bin/python, also returned as pythonPath in the rental status. Do not build a new environment to get PyTorch, and do not call /usr/bin/python3 or /opt/miniforge3 directly: they have no torch.

1. Read the current Terms

Signup and funding both require you to state which Terms version you accepted. Never hard-code it; read it.
The response shape is {"data":{"version":"<date>","url":"https://u-kiyo.ai/terms/","sha256":"<64 hex>"}}. The version changes when the Terms change, so always read it; the commands below reuse the two variables. Read the Terms and Privacy notice before continuing.

2. Create an account and an agent key

No email, no browser, no Telegram. One request.
The response contains data.token. That agent key is shown once and cannot be recovered. Store it securely and never print it into a shared log. It carries read, rent, manage and billing scopes, bounded by the spending caps you just set.
termsAcceptance must include "accepted": true or signup fails with TERMS_ACCEPTANCE_REQUIRED.

3. Fund the account with USDC on Base (x402)

Minimum $5.00, maximum $500.00. Amounts are in cents (amountMinor).
Read data.topUpId and data.paymentMethods[]. Each entry has method, protocol and url. Enabled rails are Base USDC via x402, Solana USDC via MPP and Tempo USDC.e via MPP. They all fund the same balance. Use the url exactly as given; never pay an address you derived yourself. Request the Base challenge:
You get HTTP 402 with a payment-required header: base64 JSON containing x402Version: 2 and accepts[0] with scheme: "exact", amount in 6-decimal USDC ("5000000" is $5.00), asset, network: "eip155:8453", payTo and maxTimeoutSeconds. Sign that TransferWithAuthorization with any standard x402 v2 client, then retry the same URL with the signed payload in the PAYMENT-SIGNATURE header and the same X-Ukiyo-Api-Key. Do not use Authorization: Payment on Base; that form is for the MPP rails. If you get 202 with settlementPending: true, do not pay again. Poll instead:
Keep the original signed payment for retries; reuse the same Idempotency-Key. A verified payment is credited exactly once even if reconciliation lands late. Paying by card instead: POST /api/v1/billing/topups with {"amountMinor":500} returns a checkoutUrl for a human to open. The x402 path above needs no human. Confirm the money arrived:

4. Choose a GPU type

This endpoint needs no key. Each entry is a GPU type, not a single machine:
hourlyPriceMinor is cents per hour (pricePerHourMinor is the older name for the same value; both are returned). The values shown are examples only — in this one, 84 means $0.84/h; live prices move. minimumCreditMinor is the balance you need to start: ten minutes at that price. availableOffers is how many eligible machines back that type. You pick the type; Ukiyo picks the machine.

5. Rent by GPU type

Keep data.rentalId and data.deploymentId. Supported counts are 1, 2, 4 and 8. You may add "maxHourlyPriceMinor" to cap the price; omit it and Ukiyo uses the listed price for the type. Reuse the same Idempotency-Key on any retry — a repeated key returns the original rental instead of renting twice. Poll until ACTIVE:
data.status moves through PROVISIONING to ACTIVE, usually 1 to 4 minutes and at most 15: Ukiyo tries up to three hosts. If none delivers within 15 minutes, Ukiyo fails the rental itself and charges $0.00 — keep polling; there is no need to cancel. ACTIVE means the GPU is verified working and SSH is authenticated — not merely that a machine was allocated. FAILED means nothing was delivered and you were charged nothing; rent again. If the first host fails, Ukiyo tries up to two more of the same type, including hosts listed at up to 160% of your price; you still pay the listed price you were quoted.

6. Get SSH credentials

Returns host, port, username and privateKey. When a rental is ACTIVE, its status response also carries ssh with host, port and username (no key); the private key comes only from this call. The private key is a secret. Every reveal is audited. Write it to a 0600 file, never into a shared transcript or a file the user did not ask for.

7. Confirm the GPU works

PyTorch lives in the image’s virtual environment. python3 works too; the full path is shown here:
Expect something like NVIDIA GeForce RTX 4090, 595.99.02 and 2.14.1+cu130 13.0 True.

8. Terminate

Irreversible: it destroys everything on the instance. Copy your work off first. Billing stops at termination and the figure you then see is final. The response is 202 with accepted, status (TERMINATING or TERMINATED), chargedMinor, chargeFinal: true and currency: the charge is final in this response even while status is TERMINATING. Read the rental again until status is TERMINATED to confirm destruction.

Errors worth handling

How billing works

  • Unit: usage accrues continuously while the instance is ACTIVE (millisecond precision) at the listed hourly price. The charge is floor(hourly cents × active seconds ÷ 3600) — whole cents, always rounded down. Example only: 109 seconds at 92¢/h is 2.79¢, charged as 2¢.
  • Hold versus charge: starting a rental needs ten minutes of credit at that GPU’s price (minimumCreditMinor). That amount is held, not charged; the hold extends as you run and is released at termination. You pay only the charge above.
  • Final: the charge is fixed at termination (chargeFinal: true). Nothing accrues afterwards, data transfer is included, and a rental that never reaches ACTIVE costs $0.00.
  • On the x402 no-account path the payment is a cap you authorize; the unused remainder returns to the paying wallet in USDC automatically, usually 7 to 12 minutes after termination (allow up to 30).

What is preinstalled

The image is vastai/pytorch:cuda-13.0.3-auto. python3 and python run PyTorch; the interpreter is /venv/main/bin/python. It ships CUDA 13, PyTorch 2.14.1+cu130, torchvision, numpy, pillow, requests and Jupyter. Run /venv/main/bin/pip list for the exact set. For model work, install what you need first:

Copying files off the machine

Use the same host and port as your SSH session, before you terminate:

GPU names

Use the spaced form in requests: RTX 4090, RTX 6000 Ada, A100 PCIe, A100 SXM4. The catalogue also echoes a compact gpuModel such as RTX4090 — that is a display value, not an input.

Where the price is

hourlyPriceMinor is the hourly rate, on the offer, the rental and the deployment (quote.hourlyPriceMinor and unitPriceMinor are older names for the same value). quote.totalMinor is 0 and that is correct: billing is per second of ACTIVE time, so there is no prepaid total. The rental create response carries it: data.deployment.unitPriceMinor is the hourly rate in cents for the machine you were given (84 = $0.84/h). GET /api/v1/rentals/<rentalId> returns the same field, and chargedMinor with chargeFinal: true once the rental ends. Every status value, the field to poll and the JSON each command returns are on Statuses and response shapes. Other connectors: x402 with no account · MCP · CLI · Agent Skill