PowerPod GPUsUse casesCase studiesGuidesBlogFor collegesHelp Sign inCreate account

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.

Create an accountTry it in the browser

Before you start

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

Rent a GPU, follow it as it starts, connect, stop it, start it again, destroy it.

EndpointWhat it doesPermission
GET /instancesYour machines.read
POST /instancesRent: 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}/eventsWhat happened to the machine, step by step.read
GET /instances/{id}/logsThe machine’s recent log lines (tail = how many).read
POST /instances/{id}/rebootRestart the machine.instances
POST /instances/{id}/ssh-keysAdd your SSH keys to a running machine.instances
POST /instances/{id}/stopStop the GPU. The disk is kept and billed as storage.instances
POST /instances/{id}/startStart a stopped machine again.instances
POST /instances/{id}/destroyDelete the machine and its disk. Billing stops.instances

GPUs, software and prices

What you can rent right now and at what price in your currency, the ready-made software, and what common jobs cost.

EndpointWhat it doesPermission
GET /templatesReady-made software to start from, such as PyTorch with JupyterLab, ComfyUI, Ollama and vLLM.read
GET /fxToday’s exchange rate.read
GET /statusread
GET /offersMachines 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/gpusThe GPU types and filters on the board right now.read
GET /offers/modelsThe 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-examplesWhat common jobs cost on each card.read
GET /pick/jobsThe jobs the picker can price.read
GET /pickThe recommended, cheapest and fastest machine for one job.read
GET /offers/familiesread

Credits and statements

Your balance, every top-up and charge, and monthly statements.

EndpointWhat it doesPermission
GET /balanceCredits left, in your account currency.billing
GET /ledgerEvery top-up and charge.billing
GET /statementsYour monthly statements.billing
GET /statements/{period}/pdfOne statement as a PDF.billing
GET /topups/instructionsbilling
GET /topupsbilling
POST /topupsconsole only
POST /topups/cardconsole only

Backups

Scheduled copies of a machine’s files, and restoring them.

EndpointWhat it doesPermission
GET /backupsread
GET /instances/{id}/backupread
PUT /instances/{id}/backupinstances
POST /instances/{id}/backup/runinstances
POST /instances/{id}/backup/restoreinstances

SSH keys and API keys

The keys that open your machines, and the keys your scripts use.

EndpointWhat it doesPermission
GET /ssh-keysread
POST /ssh-keysinstances
DELETE /ssh-keys/{id}instances
GET /api-keysread
POST /api-keysconsole only
DELETE /api-keys/{id}console only

Classes

For teachers: one class, shared credits and a spending limit for each student.

EndpointWhat it doesPermission
GET /classesread
POST /classesconsole only
GET /classes/{id}read
PATCH /classes/{id}console only
POST /classes/{id}/creditsconsole only
PUT /classes/{id}/members/{userId}/limitsconsole only
POST /classes/{id}/members/{userId}/stopconsole only
DELETE /classes/{id}/members/{userId}console only
GET /classes/previewread
POST /classes/joinconsole only
POST /classes/leaveconsole only

Account

Signing in, passwords, two-step sign-in, notifications and account settings.

EndpointWhat it doesPermission
POST /auth/registerconsole only
POST /auth/loginconsole only
PUT /account/passwordconsole only
DELETE /auth/sessionsconsole only
POST /auth/password/forgotconsole only
POST /auth/password/resetconsole only
POST /auth/email/verifyconsole only
POST /auth/totp/setupconsole only
POST /auth/totp/enableconsole only
DELETE /auth/totpconsole only
POST /auth/logoutconsole only
GET /localeread
PATCH /accountconsole only
GET /auth/meread
GET /auth/optionsread
GET /auth/stateread
POST /aup/acceptconsole only
GET /kyc/statusread
POST /kyc/documentsconsole only
GET /account/limitsread
PUT /account/limitsconsole only
GET /notificationsread
POST /notifications/readinstances

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.

Read more

GPU pricesEvery card on the board todayHow to rent a GPUThe same steps in the consoleHelpBilling, limits and connectingUse casesFine-tuning, image generation, chatbots