Create & manage rentals
Start a rental (open-ended or time-limited, optionally with an app such as ComfyUI, Open WebUI or Unsloth Studio), poll for its connection details, list your rentals, check your balance, and destroy a rental.
This page covers the full lifecycle. All endpoints need a key with the rental scope (except GET /balance, which any active key can call).
Create a rental
POST /rentals starts a GPU. It returns immediately with status: "pending" — the GPU is still provisioning, so there's no connection URL yet. Poll GET /rentals/{id} for that.
curl -X POST https://paraloncloud.com/api/v1/rentals \
-H "Authorization: Bearer prlc_your_key_here" \
-H "Idempotency-Key: my-run-001" \
-H "Content-Type: application/json" \
-d '{"node_id": "<from /gpus>", "type": "jupyter"}'
Body
| Field | Required | Meaning |
|---|---|---|
node_id | yes | The node to rent, from GET /gpus. Must be a valid node UUID. |
type | no | "jupyter" (default): a full JupyterLab environment in the browser. "ssh": a root shell over SSH with the account's saved keys; only on a node whose /gpus entry has "ssh": true. See Over SSH. |
template | no | An app to install and start on the machine, by slug from GET /templates: "comfyui", "openwebui" or "unsloth". Only on a node whose /gpus entry lists it in templates. The rental is JupyterLab or SSH as type says, with the app on top. See With an app. |
hours | no | Whole hours (1–720). Sets an auto-stop: the rental stops itself after this long. Omit for an open-ended rental that runs until you stop it. |
name | no | A label for your own reference. |
Idempotency
Send an Idempotency-Key header on create. If the request is retried with the same key, you get back the same rental instead of accidentally starting (and paying for) a second GPU.
Response
{
"rental_id": "276bffe6-8ade-4ca2-82af-f31f7a5e76c7",
"status": "pending",
"node_id": "a13ee904-...",
"type": "jupyter",
"price_per_hour": 0.12,
"expires_at": "2026-07-13T00:10:53Z",
"message": "Rental is provisioning. Poll GET /rentals/{rental_id} until connection_pending is false for connection details."
}
Open-ended vs time-limited
- Open-ended (no
hours): runs until youDELETEit. Bills per minute the whole time. - Time-limited (
hours: N): auto-stops after N hours.expires_atis set, and a server-side reaper stops it at that time using the same path as a manual destroy. Great for jobs that shouldn't outlive their budget if your script crashes.
Get connection details (poll)
GET /rentals/{id} returns the current status and, once running, the connection details.
curl https://paraloncloud.com/api/v1/rentals/<rental_id> \
-H "Authorization: Bearer prlc_your_key_here"
{
"rental_id": "276bffe6-...",
"status": "running",
"connection": {
"access_url": "https://<subdomain>.trycloudflare.com?token=<token>",
"tunnel_url": "https://<subdomain>.trycloudflare.com",
"jupyter_token": "<token>"
},
"price_per_hour": 0.12,
"expires_at": "2026-07-13T00:10:53Z",
"spot": false,
"reclaim_at": null
}
For an SSH rental, connection holds the command instead of a URL and token:
"connection": {
"ssh_command": "ssh -o ProxyCommand=\"cloudflared access ssh --hostname %h\" [email protected]",
"ssh_host": "r-276bffe68ade4ca282af.paraloncloud.com",
"ssh_user": "root"
}
Poll every few seconds until connection_pending is false — the connection URL comes up a few seconds after status becomes "running", so running with an empty connection is normal, not a failure. A rental you don't own returns 404 — the same as one that doesn't exist.
On a rental of a spot node ("spot": true), reclaim_at is set when the node's owner takes it back: the rental stops at that time, two minutes after the notice. Billing runs until it stops. Keep polling during a spot rental if your job needs to react, for example to write a checkpoint. The same two fields appear on each rental in GET /rentals.
Over SSH
An SSH rental ("type": "ssh") runs an SSH server instead of JupyterLab. It logs in with keys only: every public key saved on the account goes onto the machine when it starts, so a key saved later is not on a running rental.
Keys. Saved for the person who made the API key, the same keys as on the SSH keys page:
# Save one: the line of your .pub file, never the private key
curl -X POST https://paraloncloud.com/api/v1/ssh-keys \
-H "Authorization: Bearer prlc_your_key_here" -H "Content-Type: application/json" \
-d '{"public_key": "ssh-ed25519 AAAA... you@laptop", "name": "laptop"}'
# List them (id, name, type, fingerprint)
curl https://paraloncloud.com/api/v1/ssh-keys -H "Authorization: Bearer prlc_your_key_here"
# Delete one
curl -X DELETE https://paraloncloud.com/api/v1/ssh-keys/<id> -H "Authorization: Bearer prlc_your_key_here"
ed25519, ecdsa and RSA keys of 2048 bits or more are accepted, up to 20 per person. No key yet: ssh-keygen -t ed25519.
Connecting. Install cloudflared once (brew install cloudflared, winget install --id Cloudflare.cloudflared, or the Linux binary), then run connection.ssh_command. Add -i path/to/private_key when the key is not in ~/.ssh. scp, rsync -e 'ssh -o ProxyCommand="cloudflared access ssh --hostname %h"' and VS Code Remote-SSH work the same way. The shell starts in /workspace, as root in the container.
With an app
A rental can start with an application installed and running, ready to open in the browser: today ComfyUI (image and video generation) , Open WebUI with Ollama (chat with open models on the GPU) and Unsloth Studio (fine-tuning open models). It is the same rental (JupyterLab or SSH, the same price, billed from the moment JupyterLab or SSH answers) with the app set up on top, usually within a minute or two (the install downloads at the machine's own speed) after that. The versions are ones we tested and pinned; the app starts empty, and you download the models you need (ComfyUI-Manager is on; in Open WebUI you pull models from Ollama inside it, and Ollama answers on localhost:11434 in the terminal or through an SSH tunnel). Walkthroughs: Rent a GPU for ComfyUI (which GPU fits Flux, SDXL and Wan) , Open WebUI and Ollama on a cloud GPU (which GPU fits which model, measured on an RTX 4090) and Fine-tune an LLM on a cloud GPU with Unsloth Studio.
What there is. GET /templates lists the apps, the version a rental gets, and what a machine needs to run it:
curl https://paraloncloud.com/api/v1/templates -H "Authorization: Bearer prlc_your_key_here"
{
"templates": [
{
"slug": "comfyui",
"name": "ComfyUI",
"version": "v0.43.0",
"description": "Node-based image and video generation: Flux, SDXL, Wan. Starts empty with ComfyUI-Manager; download the models you need.",
"min_vram_gb": 16,
"min_disk_gb": 50,
"min_compute_cap": null
}
]
}
min_vram_gb is per GPU: the app runs on one card, so two 8 GB cards do not make 16. You do not need to check it yourself: each node in GET /gpus lists the apps it can run in templates.
Start it.
curl -X POST https://paraloncloud.com/api/v1/rentals \
-H "Authorization: Bearer prlc_your_key_here" -H "Content-Type: application/json" \
-d '{"node_id": "<a node whose templates has comfyui>", "template": "comfyui"}'
Open it. GET /rentals/{id} has an app object from the start, and connection.app_url once the app answers:
{
"rental_id": "cce0070d-...",
"status": "running",
"connection": {
"access_url": "https://r-cce0070d7d6b42d092a7.paraloncloud.com?token=<token>",
"app_url": "https://a-cce0070d7d6b42d092a7.paraloncloud.com/?token=<app token>"
},
"app": {
"template": "comfyui",
"name": "ComfyUI",
"version": "v0.43.0",
"state": "ready",
"step": "ComfyUI v0.43.0 is running",
"url": "https://a-cce0070d7d6b42d092a7.paraloncloud.com/?token=<app token>"
}
}
app.state goes installing → starting → ready, with app.step saying what it is doing; keep polling while it is not ready. failed means the app did not start (or not within 15 minutes, 30 for Unsloth Studio): the machine itself keeps running and billing, so open JupyterLab or SSH and read /var/log/paralon-app.log, or stop it.
An app with its own sign-in. Unsloth Studio always asks for a username and password. Each rental gets its own, and once the app answers the rental has them in app.login, next to app.url: "login": {"username": "unsloth", "password": "<16 characters>"}. Treat it like app_url. In GET /templates such an app has "login": true.
What it costs now. Each template in GET /templates carries from_price_per_hour when a machine that can start with it is free: the price of the cheapest one, per hour, billed per minute. Absent when none is free at the moment.
Apps that follow their latest release. Unsloth Studio installs the project's latest release with its own installer, so its version is "latest" and GET /templates marks it "follows_latest": true. ComfyUI and Open WebUI are versions we tested and pinned.
The app has its own address, and its token is the only way in: the first visit with ?token= sets a cookie and drops the token from the address bar. Treat app_url like a password. On an SSH rental you can also reach it without the token through your own tunnel, ssh -L 8188:localhost:8188 … with the rental's ssh_command, then http://localhost:8188.
List your rentals
GET /rentals returns your active rentals by default (what's running and billing). Pass ?status=all for the full history including stopped ones.
curl https://paraloncloud.com/api/v1/rentals \
-H "Authorization: Bearer prlc_your_key_here"
Check your balance
GET /balance — rentals draw from your credit balance.
curl https://paraloncloud.com/api/v1/balance \
-H "Authorization: Bearer prlc_your_key_here"
{ "balance": 9.49, "earnings_balance": 0.10, "currency": "USD" }
Destroy a rental
DELETE /rentals/{id} stops the GPU and stops billing. This is your money brake — it's safe to call twice (an already-stopped rental returns success, not an error).
curl -X DELETE https://paraloncloud.com/api/v1/rentals/<rental_id> \
-H "Authorization: Bearer prlc_your_key_here"
Errors
| Status | Error | When |
|---|---|---|
401 | invalid_api_key | Missing or wrong key |
403 | insufficient_scope | Key lacks the rental scope |
400 | no_ssh_key | An SSH rental and no key saved: POST /ssh-keys first. |
400 | invalid_key | POST /ssh-keys got something that is not a public key line. |
409 | ssh_not_available | This node does not take SSH rentals: pick one with "ssh": true. |
409 | duplicate_key | That key is already saved. |
400 | unknown_template | No such app: see GET /templates. |
409 | template_not_available | This node cannot run apps yet: pick one whose templates lists it. |
409 | template_needs_more_vram / template_needs_newer_gpu / template_needs_more_disk | The node is below the app's minimums. |
402 | insufficient_credits | Balance won't cover the rental |
404 | rental_not_found / node_not_found | Unknown id, or not yours |
409 | node_rented / node_offline / node_not_ready / rental_limit_reached | Node unavailable, or your key hit max_active_rentals |
429 | rate_limit_exceeded | Too many requests (creates are limited more strictly) |
Billing is per minute while a rental is
running. AlwaysDELETErentals you're done with — or sethoursso they auto-stop even if your process dies.