Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).
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.
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.
export UKIYO_KEY='<data.token from above>'
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:
curl -s -i -X POST '<paymentMethods[] url where method=base>' \ -H "X-Ukiyo-Api-Key: $UKIYO_KEY" -H 'Content-Type: application/json' -d '{}'
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:
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.
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
curl -s -X POST https://pay.u-kiyo.ai/api/v1/deployments/<deploymentId>/credentials/reveal \ -H "Authorization: Bearer $UKIYO_KEY"
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.
Expect something like NVIDIA GeForce RTX 4090, 595.99.02 and 2.14.1+cu130 13.0 True.
8. Terminate
curl -s -X POST https://pay.u-kiyo.ai/api/v1/deployments/<deploymentId>/terminate \ -H "Authorization: Bearer $UKIYO_KEY"
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
code
meaning
TERMS_ACCEPTANCE_REQUIRED
send termsAcceptance with "accepted": true
INSUFFICIENT_BALANCE
the message states the exact shortfall and what ten minutes costs
NO_SAFE_OFFER
no eligible machine for that type right now; try another type or retry
PURCHASES_PAUSED
new rentals are temporarily paused; nothing was charged
IDEMPOTENCY_CONFLICT
the same key was reused with different parameters
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:
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
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ukiyo","description":"Rent GPU compute with a prepaid budget.","colors":{"primary":"#2563eb","light":"#60a5fa","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4","dark":"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4","href":"https://u-kiyo.ai"},"favicon":"https://mintcdn.com/ukiyo/Ck2-bRAHJw3Q3R22/favicon.png?fit=max\u0026auto=format\u0026n=Ck2-bRAHJw3Q3R22\u0026q=85\u0026s=390db0720dcc7dba3953239ac0d1273a","navbar":{"links":[{"href":"mailto:support@u-kiyo.ai","label":"Support"}],"primary":{"type":"button","label":"Launch Telegram","href":"https://t.me/UkiyoComputeBot"}},"footer":{"socials":{"github":"https://github.com/ukiyocompute","x":"https://x.com/ukiyocompute","telegram":"https://t.me/+zM445tmt5EAyNTNh","linkedin":"https://www.linkedin.com/company/ukiyo-compute","website":"https://u-kiyo.ai"},"links":[{"header":"Community","items":[{"label":"GitHub","href":"https://github.com/ukiyocompute"},{"label":"Hugging Face","href":"https://huggingface.co/UkiyoCompute"},{"label":"ModelScope","href":"https://www.modelscope.cn/organization/UkiyoCompute"},{"label":"X","href":"https://x.com/ukiyocompute"},{"label":"Telegram","href":"https://t.me/+zM445tmt5EAyNTNh"},{"label":"Substack","href":"https://ukiyocompute.substack.com/"},{"label":"LinkedIn","href":"https://www.linkedin.com/company/ukiyo-compute"}]},{"header":"For AI agents","items":[{"label":"llms-full.txt","href":"https://u-kiyo.ai/llms-full.txt"},{"label":"llms.txt","href":"https://u-kiyo.ai/llms.txt"}]},{"header":"Ukiyo","items":[{"label":"Website","href":"https://u-kiyo.ai"},{"label":"Terms","href":"https://pay.u-kiyo.ai/terms"},{"label":"Privacy","href":"https://pay.u-kiyo.ai/privacy"}]}]},"seo":{"indexing":"all"},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://u-kiyo.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ukiyocompute"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ukiyo","hasAudioNarration":false,"actualSubdomain":"ukiyo","customDomains":["docs.u-kiyo.ai"],"gitSource":{"type":"github","owner":"ukiyocompute","repo":"ukiyo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afcac86f065bd8dc07258f0","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":22},{"language":"default","tag":"Agents","count":10},{"language":"default","tag":"Renting","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Guides","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"connect/api","slug":"/connect/api","pageMetadata":{"title":"HTTP API","description":"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/api"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Everything below is copy-paste. Base URL is `,_jsx(_components.code,{children:`https://pay.u-kiyo.ai`}),`. You need `,_jsx(_components.code,{children:`curl`}),` and a shell.`]}),`\n`,_jsxs(_components.p,{children:[`An account-balance rental is charged at the `,_jsx(_components.strong,{children:`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 `,_jsx(_components.strong,{children:`$0.00`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`python3`}),` and `,_jsx(_components.code,{children:`python`}),` run PyTorch.`]}),` On the instance, `,_jsx(_components.code,{children:`python3`}),`, `,_jsx(_components.code,{children:`python`}),`, `,_jsx(_components.code,{children:`pip`}),` and `,_jsx(_components.code,{children:`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: `,_jsx(_components.code,{children:`ssh host python3 -c \"import torch; print(torch.cuda.is_available())\"`}),` prints `,_jsx(_components.code,{children:`True`}),`. The interpreter itself is `,_jsx(_components.code,{children:`/venv/main/bin/python`}),`, also returned as `,_jsx(_components.code,{children:`pythonPath`}),` in the rental status. Do not build a new environment to get PyTorch, and do not call `,_jsx(_components.code,{children:`/usr/bin/python3`}),` or `,_jsx(_components.code,{children:`/opt/miniforge3`}),` directly: they have no torch.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`1-read-the-current-terms`,children:`1. Read the current Terms`}),`\n`,_jsx(_components.p,{children:`Signup and funding both require you to state which Terms version you accepted. Never hard-code it; read it.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/terms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`printf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '%s'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import sys,json;print(json.load(sys.stdin)['data']['version'])\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMS_SHA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`printf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '%s'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import sys,json;print(json.load(sys.stdin)['data']['sha256'])\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $TERMS_SHA`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The response shape is `,_jsx(_components.code,{children:`{\"data\":{\"version\":\"\u003cdate>\",\"url\":\"https://u-kiyo.ai/terms/\",\"sha256\":\"\u003c64 hex>\"}}`}),`. The version changes when the Terms change, so always read it; the commands below reuse the two variables.`]}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.a,{href:`https://u-kiyo.ai/terms/`,children:`the Terms`}),` and `,_jsx(_components.a,{href:`https://u-kiyo.ai/privacy/`,children:`Privacy notice`}),` before continuing.`]}),`\n`,_jsx(Heading,{level:`2`,id:`2-create-an-account-and-an-agent-key`,children:`2. Create an account and an agent key`}),`\n`,_jsx(_components.p,{children:`No email, no browser, no Telegram. One request.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/signup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: $(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`uuidgen`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`termsAcceptance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`accepted`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:true,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`sha256`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_SHA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`maxPerRentalMinor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:500,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`budgetLimitMinor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:50000,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`maxConcurrentDeployments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:1}\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The response contains `,_jsx(_components.code,{children:`data.token`}),`. `,_jsx(_components.strong,{children:`That agent key is shown once and cannot be recovered.`}),` Store it securely and never print it into a shared log. It carries `,_jsx(_components.code,{children:`read`}),`, `,_jsx(_components.code,{children:`rent`}),`, `,_jsx(_components.code,{children:`manage`}),` and `,_jsx(_components.code,{children:`billing`}),` scopes, bounded by the spending caps you just set.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'\u003cdata.token from above>'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`termsAcceptance`}),` must include `,_jsx(_components.code,{children:`\"accepted\": true`}),` or signup fails with `,_jsx(_components.code,{children:`TERMS_ACCEPTANCE_REQUIRED`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-fund-the-account-with-usdc-on-base-x402`,children:`3. Fund the account with USDC on Base (x402)`}),`\n`,_jsxs(_components.p,{children:[`Minimum `,`$5.00, maximum $`,`500.00. Amounts are in cents (`,_jsx(_components.code,{children:`amountMinor`}),`).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/billing/machine-topups`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: fund-001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`amountMinor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:500,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`termsAcceptance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`accepted`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:true,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`sha256`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_SHA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}}\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`data.topUpId`}),` and `,_jsx(_components.code,{children:`data.paymentMethods[]`}),`. Each entry has `,_jsx(_components.code,{children:`method`}),`, `,_jsx(_components.code,{children:`protocol`}),` and `,_jsx(_components.code,{children:`url`}),`. Enabled rails are `,_jsx(_components.strong,{children:`Base USDC via x402`}),`, `,_jsx(_components.strong,{children:`Solana USDC via MPP`}),` and `,_jsx(_components.strong,{children:`Tempo USDC.e via MPP`}),`. They all fund the same balance. Use the `,_jsx(_components.code,{children:`url`}),` exactly as given; never pay an address you derived yourself.`]}),`\n`,_jsx(_components.p,{children:`Request the Base challenge:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -i`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003cpaymentMethods[] url where method=base>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Ukiyo-Api-Key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You get `,_jsx(_components.code,{children:`HTTP 402`}),` with a `,_jsx(_components.code,{children:`payment-required`}),` header: base64 JSON containing `,_jsx(_components.code,{children:`x402Version: 2`}),` and `,_jsx(_components.code,{children:`accepts[0]`}),` with `,_jsx(_components.code,{children:`scheme: \"exact\"`}),`, `,_jsx(_components.code,{children:`amount`}),` in 6-decimal USDC (`,_jsx(_components.code,{children:`\"5000000\"`}),` is $5.00), `,_jsx(_components.code,{children:`asset`}),`, `,_jsx(_components.code,{children:`network: \"eip155:8453\"`}),`, `,_jsx(_components.code,{children:`payTo`}),` and `,_jsx(_components.code,{children:`maxTimeoutSeconds`}),`. Sign that `,_jsx(_components.code,{children:`TransferWithAuthorization`}),` with any standard x402 v2 client, then retry `,_jsx(_components.strong,{children:`the same URL`}),` with the signed payload in the `,_jsx(_components.code,{children:`PAYMENT-SIGNATURE`}),` header and the same `,_jsx(_components.code,{children:`X-Ukiyo-Api-Key`}),`. Do not use `,_jsx(_components.code,{children:`Authorization: Payment`}),` on Base; that form is for the MPP rails.`]}),`\n`,_jsxs(_components.p,{children:[`If you get `,_jsx(_components.code,{children:`202`}),` with `,_jsx(_components.code,{children:`settlementPending: true`}),`, `,_jsx(_components.strong,{children:`do not pay again`}),`. Poll instead:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/billing/machine-topups/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`topUpI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/billing/balance`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keep the original signed payment for retries; reuse the same `,_jsx(_components.code,{children:`Idempotency-Key`}),`. A verified payment is credited exactly once even if reconciliation lands late.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Paying by card instead:`}),` `,_jsx(_components.code,{children:`POST /api/v1/billing/topups`}),` with `,_jsx(_components.code,{children:`{\"amountMinor\":500}`}),` returns a `,_jsx(_components.code,{children:`checkoutUrl`}),` for a human to open. The x402 path above needs no human.`]}),`\n`,_jsx(_components.p,{children:`Confirm the money arrived:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/billing/balance`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"availableMinor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"frozen\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`4-choose-a-gpu-type`,children:`4. Choose a GPU type`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/offers`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This endpoint needs no key. Each entry is a `,_jsx(_components.strong,{children:`GPU type`}),`, not a single machine:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"gpuModel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RTX4090\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NVIDIA RTX 4090\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"gpuCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"vramGb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`24`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pricePerHourMinor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`84`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"availableOffers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"selection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GPU_TYPE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"minimumCreditMinor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`14`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hourlyPriceMinor`}),` is cents per hour (`,_jsx(_components.code,{children:`pricePerHourMinor`}),` is the older name for the same value; both are returned). The values shown are `,_jsx(_components.strong,{children:`examples only`}),` — in this one, 84 means $0.84/h; live prices move. `,_jsx(_components.code,{children:`minimumCreditMinor`}),` is the balance you need to start: ten minutes at that price. `,_jsx(_components.code,{children:`availableOffers`}),` is how many eligible machines back that type. You pick the type; Ukiyo picks the machine.`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-rent-by-gpu-type`,children:`5. Rent by GPU type`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/rentals`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: rent-001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"gpuModel\":\"RTX 4090\",\"gpuCount\":1}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keep `,_jsx(_components.code,{children:`data.rentalId`}),` and `,_jsx(_components.code,{children:`data.deploymentId`}),`. Supported counts are 1, 2, 4 and 8. You may add `,_jsx(_components.code,{children:`\"maxHourlyPriceMinor\"`}),` to cap the price; omit it and Ukiyo uses the listed price for the type. `,_jsxs(_components.strong,{children:[`Reuse the same `,_jsx(_components.code,{children:`Idempotency-Key`}),` on any retry`]}),` — a repeated key returns the original rental instead of renting twice.`]}),`\n`,_jsxs(_components.p,{children:[`Poll until `,_jsx(_components.code,{children:`ACTIVE`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/rentals/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`rentalI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data.status`}),` moves through `,_jsx(_components.code,{children:`PROVISIONING`}),` to `,_jsx(_components.code,{children:`ACTIVE`}),`, usually `,_jsx(_components.strong,{children:`1 to 4 minutes`}),` and at most `,_jsx(_components.strong,{children:`15`}),`: Ukiyo tries up to three hosts. If none delivers within 15 minutes, Ukiyo fails the rental itself and charges `,_jsx(_components.strong,{children:`$0.00`}),` — keep polling; there is no need to cancel. `,_jsx(_components.code,{children:`ACTIVE`}),` means the GPU is verified working and SSH is authenticated — not merely that a machine was allocated. `,_jsx(_components.code,{children:`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; `,_jsx(_components.strong,{children:`you still pay the listed price you were quoted`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`6-get-ssh-credentials`,children:`6. Get SSH credentials`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/deployments/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/credentials/reveal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`host`}),`, `,_jsx(_components.code,{children:`port`}),`, `,_jsx(_components.code,{children:`username`}),` and `,_jsx(_components.code,{children:`privateKey`}),`. When a rental is `,_jsx(_components.code,{children:`ACTIVE`}),`, its status response also carries `,_jsx(_components.code,{children:`ssh`}),` with `,_jsx(_components.code,{children:`host`}),`, `,_jsx(_components.code,{children:`port`}),` and `,_jsx(_components.code,{children:`username`}),` (no key); the private key comes only from this call. `,_jsx(_components.strong,{children:`The private key is a secret.`}),` Every reveal is audited. Write it to a `,_jsx(_components.code,{children:`0600`}),` file, never into a shared transcript or a file the user did not ask for.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`umask`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 077`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`printf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '%s\\\\n'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cprivateKey>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ukiyo-key.pem`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ssh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ukiyo-key.pem`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`por`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` IdentitiesOnly=yes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`usernam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`hos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`7-confirm-the-gpu-works`,children:`7. Confirm the GPU works`}),`\n`,_jsxs(_components.p,{children:[`PyTorch lives in the image’s virtual environment. `,_jsx(_components.code,{children:`python3`}),` works too; the full path is shown here:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nvidia-smi`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --query-gpu=name,driver_version`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format=csv,noheader`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`/venv/main/bin/python`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available())\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expect something like `,_jsx(_components.code,{children:`NVIDIA GeForce RTX 4090, 595.99.02`}),` and `,_jsx(_components.code,{children:`2.14.1+cu130 13.0 True`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`8-terminate`,children:`8. Terminate`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/deployments/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/terminate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UKIYO_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`202`}),` with `,_jsx(_components.code,{children:`accepted`}),`, `,_jsx(_components.code,{children:`status`}),` (`,_jsx(_components.code,{children:`TERMINATING`}),` or `,_jsx(_components.code,{children:`TERMINATED`}),`), `,_jsx(_components.code,{children:`chargedMinor`}),`, `,_jsx(_components.code,{children:`chargeFinal: true`}),` and `,_jsx(_components.code,{children:`currency`}),`: the charge is final in this response even while `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`TERMINATING`}),`. Read the rental again until `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`TERMINATED`}),` to confirm destruction.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors-worth-handling`,children:`Errors worth handling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`code`}),_jsx(_components.th,{children:`meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TERMS_ACCEPTANCE_REQUIRED`})}),_jsxs(_components.td,{children:[`send `,_jsx(_components.code,{children:`termsAcceptance`}),` with `,_jsx(_components.code,{children:`\"accepted\": true`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_BALANCE`})}),_jsx(_components.td,{children:`the message states the exact shortfall and what ten minutes costs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NO_SAFE_OFFER`})}),_jsx(_components.td,{children:`no eligible machine for that type right now; try another type or retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PURCHASES_PAUSED`})}),_jsx(_components.td,{children:`new rentals are temporarily paused; nothing was charged`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDEMPOTENCY_CONFLICT`})}),_jsx(_components.td,{children:`the same key was reused with different parameters`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-billing-works`,children:`How billing works`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unit:`}),` usage accrues continuously while the instance is `,_jsx(_components.code,{children:`ACTIVE`}),` (millisecond precision) at the listed hourly price. The charge is `,_jsx(_components.code,{children:`floor(hourly cents × active seconds ÷ 3600)`}),` — whole cents, `,_jsx(_components.strong,{children:`always rounded down`}),`. Example only: 109 seconds at 92¢/h is 2.79¢, charged as 2¢.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Hold versus charge:`}),` starting a rental needs ten minutes of credit at that GPU’s price (`,_jsx(_components.code,{children:`minimumCreditMinor`}),`). That amount is `,_jsx(_components.strong,{children:`held, not charged`}),`; the hold extends as you run and is released at termination. You pay only the charge above.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Final:`}),` the charge is fixed at termination (`,_jsx(_components.code,{children:`chargeFinal: true`}),`). Nothing accrues afterwards, data transfer is included, and a rental that never reaches `,_jsx(_components.code,{children:`ACTIVE`}),` costs $0.00.`]}),`\n`,_jsx(_components.li,{children:`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).`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-preinstalled`,children:`What is preinstalled`}),`\n`,_jsxs(_components.p,{children:[`The image is `,_jsx(_components.code,{children:`vastai/pytorch:cuda-13.0.3-auto`}),`. `,_jsx(_components.code,{children:`python3`}),` and `,_jsx(_components.code,{children:`python`}),` run PyTorch; the interpreter is `,_jsx(_components.code,{children:`/venv/main/bin/python`}),`. It ships CUDA 13, PyTorch 2.14.1+cu130, torchvision, numpy, pillow, requests and Jupyter. Run `,_jsx(_components.code,{children:`/venv/main/bin/pip list`}),` for the exact set.`]}),`\n`,_jsx(_components.p,{children:`For model work, install what you need first:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`/venv/main/bin/pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` transformers`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` accelerate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` diffusers`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`copying-files-off-the-machine`,children:`Copying files off the machine`}),`\n`,_jsx(_components.p,{children:`Use the same host and port as your SSH session, before you terminate:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`scp`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ukiyo-key.pem`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -P`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`por`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` root@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`hos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:/root/out.pt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./out.pt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rsync`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -av`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ssh -i ukiyo-key.pem -p \u003cport>\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` root@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`hos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:/root/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./root-copy/`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`gpu-names`,children:`GPU names`}),`\n`,_jsxs(_components.p,{children:[`Use the spaced form in requests: `,_jsx(_components.code,{children:`RTX 4090`}),`, `,_jsx(_components.code,{children:`RTX 6000 Ada`}),`, `,_jsx(_components.code,{children:`A100 PCIe`}),`, `,_jsx(_components.code,{children:`A100 SXM4`}),`. The catalogue also echoes a compact `,_jsx(_components.code,{children:`gpuModel`}),` such as `,_jsx(_components.code,{children:`RTX4090`}),` — that is a display value, not an input.`]}),`\n`,_jsx(Heading,{level:`2`,id:`where-the-price-is`,children:`Where the price is`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hourlyPriceMinor`}),` is the hourly rate, on the offer, the rental and the deployment (`,_jsx(_components.code,{children:`quote.hourlyPriceMinor`}),` and `,_jsx(_components.code,{children:`unitPriceMinor`}),` are older names for the same value). `,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`quote.totalMinor`}),` is `,_jsx(_components.code,{children:`0`}),` and that is correct`]}),`: billing is per second of `,_jsx(_components.code,{children:`ACTIVE`}),` time, so there is no prepaid total. The rental create response carries it: `,_jsx(_components.code,{children:`data.deployment.unitPriceMinor`}),` is the hourly rate in cents for the machine you were given (84 = $0.84/h). `,_jsx(_components.code,{children:`GET /api/v1/rentals/\u003crentalId>`}),` returns the same field, and `,_jsx(_components.code,{children:`chargedMinor`}),` with `,_jsx(_components.code,{children:`chargeFinal: true`}),` once the rental ends.`]}),`\n`,_jsxs(_components.p,{children:[`Every status value, the field to poll and the JSON each command returns are on `,_jsx(_components.a,{href:`/essentials/statuses`,children:`Statuses and response shapes`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Other connectors: `,_jsx(_components.a,{href:`/connect/machine-payments`,children:`x402 with no account`}),` · `,_jsx(_components.a,{href:`/connect/mcp`,children:`MCP`}),` · `,_jsx(_components.a,{href:`/connect/cli`,children:`CLI`}),` · `,_jsx(_components.a,{href:`/connect/skill`,children:`Agent Skill`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"HTTP API","description":"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Read the current Terms","slug":"1-read-the-current-terms","depth":2,"children":[]},{"title":"2. Create an account and an agent key","slug":"2-create-an-account-and-an-agent-key","depth":2,"children":[]},{"title":"3. Fund the account with USDC on Base (x402)","slug":"3-fund-the-account-with-usdc-on-base-x402","depth":2,"children":[]},{"title":"4. Choose a GPU type","slug":"4-choose-a-gpu-type","depth":2,"children":[]},{"title":"5. Rent by GPU type","slug":"5-rent-by-gpu-type","depth":2,"children":[]},{"title":"6. Get SSH credentials","slug":"6-get-ssh-credentials","depth":2,"children":[]},{"title":"7. Confirm the GPU works","slug":"7-confirm-the-gpu-works","depth":2,"children":[]},{"title":"8. Terminate","slug":"8-terminate","depth":2,"children":[]},{"title":"Errors worth handling","slug":"errors-worth-handling","depth":2,"children":[]},{"title":"How billing works","slug":"how-billing-works","depth":2,"children":[]},{"title":"What is preinstalled","slug":"what-is-preinstalled","depth":2,"children":[]},{"title":"Copying files off the machine","slug":"copying-files-off-the-machine","depth":2,"children":[]},{"title":"GPU names","slug":"gpu-names","depth":2,"children":[]},{"title":"Where the price is","slug":"where-the-price-is","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ukiyo","siteName":"Ukiyo","title":"HTTP API - Ukiyo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T19:10:05.507Z","originalFileLocation":"connect/api.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ukiyo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"HTTP API - Ukiyo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ukiyo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.u-kiyo.ai/connect/api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ukiyo.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=HTTP+API\u0026amp;description=Rent+a+GPU+end+to+end+with+plain+HTTP+requests.+No+SDK%2C+no+browser%2C+no+human.+On+the+instance%2C+python3+runs+PyTorch+%28interpreter%3A+%2Fvenv%2Fmain%2Fbin%2Fpython%29.\u0026amp;theme=4016f9d9fc63c71066ae1e3c\u0026amp;signature=a2cebaead2ce6600f59ac1e8a00f855e28c4c61df708eeb465731c3b7b5e983c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"HTTP API - Ukiyo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ukiyo.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=HTTP+API\u0026amp;description=Rent+a+GPU+end+to+end+with+plain+HTTP+requests.+No+SDK%2C+no+browser%2C+no+human.+On+the+instance%2C+python3+runs+PyTorch+%28interpreter%3A+%2Fvenv%2Fmain%2Fbin%2Fpython%29.\u0026amp;theme=4016f9d9fc63c71066ae1e3c\u0026amp;signature=a2cebaead2ce6600f59ac1e8a00f855e28c4c61df708eeb465731c3b7b5e983c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ukiyo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.u-kiyo.ai/connect/api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/connect/api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.u-kiyo.ai/#organization\",\"name\":\"Ukiyo\",\"url\":\"https://docs.u-kiyo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.u-kiyo.ai#website\",\"name\":\"Ukiyo\",\"url\":\"https://docs.u-kiyo.ai\",\"publisher\":{\"@id\":\"https://docs.u-kiyo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.u-kiyo.ai/connect/api#webpage\",\"url\":\"https://docs.u-kiyo.ai/connect/api\",\"name\":\"HTTP API\",\"description\":\"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\",\"dateModified\":\"2026-11-17T19:10:05.507Z\",\"isPartOf\":{\"@id\":\"https://docs.u-kiyo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.u-kiyo.ai/connect/api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.u-kiyo.ai/connect/api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://docs.u-kiyo.ai/connect/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTTP API\",\"item\":\"https://docs.u-kiyo.ai/connect/api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.u-kiyo.ai/connect/api#article\",\"headline\":\"HTTP API\",\"name\":\"HTTP API\",\"description\":\"Rent a GPU end to end with plain HTTP requests. No SDK, no browser, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\",\"url\":\"https://docs.u-kiyo.ai/connect/api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.u-kiyo.ai/connect/api#webpage\"},\"dateModified\":\"2026-11-17T19:10:05.507Z\",\"publisher\":{\"@id\":\"https://docs.u-kiyo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.u-kiyo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ukiyo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ukiyo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/connect/api.md","siteName":"Ukiyo","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://u-kiyo.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ukiyocompute"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Overview","href":"/get-started/introduction"},{"title":"Quickstart","href":"/get-started/quickstart"},{"title":"Pricing","href":"/get-started/pricing"},{"title":"Choosing a GPU","href":"/guides/choosing-a-gpu"}]},{"group":"Renting","pages":[{"title":"Telegram","href":"/connect/telegram"},{"title":"Billing","href":"/guides/billing"},{"title":"Instance lifecycle","href":"/guides/lifecycle"},{"title":"Credentials","href":"/guides/credentials"},{"title":"SSH","href":"/guides/ssh"},{"title":"Jupyter","href":"/guides/jupyter"}]},{"group":"Agents","pages":[{"title":"Five ways in","href":"/connect/overview"},{"title":"x402 — pay with USDC, no account","description":"Buy a GPU with a single signed USDC payment. No signup, no API key, no human. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/machine-payments"},{"title":"HTTP API","href":"/connect/api"},{"title":"MCP","description":"Run the Ukiyo MCP server locally and rent a GPU through tool calls. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/mcp"},{"title":"CLI","href":"/connect/cli"},{"title":"Agent Skill","href":"/connect/skill"},{"title":"Statuses and response shapes","href":"/essentials/statuses"},{"title":"Account funding","href":"/connect/account-funding"},{"title":"Telegram","href":"/connect/telegram"},{"title":"OpenAPI","href":"/connect/openapi"}]},{"group":"Guides","pages":[{"title":"FAQ","href":"/essentials/faq"},{"title":"Common errors","href":"/essentials/errors"},{"title":"Support","href":"/essentials/support"}]}]}]},"basePath":"","title":"HTTP API - Ukiyo","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}