GPU power as an API
Buy prepaid credits and run real GPU workloads across the whole RentGPUPower cluster from any script — no browsing, no fixed terms. Serverless jobs, or grab a GPU by the second.
Built for fleets: ask /capacity before you fan out, queue in line when the pool is full, get a signed webhook the moment a job finishes, hand teammates read-only keys, and import the OpenAPI spec into your tooling.
Which API do I want?
Everyone's compute, on demand
The pool API: serverless jobs and OpenAI-compatible chat that run on whichever verified machine is cheapest and idle right now — the general compute of the whole marketplace. Pay per second from credits; wait in line with queue_s when it's full, and be told by webhook when you're done.
Jobs & chat endpoints →One specific machine, by the second
Instances: reserve exactly the hardware you want — a model, a rig with min_gpu_count, a region — and hold it as long as you pay. You get that machine's own gpurent_… key.
Instance endpoints →A rental you made on the website
Every marketplace rental — picked by hand from a listing — has the same per-rental API: run commands, move files, open web services on that one machine with its gpurent_… key.
Per-rental API docs →Try it — no terminal needed
Quickstart
1 Create an API key below (or in the RentGPUPower app). Keep it secret — it spends your credits.
2 Add credits by card.
3 Run a serverless job on the cheapest idle GPU:
curl -X POST https://rentgpupower.com/api/v1/compute/jobs \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "nvidia-smi", "min_vram_gb": 16, "timeout_s": 300}'
4 Poll for the result:
curl https://rentgpupower.com/api/v1/compute/jobs/JOB_ID \
-H "Authorization: Bearer $GPURENT_API_KEY"
Prefer a client? Two zero-dependency single files wrap every endpoint on this page, nothing more: gpurent.py (standard library only) and gpurent.mjs — download, import, go. Because they add nothing over the HTTP API, this page is also their reference.
Python & JavaScript
Python
import os, time, requests
H = {"Authorization": "Bearer " + os.environ["GPURENT_API_KEY"]}
B = "https://rentgpupower.com/api/v1/compute"
job = requests.post(B + "/jobs", headers=H, json={"command": "nvidia-smi", "min_vram_gb": 16}).json()["job"]
while job["status"] in ("queued", "scheduling", "running"):
time.sleep(2)
job = requests.get(f"{B}/jobs/{job['id']}", headers=H).json()["job"]
print(job["status"], job["output"])
JavaScript (fetch)
const H = { Authorization: "Bearer " + process.env.GPURENT_API_KEY, "Content-Type": "application/json" };
const B = "https://rentgpupower.com/api/v1/compute";
let { job } = await (await fetch(B + "/jobs", { method: "POST", headers: H,
body: JSON.stringify({ command: "nvidia-smi", min_vram_gb: 16 }) })).json();
while (["queued", "scheduling", "running"].includes(job.status)) {
await new Promise(r => setTimeout(r, 2000));
({ job } = await (await fetch(`${B}/jobs/${job.id}`, { headers: H })).json());
}
console.log(job.status, job.output);
Run a model behind an OpenAI-compatible API
Start an instance serving a model, then point any OpenAI client at it — same SDKs, same request shape, tokens streamed as they are generated. Nothing to install and no relay URL to manage.
1 Start an instance serving the model you want:
curl -X POST https://rentgpupower.com/api/v1/compute/instances \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template_id": "vllm", "model": "Qwen/Qwen3.5-4B", "duration_s": 3600}'
2 Wait until it is serving — the first start downloads the weights, which takes a few minutes:
curl https://rentgpupower.com/api/v1/compute/instances/INSTANCE_ID/ready \
-H "Authorization: Bearer $GPURENT_API_KEY"
# {"exists":true,"ready":true,"status":"running","model":"Qwen/Qwen3.5-4B"}
3 Use it from the OpenAI SDK:
import os
from openai import OpenAI
client = OpenAI(base_url="https://rentgpupower.com/api/v1/compute",
api_key=os.environ["GPURENT_API_KEY"])
stream = client.chat.completions.create(
model="Qwen/Qwen3.5-4B",
messages=[{"role": "user", "content": "Explain attention in one paragraph."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)
curl & JavaScript
curl (streaming)
curl -N https://rentgpupower.com/api/v1/compute/chat/completions \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "Qwen/Qwen3.5-4B", "stream": true,
"messages": [{"role": "user", "content": "hello"}]}'
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://rentgpupower.com/api/v1/compute",
apiKey: process.env.GPURENT_API_KEY });
const stream = await client.chat.completions.create({
model: "Qwen/Qwen3.5-4B", stream: true,
messages: [{ role: "user", content: "hello" }],
});
for await (const c of stream) process.stdout.write(c.choices[0]?.delta?.content ?? "");
An app that asks only for a server address and adds /v1 itself works too: give it https://rentgpupower.com — https://rentgpupower.com/v1 is this same API.
What this costs: exactly what the instance costs — per second, for as long as it runs. There is no extra charge per token, because you are already paying for the GPU it runs on. Stop paying by deleting the instance (DELETE /instances/ID), or let it end on its own when its duration_s is up. Give it idle_stop_min when you create it (or later with PATCH /instances/ID) and it stops by itself after that many quiet minutes; without it, one left doing nothing keeps billing until then. Ask for a model none of your instances is serving and, if it is one we can start (a vetted vLLM model, or a tag of a known Ollama model such as qwen3.5:4b), an instance is started for you on your credits: the call answers 503 model_loading with the instance id, an ETA and a Retry-After header — keep retrying and the same call is served once the model is up. OpenAI SDKs retry only twice by themselves: for a model that takes minutes to load, raise max_retries or poll GET /instances/ID/ready first. Nothing starts twice, and nothing starts without credits; an instance whose model cannot be downloaded is ended at once, and nothing is charged for it. Hosts keep popular models' weights ready between rentals; when a machine already holds yours, the instance says warm: true and answers in seconds instead of minutes. A model we cannot start still gets 503 model_not_loaded, listing what is running and what you could start — never a silent failure.
Models on AI devices. Hosts also rent out models running on their own devices — a Mac, a PC with an AMD or Intel card, a games console (see them). GET /models lists the ones idle right now, marked "device": true. A chat call naming one — qwen3.8-27b finds Qwen3.8-27B-UD-Q2_K_XL.gguf — rents the cheapest idle device serving it, half an hour reserved on your credits, and is answered at once: the X-RentGPUPower-Instance header names the instance, the next calls reuse it, and DELETE /instances/ID stops it. More about AI devices
Text embeddings, computed by phones
📱 No phone is online right now — people’s phones working together, each in its browser.
Turn text into vectors for search, clustering and RAG with all-MiniLM-L6-v2 (384 dimensions) — the same request and answer as OpenAI's embeddings endpoint, so the OpenAI SDK works by changing the base URL. The work is done by phones and browsers that have /earn open: each piece goes to two of them, of different accounts on different internet connections, and is delivered only when their answers agree.
import os
from openai import OpenAI
client = OpenAI(base_url="https://rentgpupower.com/api/v1/compute",
api_key=os.environ["GPURENT_API_KEY"])
r = client.embeddings.create(model="all-MiniLM-L6-v2",
input=["The cat sat on the mat.", "A kitten rested on a rug."])
print(len(r.data[0].embedding)) # 384
curl
curl https://rentgpupower.com/api/v1/compute/embeddings \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "all-MiniLM-L6-v2", "input": ["The cat sat on the mat.", "A kitten rested on a rug."]}'
What this costs: $0.02 per million tokens (counted as one token per 4 characters), charged only for answers that were checked and delivered — a request that times out or is not verified costs nothing. It is paid from credits you bought or earned: free credit (including credit from the old phone test rounds) cannot pay for it, because the money goes on to the phones as cash.
Limits: up to 64 texts per request, each up to 2000 characters (the model reads the first 512 tokens of each). A request waits up to 30 seconds for the phones; when too few are online it is answered at once with 503 no_capacity and a Retry-After — retry then, as the OpenAI SDKs do. encoding_format may be float or base64. LangChain: pass check_embedding_ctx_length=False, or it sends token ids instead of text.
One phone: pick one on the phone cluster page and add its id to the request — "phone": "ph…" (with the OpenAI SDK, in extra_body). Your texts go to it alone, at the same price; if it goes quiet, the cluster finishes the work.
Privacy: your texts are processed on other people's phones. Do not send passwords, personal data or anything confidential.
Clusters: many machines, one private network
Rent several machines of any hosts together — the cheapest free ones that match, or the ones you name — in one request, or none of them. Their workspaces share a private network (node1, node2, …), and each knows its rank and node1’s address, so one command run on all of them starts a PyTorch job across them. Each machine is a rental of its own, paid for the time it delivers; stop them all at once and the rest comes back.
curl -X POST https://rentgpupower.com/api/v1/compute/clusters \
-H "Authorization: Bearer $GPURENT_API_KEY" \
-H "Content-Type: application/json" -H "Idempotency-Key: my-cluster-1" \
-d '{"count": 4, "gpu_model": "NVIDIA GeForce RTX 4090", "hours": 2, "same_region": true}'
# → {"cluster": {"id": 12, "nodes": [{"rental_id": …, "rental_api_key": "gpurent_…", "network": {"name": "node1", …}}, …]}}
curl -X POST https://rentgpupower.com/api/v1/compute/clusters/12/run \
-H "Authorization: Bearer $GPURENT_API_KEY" -H "Content-Type: application/json" \
-d '{"command": "nohup torchrun --nnodes=$NUM_NODES --node-rank=$NODE_RANK --master-addr=$MASTER_ADDR --master-port=$MASTER_PORT --nproc-per-node=gpu train.py > train.log 2>&1 &"}'
curl -X DELETE https://rentgpupower.com/api/v1/compute/clusters/12 -H "Authorization: Bearer $GPURENT_API_KEY"
First ask what it would be: POST /clusters/quote with the same fields and hours answers the machines, their price an hour, what renting them that long costs (total_cents, each host’s long-rental discount taken off) and the environments every one of them can start — then send listing_ids and that total as expected_total_cents to rent exactly those at exactly that price. The private network carries coordination and moderate data between machines on different home networks; it is not a datacenter link — every byte goes through RentGPUPower’s server.
Processors or memory instead of graphics cards: "kind": "cpu", or "memory" for machines with 64 GB of memory or more — with min_cores and min_ram_gb for the least each machine needs.
A discount is earned by staying. A machine rented with its host’s long-rental discount and stopped early — by DELETE /clusters/ID, or by the cluster stopping itself when idle — is charged for the time used at the price for the length it stayed, never more than was paid for it. Its node then carries early_pct, the percent off its time used was charged at (0 is the list price), and early_cents, how much more than its share of the price paid that came to.
Let your AI agent rent the GPU
Add RentGPUPower to Claude, ChatGPT, Cursor or any app that speaks MCP. Your agent sees what is free and what it costs, rents a GPU, runs commands on it, reads the files and pictures it made, and stops it — within the spending limit you set when you connect it. Nothing to install: one address and a sign-in.
The connector’s address, for any other app (in ChatGPT: Plugins → + → Add custom MCP server):
https://rentgpupower.com/mcp
Claude Code — then /mcp inside it to sign in:
claude mcp add --transport http rentgpupower https://rentgpupower.com/mcp
With an API key instead of a sign-in (scripts, and tools that take a header):
claude mcp add --transport http rentgpupower https://rentgpupower.com/mcp --header "Authorization: Bearer gpuapi_…"
Or run it on your own computer. One file serves the same tools to Claude Code, Claude Desktop, Cursor or any MCP client over stdio. Zero dependencies, Node 18+. Download it and give it a key:
macOS / Linux
curl -fsSL https://rentgpupower.com/mcp/gpurent-mcp.js -o ~/gpurent-mcp.js
claude mcp add gpurent -e GPURENT_API_KEY=gpuapi_… -- node ~/gpurent-mcp.jsWindows (PowerShell)
iwr -UseBasicParsing https://rentgpupower.com/mcp/gpurent-mcp.js -OutFile $HOME\gpurent-mcp.js
# '--' in quotes: bare, PowerShell swallows it before claude ever sees it
claude mcp add gpurent -e GPURENT_API_KEY=gpuapi_… '--' node $HOME\gpurent-mcp.js
Claude Desktop / Cursor (mcpServers in their config — on Windows write the path with doubled backslashes, like C:\\Users\\you\\gpurent-mcp.js):
{ "mcpServers": { "gpurent": { "command": "node", "args": ["/path/to/gpurent-mcp.js"],
"env": { "GPURENT_API_KEY": "gpuapi_…" } } } }
Prefer a terminal? The same API as a command line — one file, zero dependencies:
macOS / Linux
mkdir -p ~/bin && curl -fsSL https://rentgpupower.com/cli/gpurent.js -o ~/bin/gpurent && chmod +x ~/bin/gpurent
export PATH="$HOME/bin:$PATH" GPURENT_API_KEY=gpuapi_…
gpurent capacity
gpurent run "nvidia-smi" --min-vram 16 # output streams here, exit code is the job's
gpurent chat --model qwen3.5:2b "In two sentences, what is a GPU?"
gpurent instances && gpurent stop 12Windows (PowerShell)
iwr -UseBasicParsing https://rentgpupower.com/cli/gpurent.js -OutFile $HOME\gpurent.js
$env:GPURENT_API_KEY = "gpuapi_…"
node $HOME\gpurent.js capacity
node $HOME\gpurent.js run "nvidia-smi" --min-vram 16 # output streams here, exit code is the job's
node $HOME\gpurent.js chat --model qwen3.5:2b "In two sentences, what is a GPU?"
node $HOME\gpurent.js instances; node $HOME\gpurent.js stop 12
Money stays under your control: every tool that can spend says SPENDS CREDITS in its own description, an instance never reserves more than an hour at a time unless you raise GPURENT_MCP_MAX_DURATION_S, and a key with a spend limit caps the whole agent. The file adds nothing over the HTTP API — the same endpoints, fields and errors as this page.
API keys
Connected apps
Credits
Live pool
What's live right now
- RTX 5080 — 2 free · 2 online · from $0.35/hr
- RTX 4070 SUPER — 1 free · 1 online · from $0.22/hr
- RTX 5070 — 1 free · 1 online · from $0.23/hr
Your work right now
Usage
Endpoint reference
Base URL https://rentgpupower.com/api/v1/compute · Spec OpenAPI 3 (JSON) — import it into Postman, Insomnia or a client generator · Auth Authorization: Bearer gpuapi_… · errors are JSON {"error","code"} — /chat/completions and /models answer in OpenAI’s shape, {"error":{"message","type","code"}}.
Keys are full or read-only: a read-only key answers every GET (capacity, jobs, instances, usage) and gets 403 key_read_only on anything that starts or changes work, and never reveals a secret — not the webhook signing secret, an instance's rental key, or its app URL — the key for dashboards and teammates.
Two credentials, one API: the account key (gpuapi_…) is your control plane (credits, scheduling, fleet). Each instance hands back its own gpurent_… rental key — the data plane for that one GPU against the classic per-rental API (jobs and file transfer).
| Method | Path | Does |
|---|---|---|
| GET | /gpus | Public pool catalog + floor prices (filters: gpu_model, min_vram_gb, region, max_price_cents_hour, min_gpu_count) |
| GET | /capacity | What can I run right now? Same filters as POST /jobs, answered from the scheduler's own view: per-model availability + floor prices, retry_hint_s when full, plus your balance, running work and live rate-limit budget — ask this before fanning out a fleet instead of burning submissions to find out |
| GET | /me · /balance · /usage | Account, key info, credit balance, ledger lines, and days: a 7-day rollup (jobs, instances, cents, GPU-seconds) |
| POST/GET | /topups · /topups/:id · /topups/:id/stripe-intent · /topups/:id/confirm | Buy credits by card programmatically: create the order, take a payment intent, confirm it, poll the order |
| POST | /jobs | Run one command on the cheapest idle GPU (serverless). Idempotency-Key supported. The scheduler only places work on machines that can actually run it — CPU architecture (x86-64 / arm64) and GPU vendor (NVIDIA / AMD / CPU-only) are checked per template, so an incompatible request returns no_capacity naming the hardware it needs instead of a paid failure. Add queue_s (1–600) to wait in line server-side instead: a full pool answers 202 queued with queued_ahead and a deadline, schedules the moment a machine frees (accounts in turns, each account’s jobs oldest first), and charges nothing until it does. Add webhook_url to be told when it finishes: we POST {"event": "job.finished", "job": …, "sent_at": …} — the job as GET /jobs/:id answers it, its output cut at 64 KB (output_truncated) — (signed — X-GPURENT-Signature: t=…,v1=HMAC-SHA256(webhook_secret, t + "." + body), secret on GET /me), make up to 3 delivery attempts on non-2xx (waiting about 10 s, then about a minute), and refuse private/internal addresses. A machine that fails to run your job (or never picks it up) costs you nothing and the job goes back in line once for another machine — the job reports attempt and retried_because. Add replicas (up to 50) to fan the same command out as a job array, aggregated by GET /jobs?array=… |
| GET | /jobs | List your jobs — status, since (ms epoch), limit ≤100 and before (cursor); the reply's next_before pages through thousands without skips. array aggregates one job array |
| GET/DELETE | /jobs/:id | Poll output / cancel |
| GET | /jobs/:id/stream | Live output as Server-Sent Events: output deltas, status, then done |
| POST/GET | /batches · /batches/:id · /batches/:id/tasks · /batches/:id/cancel | One request, up to 100,000 tasks over the whole pool: your command runs once per task with GPURENT_TASK_INDEX, GPURENT_TASK_COUNT and, from inputs (one entry per task), GPURENT_TASK_INPUT set. max_parallel tasks run at once, a failed attempt is tried again on another machine (max_attempts), and budget_cents / deadline_s stop it. Each task is billed like a job. Follow progress, page the results (with outputs) from /tasks, cancel at any time; webhook_url is told when it finishes |
| POST/GET | /instances | Reserve a GPU by the second → returns a rental_api_key (duration_s is optional — an hour when omitted; listing_id pins one machine) · GET lists yours Run a template, or your own public Docker image (image) with a command run first when it starts (onstart) — then gpurent ssh into it. |
| GET/POST/DELETE | /instances/:id (+ /extend) | Inspect, extend, or destroy (settles per second) |
| GET | /instances/:id/ready | Is the model server answering yet? (a real request, not a guess) |
| POST | /chat/completions | OpenAI-compatible — streams tokens from your running instance, or from a shared model priced per token. See Inference API and Shared models |
| GET | /models | Models your instances are serving, the shared models with their prices and state, and ones you could start |
| POST/GET/DELETE | /clusters/quote · /clusters · /clusters/:id (+ /run, /jobs, /extend) | Several machines on one private network: quote a cluster, rent every machine in one step (Idempotency-Key supported), run one command on all of them, read their jobs, add time to all, stop them together. See Clusters |
| POST | /embeddings | OpenAI-compatible text embeddings (all-MiniLM-L6-v2), computed by phones and checked by a second one. See Text embeddings |
Billing
Per-second, metered in ~10-second increments. Creating a job or instance reserves its window from your credits up front; when it ends you're billed only for delivered time and the unused reservation is refunded automatically. A GPU that goes dark refunds you the rest — the same escrow protection as rentals. Errors: 402 insufficient credits / spend limit, 409 no capacity, 422 bad image/params.
Backpressure — built for fleets
Heavy automated traffic is expected, and the API tells your code exactly how to behave: every authenticated response carries X-RateLimit-Limit / -Remaining / -Reset; a 429 includes Retry-After and retry_after_s; a 409 no_capacity includes Retry-After derived from when the next machine actually frees — sleep that long and retry instead of hammering. GET /capacity gives you the same hints without spending a submission.
For GPU hosts
Your listings join the pool automatically when they're online, hardware-verified and Docker-sandboxed. You earn per second, on top of ordinary rentals, into the same balance. Opt a listing out anytime from its manage page or the RentGPUPower app.