Docs

Quick start

From a new account to a GPU you are logged into, in a few minutes.

Six steps

  1. Create an account in the console with email, Google or GitHub, and confirm your email.
  2. Add credit under Billing, by card or with a voucher.
  3. Add your SSH key under Settings, or from your computer:
    reway ssh add-key --key-file ~/.ssh/id_ed25519.pub
  4. 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
  5. Connect with the SSH command the pod card shows, or:
    reway ssh connect <podId>
  6. 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 podVM pod
RunsYour image in a containerA full Ubuntu virtual machine
Stop and startYes, files keptNo: it runs until it is removed or interrupted
DiskIts own disk, kept while stoppedA scratch disk, deleted when the pod ends
Good forMost work: training, notebooks, servingSoftware that needs its own kernel or drivers

States

StateWhat it meansBilled
PROVISIONINGThe GPUs are being reserved for the pod.GPUs, from now on
STARTINGThe machine is starting the pod: downloading the image, or booting the VM. A large image can take several minutes.GPUs
RUNNINGThe pod runs; you can connect.GPUs, disk, traffic
StoppedThe GPUs are released and the files kept. The API shows EXITED with stoppedAt set; the console shows STOPPED.Disk only
EXITEDA VM pod that ended. Its disk is deleted; only its console output stays on its machine, for troubleshooting.Nothing
TERMINATEDYou or we removed the pod. It is deleted with its disk.Nothing
ERRORThe 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 deletedWhen
by youreway remove pod, at once
by us30 days after it stopped
by us, at zero credit7 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 pod1 to 10, all on one machine
Disk per pod10 to 4000 GB, up to what the machine has free for that many GPUs
Credit to startEnough for 1 hour of the new pod plus your running pods
EmailConfirmed 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

ModeWhat runs
sshsshd with your key, then the template's start script. The default with --imageName and no template.
jupyterLike ssh, and JupyterLab on port 8888. The console shows a link with the token.
entrypointThe 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 isDisk 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

WhatPriceWhen
GPUPer GPU-hour for the card type, from Pricing or reway get cloudFrom creating or starting the pod (start-up included) until you stop or remove it
Interruptible GPUAbout half the Standard priceThe 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 togetherWhile 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 podsStopped at €0
Docker podsKeep 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 podsRemoved 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 storageKept until you delete the files or the cluster is closed
A job's working spacePrivate to the job and wiped when it finishes: save results to shared storage
A node's scratch diskEncrypted 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

CommandWhat it does
reway get cloudGPU types with free GPUs and prices
reway get machinesEvery machine; --minDisk 500 keeps those where a new pod can get 500 GB
reway create podStart 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-keyAdd 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 templateYour and the recommended templates
reway get balanceCredit 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

--gpuTypeGPU type from reway get cloud, e.g. "rtx 5090"
--gpuCount1 to 10
--imageName or --templateIdWhat the pod runs
--containerDiskSizeDisk in GB
--portse.g. "8888/http,22/tcp"
--env KEY=VALUERepeat for more
--argsCommand to run instead of the image's own
--podTypedocker or vm
--launchModessh, jupyter or entrypoint
--interruptibleAbout half the price; can be interrupted
--nameA 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

RouteWhat it does
POST /podsCreate a pod
GET /pods, GET /pods/{id}List pods, or read one
POST /pods/{id}/action?action=stopStop; action=start (with gpuCount) starts it again
DELETE /pods/{id}Remove a pod and its disk
GET /catalog/gpus, /catalog/machinesGPU types, prices and machines
GET /templates, POST /templatesTemplates
PUT /account/ssh-keysSet the account's SSH public keys, one per line (replaces them)
GET /billing, /billing/ledgerBalance and transactions

Errors

Every error has the body {"title", "status", "detail", "errors"}; detail says what to do.

StatusMeaning
400A 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
401No API key, or a revoked one
402Not enough credit for the first hour of the pod
403The account's email is not confirmed yet
404No such pod or template on your account
409No 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

AccountEmail and password, or Google or GitHub. Confirm your email before you start a pod or pay by card.
SSH keysYour public keys under Settings, one per line. Every pod you start in ssh or jupyter mode gets all of them.
API keysUnder 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 areVAT
A business in Czechia21 % Czech VAT
An EU business outside Czechia, VAT ID confirmed in VIES0 %, reverse charge
The same, while VIES has not confirmed the VAT ID yet21 % Czech VAT
A business outside the EU0 %, not subject to Czech VAT

Invoices for your payments are under Billing in the console.

Help

Write to jan@reway.cz. The Terms of Service and the Privacy Policy describe the service and your data.