Docs
Quick start
From a new account to a GPU you are logged into, in a few minutes.
Six steps
- Create an account in the console with email, Google or GitHub, and confirm your email.
- Add credit under Billing, by card or with a voucher.
- Add your SSH key under Settings, or from your computer:
reway ssh add-key --key-file ~/.ssh/id_ed25519.pub
- Start a pod on the console's Machines page with Rent, or:
reway create pod --gpuType "rtx 5090" --gpuCount 1 --imageName ubuntu:22.04 --wait
- Connect with the SSH command the pod card shows, or:
reway ssh connect <podId>
- Stop or remove it when you are done. Stopping ends GPU billing and keeps the files; removing deletes everything:
reway stop pod <podId>
The reway command needs Python 3.8 or newer and an API key: install it with pip install reway, then create a key under API keys in the console and run reway config --apiKey rw_….
The whole session on the command line
pip install reway
reway config --apiKey rw_your_key
reway ssh add-key --key-file ~/.ssh/id_ed25519.pub
reway get cloud
reway create pod --name train-1 --gpuType "rtx 5090" --gpuCount 1 --imageName ubuntu:22.04 --containerDiskSize 50 --wait
reway get pod
reway ssh connect <podId>
reway stop pod <podId>
reway start pod <podId> --gpuCount 2
reway remove pod <podId>
The same in Python
import reway
reway.api_key = "rw_your_key" # or set REWAY_API_KEY, or run `reway config`
pod = reway.create_pod(
name="train-1",
image_name="ubuntu:22.04",
gpu_type_id="rtx 5090",
gpu_count=1,
container_disk_in_gb=50,
)
pod = reway.wait_for_pod(pod["id"])
print(reway.ssh_command(pod))
reway.stop_pod(pod["id"]) # GPUs released, files kept
reway.resume_pod(pod["id"], gpu_count=1) # same machine, files back
reway.terminate_pod(pod["id"]) # deleted with its files
The same with curl
curl -X POST https://rewayai.ai/v2/pods \
-H "Authorization: Bearer rw_your_key" -H "Content-Type: application/json" \
-d '{"name": "train-1", "gpuTypeId": "rtx 5090", "gpuCount": 1, "image": "ubuntu:22.04", "launchMode": "ssh", "diskGb": 50}'
curl https://rewayai.ai/v2/pods/<podId> -H "Authorization: Bearer rw_your_key"
curl -X POST "https://rewayai.ai/v2/pods/<podId>/action?action=stop" -H "Authorization: Bearer rw_your_key"
curl -X DELETE https://rewayai.ai/v2/pods/<podId> -H "Authorization: Bearer rw_your_key"
Docs
Pods
A pod is a Docker container or a virtual machine with 1 to 10 GPUs of one type, on one machine.
Docker pod or VM pod
| Docker pod | VM pod |
| Runs | Your image in a container | A full Ubuntu virtual machine |
| Stop and start | Yes, files kept | No: it runs until it is removed or interrupted |
| Disk | Its own disk, kept while stopped | A scratch disk, deleted when the pod ends |
| Good for | Most work: training, notebooks, serving | Software that needs its own kernel or drivers |
States
| State | What it means | Billed |
PROVISIONING | The GPUs are being reserved for the pod. | GPUs, from now on |
STARTING | The machine is starting the pod: downloading the image, or booting the VM. A large image can take several minutes. | GPUs |
RUNNING | The pod runs; you can connect. | GPUs, disk, traffic |
| Stopped | The GPUs are released and the files kept. The API shows EXITED with stoppedAt set; the console shows STOPPED. | Disk only |
EXITED | A VM pod that ended. Its disk is deleted; only its console output stays on its machine, for troubleshooting. | Nothing |
TERMINATED | You or we removed the pod. It is deleted with its disk. | Nothing |
ERROR | The pod could not start. endDetail says why; the start is refunded. | Nothing |
A new pod goes through PROVISIONING and STARTING to RUNNING; wait for RUNNING before you connect (reway create pod --wait and Python's wait_for_pod do that). A Docker pod whose command ends by itself, or that is interrupted, is stopped, not deleted: start it again when you want.
Stop and start
reway stop pod releases the GPUs and keeps the whole container with its files. GPU billing stops; the disk costs €0.20 per GB per month while stopped.
reway start pod runs it again on the same machine, with --gpuCount to ask for a different number of GPUs. If that machine has no such GPUs free, the start is refused (409), nothing is charged and the pod stays stopped: try later, or with fewer GPUs.
| A stopped Docker pod is deleted | When |
| by you | reway remove pod, at once |
| by us | 30 days after it stopped |
| by us, at zero credit | 7 days after your credit reached zero |
Interruptible pods
With --interruptible (Python: interruptible=True) the GPUs cost about half the Standard price, but a renter who pays more can take them back. A Docker pod is then stopped and keeps its files, with endReason outbid; start it again later. A VM pod ends. Keep checkpoints on the disk. Standard pods are never interrupted.
Limits
| GPUs per pod | 1 to 10, all on one machine |
| Disk per pod | 10 to 4000 GB, up to what the machine has free for that many GPUs |
| Credit to start | Enough for 1 hour of the new pod plus your running pods |
| Email | Confirmed before you start a pod or pay by card |
Docs
Templates and ports
A template is what a pod runs: an image, ports, environment, a start command and a disk size.
Using a template
The console offers recommended templates (PyTorch, CUDA, vLLM, Ollama, an Ubuntu VM) and the ones you made. Copy one to change it; mark one as your default. On the command line, reway get template lists them and --templateId uses one; flags you add override it. Without an image or a template, your default template is used.
Launch modes
| Mode | What runs |
ssh | sshd with your key, then the template's start script. The default with --imageName and no template. |
jupyter | Like ssh, and JupyterLab on port 8888. The console shows a link with the token. |
entrypoint | The image exactly as built, with no SSH. |
Ports
Each port the template opens, such as 8888/http or 22/tcp, gets a public port on the pod's address. The pod card shows the SSH command and the links. In the API they are publicIp and portMappings; on the command line, reway get pod <podId> --json.
Docs
Storage and disks
Each pod has its own disk on the machine it runs on. There is no network volume.
Docker pod disk
You choose its size when you create the pod (--containerDiskSize, 10 to 4000 GB). It holds everything the pod writes on top of its image and is kept while the pod is stopped. It is deleted when the pod is removed.
VM pod disk
A VM pod gets a fast scratch disk of the size you choose. It is not charged separately, and it is deleted when the pod ends: copy out what you want to keep first.
What disk costs
Only a Docker pod's disk is charged:
| Docker pod is | Disk price |
| running | €0.10 per GB per month |
| stopped | €0.20 per GB per month, until you start or remove it |
Billed by the second for the size you chose; a month counts as 730 hours.
Getting your data out
Use scp or rsync over the pod's SSH port, or upload to your own storage from inside the pod. Once a pod is deleted, nothing of it is kept, except a VM pod's console output (what it printed to its console), which stays on its machine for troubleshooting.
Docs
Billing
Prepaid credit in EUR, used by the second. Prices exclude VAT.
Prices
| What | Price | When |
| GPU | Per GPU-hour for the card type, from Pricing or reway get cloud | From creating or starting the pod (start-up included) until you stop or remove it |
| Interruptible GPU | About half the Standard price | The same, until it is interrupted |
| Docker pod disk | €0.10 per GB per month running, €0.20 stopped. A VM pod's scratch disk is not charged separately. | Until the pod is removed |
| Traffic | €10 per TB, received and sent together | While the pod runs |
costSoFar on each pod is what it has cost so far; reway get balance shows your credit and what you spend per hour.
Adding credit
Under Billing in the console: by card, from €5 to €1000 at a time, or with a voucher code (RW-XXXX-XXXX-XXXX). At your first card payment you enter your company's details once (name, address, and the VAT ID of a business in the EU outside Czechia); they go on the tax document of each payment, and VAT is added where it applies (see VAT). You get an email when your credit drops below €5.
When credit runs out
| Running pods | Stopped at €0 |
| Docker pods | Keep their files for 7 days. Their disk is still charged, so the balance can go a little below zero (about €2 for a 50 GB disk). Your next top-up pays that first. |
| VM pods | Removed at once |
A stopped pod's disk is billed until you remove it, also at zero credit.
Docs
Slurm clusters
A Slurm cluster set up for your team: you submit jobs, GPU nodes start for them and stop when they finish.
Getting one
Clusters are set up on request. Tell us what you need: GPU types, how many, your team's logins and storage. We set it up and send the login details.
Using it
Log in to the cluster's login node and submit jobs as usual:
sbatch --gres=gpu:4 train.sh
A GPU node starts for each job and stops when the job finishes. Your home directory, Python environments and model cache are on shared storage that every node sees.
Storage
| Shared storage | Kept until you delete the files or the cluster is closed |
| A job's working space | Private to the job and wiped when it finishes: save results to shared storage |
| A node's scratch disk | Encrypted with a key that exists only while the node runs |
Billing
You pay for the GPU time your jobs use. The time a node needs to start is not billed, and nothing is charged while no job runs. Invoices are issued weekly, broken down by project.
Docs
Command line
The reway command starts, stops and connects to pods from your terminal.
Install and log in
pip install reway
reway config --apiKey rw_your_key
Python 3.8 or newer, no other packages. Create the key under API keys in the console. The key can also come from REWAY_API_KEY or --apiKey.
Commands
| Command | What it does |
reway get cloud | GPU types with free GPUs and prices |
reway get machines | Every machine; --minDisk 500 keeps those where a new pod can get 500 GB |
reway create pod | Start a pod; --wait returns once it runs and prints its SSH command |
reway get pod [podId] | Your pods, or one pod |
reway ssh connect <podId> | Print the SSH command |
reway ssh add-key | Add your SSH public key to the account, keeping the others |
reway stop pod <podId> | Release the GPUs, keep the files |
reway start pod <podId> | Start a stopped pod again |
reway remove pod <podId> | Delete the pod and its files |
reway get template | Your and the recommended templates |
reway get balance | Credit and spend per hour |
Add --json to a get, create, start, stop or remove command for the API's JSON. reway --help and reway create pod --help list every option.
Options of create pod
--gpuType | GPU type from reway get cloud, e.g. "rtx 5090" |
--gpuCount | 1 to 10 |
--imageName or --templateId | What the pod runs |
--containerDiskSize | Disk in GB |
--ports | e.g. "8888/http,22/tcp" |
--env KEY=VALUE | Repeat for more |
--args | Command to run instead of the image's own |
--podType | docker or vm |
--launchMode | ssh, jupyter or entrypoint |
--interruptible | About half the price; can be interrupted |
--name | A name for the pod |
Docs
Python
The same package as the command line, for your own scripts.
Setup
import reway
reway.api_key = "rw_your_key" # or set REWAY_API_KEY, or run `reway config`
reway.Client(api_key=…) holds a key of its own, for several accounts in one program.
Functions
create_pod(…) | Start a pod: name, image_name, gpu_type_id, gpu_count, container_disk_in_gb, template_id, interruptible |
wait_for_pod(id) | Wait until it runs |
ssh_command(pod) | The SSH command for a pod |
get_pods(), get_pod(id) | Your pods |
stop_pod(id) | Release the GPUs, keep the files |
resume_pod(id, gpu_count=…) | Start a stopped pod again |
terminate_pod(id) | Delete the pod and its files |
get_gpus(), get_machines() | GPU types and machines |
get_templates(), create_template(…) | Templates |
get_balance(), get_ledger() | Credit and transactions |
add_ssh_key(pubkey) | Add your SSH public key, keeping the others |
Each returns the API's JSON as a dict. An error raises reway.ApiError (also named QueryError) with status, title and detail.
Docs
REST API
Everything the console does, over HTTPS with JSON. Every field and error is in the API reference.
Address and key
The API is at https://rewayai.ai/v2. Send your key with every request:
Authorization: Bearer rw_your_key
Main routes
| Route | What it does |
POST /pods | Create a pod |
GET /pods, GET /pods/{id} | List pods, or read one |
POST /pods/{id}/action?action=stop | Stop; action=start (with gpuCount) starts it again |
DELETE /pods/{id} | Remove a pod and its disk |
GET /catalog/gpus, /catalog/machines | GPU types, prices and machines |
GET /templates, POST /templates | Templates |
PUT /account/ssh-keys | Set the account's SSH public keys, one per line (replaces them) |
GET /billing, /billing/ledger | Balance and transactions |
Errors
Every error has the body {"title", "status", "detail", "errors"}; detail says what to do.
| Status | Meaning |
| 400 | A field is missing or wrong, e.g. a Docker pod without an image or template, or an SSH pod with no SSH key on the account |
| 401 | No API key, or a revoked one |
| 402 | Not enough credit for the first hour of the pod |
| 403 | The account's email is not confirmed yet |
| 404 | No such pod or template on your account |
| 409 | No machine has that many GPUs of that type free, or not enough disk; or the pod is not in a state for that action |
Docs
Account and VAT
Your login, keys, billing details and how VAT is charged.
Sign-up and keys
| Account | Email and password, or Google or GitHub. Confirm your email before you start a pod or pay by card. |
| SSH keys | Your public keys under Settings, one per line. Every pod you start in ssh or jupyter mode gets all of them. |
| API keys | Under API keys. A key is shown once; revoke it there when you no longer need it. |
VAT
Re:WayAI is for businesses: the billing details on the Billing page are your company's. A business in the EU outside Czechia needs its VAT ID. VAT is added to a card payment according to these details:
| You are | VAT |
| A business in Czechia | 21 % Czech VAT |
| An EU business outside Czechia, VAT ID confirmed in VIES | 0 %, reverse charge |
| The same, while VIES has not confirmed the VAT ID yet | 21 % Czech VAT |
| A business outside the EU | 0 %, not subject to Czech VAT |
Invoices for your payments are under Billing in the console.