PowerPod API
Rent, start, stop and destroy GPUs from your own code: the same machines and prices as the website, billed by the second from your PowerPod credits.
Before you start
- Create an account and add credits. Then open the console, go to Keys and create a key. Send it with every request as
Authorization: Bearer tc_live_…. - A key can do only what you allowed it: read looks at offers, software and your machines; instances rents, stops, starts, reboots and destroys them; billing reads your balance, charges and statements. Adding credits and changing your account are done in the console only.
- Every address starts with
https://powerpod.si/api/v1. Prices and balances are in your account currency, and amounts ending in_paisaare hundredths of it. - Limits: 1,200 requests a minute in all, 60 a minute for offers and 30 rentals a minute.
Quick start with curl
export POWERPOD_KEY=tc_live_... # the console, Keys tab
# 1. the three cheapest RTX 4090s free right now
curl -s "https://powerpod.si/api/v1/offers?gpu=RTX%204090&sort=price&limit=3" \
-H "Authorization: Bearer $POWERPOD_KEY"
# 2. the software to start from (PyTorch with JupyterLab, ComfyUI, Ollama ...)
curl -s https://powerpod.si/api/v1/templates -H "Authorization: Bearer $POWERPOD_KEY"
# 3. rent: an offer id from step 1, a template id from step 2
curl -s -X POST https://powerpod.si/api/v1/instances \
-H "Authorization: Bearer $POWERPOD_KEY" -H "Content-Type: application/json" \
-d '{"offer_id": 123456789, "template_id": 1, "disk_gb": 40, "stop_after_minutes": 120}'
# 4. ask until its status is "running" (a few minutes: the host downloads the software first),
# then connect with the access.ssh_command it returns
curl -s https://powerpod.si/api/v1/instances/42 -H "Authorization: Bearer $POWERPOD_KEY"
# 5. destroy it when the job is done: billing stops
curl -s -X POST https://powerpod.si/api/v1/instances/42/destroy -H "Authorization: Bearer $POWERPOD_KEY"
The same in Python
import os, time, requests
API = "https://powerpod.si/api/v1"
KEY = {"Authorization": f"Bearer {os.environ['POWERPOD_KEY']}"}
offer = requests.get(f"{API}/offers", headers=KEY,
params={"gpu": "RTX 4090", "sort": "price", "limit": 1}).json()["offers"][0]
software = requests.get(f"{API}/templates", headers=KEY).json()["templates"]
jupyter = next(t for t in software if t["slug"] == "pytorch-jupyter")
machine = requests.post(f"{API}/instances", headers=KEY, json={
"offer_id": offer["id"], "template_id": jupyter["id"], "stop_after_minutes": 120}).json()["instance"]
# Starting takes a few minutes. If a host is slow, the order moves to another host by
# itself, and the status goes back to "requested" for a moment: keep waiting.
while machine["status"] in ("requested", "booting", "settling", "attaching_key"):
time.sleep(10)
machine = requests.get(f"{API}/instances/{machine['id']}", headers=KEY).json()["instance"]
if machine["status"] == "running":
print(machine["access"]["ssh_command"])
else:
print("could not start:", machine["last_error"])
Starting a machine
Starting takes a few minutes, because the host downloads the software first: most software is ready in one to five minutes, and vLLM, which is large, in about seven. A host that has not started the download after five minutes, or has not finished after twenty, is given up, and the order moves to another comparable host by itself: the status goes back to requested, then booting again. Hosts that recently failed to start software are left out of the offers for a day.
When the status is running, the machine is up. Software that serves an AI model, such as vLLM or Ollama, then downloads and loads the model, so its API answers a few minutes later. The address of each app is in access.apps. Send the machine's token, access.app_token, with each request to an app, as Authorization: Bearer <token>.
A machine bills by the second while it runs, at the price per hour shown when you rented it. A stopped machine keeps its disk and bills only for storage; destroying it ends all billing. Spending limits, idle stops and stop_after_minutes work the same as in the console: see how renting works.
Every endpoint
75 endpoints in 7 groups. The permission column says which key permission each one needs.
Machines
| Endpoint | What it does | Permission |
|---|---|---|
GET /instances | Your machines. | read |
POST /instances | Rent: offer_id and template_id; disk_gb, ssh_key_ids and stop_after_minutes are optional. If the machine was taken meanwhile, the answer is 410 offer_gone with alternatives: up to three machines with the same GPU that run your software, cheapest first, ready to rent by their id. | instances |
GET /instances/{id} | One machine: status, cost so far, and once it runs, under access, the SSH command, the browser links and the token its apps accept. | read |
PATCH /instances/{id} | Rename it, or stop it when its GPU goes idle or after a set time. | instances |
GET /instances/{id}/events | What happened to the machine, step by step. | read |
GET /instances/{id}/logs | The machine’s recent log lines (tail = how many). | read |
POST /instances/{id}/reboot | Restart the machine. | instances |
POST /instances/{id}/ssh-keys | Add your SSH keys to a running machine. | instances |
POST /instances/{id}/stop | Stop the GPU. The disk is kept and billed as storage. | instances |
POST /instances/{id}/start | Start a stopped machine again. | instances |
POST /instances/{id}/destroy | Delete the machine and its disk. Billing stops. | instances |
GPUs, software and prices
| Endpoint | What it does | Permission |
|---|---|---|
GET /templates | Ready-made software to start from, such as PyTorch with JupyterLab, ComfyUI, Ollama and vLLM. | read |
GET /fx | Today’s exchange rate. | read |
GET /status | read | |
GET /offers | Machines you can rent now. Filters: gpu (the exact name, such as RTX 4090), gpus (GPUs per machine, 1 to 8, or any), min_reliability (0 to 1), min_vram, min_disk, country, datacenter, max_npr_hour (a price per hour in your currency), sort, limit. Without gpus and min_reliability you get one-GPU machines on hosts that are at least 98% reliable, as before; pass gpus=any and min_reliability=0 for every machine, where a less reliable host has reliability_warning: true. npr_per_hour is the price of the whole machine, per_gpu_per_hour the price of one of its GPUs, and num_gpus how many it has. | read |
GET /offers/{id} | One offer in full. | read |
GET /offers/gpus | The GPU types and filters on the board right now. | read |
GET /offers/models | The board by GPU model under the same filters: the lowest price per GPU, how many machines, best reliability and typical speed, grouped by series. | read |
GET /cost-examples | What common jobs cost on each card. | read |
GET /pick/jobs | The jobs the picker can price. | read |
GET /pick | The recommended, cheapest and fastest machine for one job. | read |
GET /offers/families | read |
Credits and statements
| Endpoint | What it does | Permission |
|---|---|---|
GET /balance | Credits left, in your account currency. | billing |
GET /ledger | Every top-up and charge. | billing |
GET /statements | Your monthly statements. | billing |
GET /statements/{period}/pdf | One statement as a PDF. | billing |
GET /topups/instructions | billing | |
GET /topups | billing | |
POST /topups | console only | |
POST /topups/card | console only |
Backups
| Endpoint | What it does | Permission |
|---|---|---|
GET /backups | read | |
GET /instances/{id}/backup | read | |
PUT /instances/{id}/backup | instances | |
POST /instances/{id}/backup/run | instances | |
POST /instances/{id}/backup/restore | instances |
SSH keys and API keys
| Endpoint | What it does | Permission |
|---|---|---|
GET /ssh-keys | read | |
POST /ssh-keys | instances | |
DELETE /ssh-keys/{id} | instances | |
GET /api-keys | read | |
POST /api-keys | console only | |
DELETE /api-keys/{id} | console only |
Classes
| Endpoint | What it does | Permission |
|---|---|---|
GET /classes | read | |
POST /classes | console only | |
GET /classes/{id} | read | |
PATCH /classes/{id} | console only | |
POST /classes/{id}/credits | console only | |
PUT /classes/{id}/members/{userId}/limits | console only | |
POST /classes/{id}/members/{userId}/stop | console only | |
DELETE /classes/{id}/members/{userId} | console only | |
GET /classes/preview | read | |
POST /classes/join | console only | |
POST /classes/leave | console only |
Account
| Endpoint | What it does | Permission |
|---|---|---|
POST /auth/register | console only | |
POST /auth/login | console only | |
PUT /account/password | console only | |
DELETE /auth/sessions | console only | |
POST /auth/password/forgot | console only | |
POST /auth/password/reset | console only | |
POST /auth/email/verify | console only | |
POST /auth/totp/setup | console only | |
POST /auth/totp/enable | console only | |
DELETE /auth/totp | console only | |
POST /auth/logout | console only | |
GET /locale | read | |
PATCH /account | console only | |
GET /auth/me | read | |
GET /auth/options | read | |
GET /auth/state | read | |
POST /aup/accept | console only | |
GET /kyc/status | read | |
POST /kyc/documents | console only | |
GET /account/limits | read | |
PUT /account/limits | console only | |
GET /notifications | read | |
POST /notifications/read | instances |
Interactive reference and OpenAPI file
The interactive reference shows every field of every request and answer and lets you try them with your key. The OpenAPI 3 file imports into Postman or Insomnia and generates a client in most languages.
Questions
Is there an API for renting GPUs?
Yes. Everything the console does with machines you can do over HTTPS with an API key: find a GPU, rent it, connect, stop it, start it again and destroy it, and read your credits and statements.
Does the API cost extra?
No. You pay only for the machines you run, at the same prices as the website, billed by the second.
How do I get an API key?
Create an account, open the console and go to Keys. Give the key only the permissions it needs: read, instances or billing. The key is shown once, so store it like a password.
Can a script run up a big bill?
Credits are prepaid, so a key can never spend more than your balance. Your daily and monthly spending limits apply to every machine however it was rented, and stop_after_minutes stops a machine after a set time.
Which languages can I use?
Any language that can make an HTTPS request. The examples on this page use curl and Python, and the OpenAPI file at /api/docs/json generates a client for most languages.