Services and sessions
Services
OctaSpace rents out machines (nodes) that their owners host. Each machine can be offered for one or more services:
Service | What you get | Billed by | List | Start |
|---|---|---|---|---|
Compute | A container from any image you choose, with SSH, exposed ports and HTTP URLs | Hour of rent, GB of disk per hour, GB of traffic | GET /services/compute | POST /services/compute |
Render | A node with an NVIDIA GPU that renders for your account | Hour of rent | GET /services/render | POST /services/render |
VPN | A VPN endpoint on the node: WireGuard, AmneziaWG, VLESS Reality, HTTP proxy or V2Ray | GB of traffic | GET /services/vpn | POST /services/vpn |
Each listing returns the machines available right now with their location, hardware, network speed and prices.
Nodes and node numbers
Every machine has a public node number, for example 7KQ4-M2XD-4: 8 symbols and a check symbol. You see it in the listings and pass it as node_number to start a service.
- Case, dashes and spaces are ignored, O reads as 0, I and L as 1. 7kq4m2xd4 is the same node.
- A typo is caught by the check symbol and rejected with 400, so you cannot start a session on the wrong machine by mistake.
- A node keeps its number for its whole life. You can store it.
Sessions
A session is one start of a service on one node. It has a UUID, for example 96e33710-ec12-11ed-8588-fa163e49e8aa, returned when you start the service:
{ "uuid": "96e33710-ec12-11ed-8588-fa163e49e8aa" }Use the UUID with these endpoints:
Endpoint | Does |
|---|---|
GET /sessions | Lists your running sessions of every service, oldest first |
GET /services/{uuid}/info | Returns one session: status, connection details, prices, cost so far |
GET /services/{uuid}/logs?tail=200 | Returns platform events and the latest container output (compute only) |
POST /services/compute/{uuid}/restart | Recreates the container on the same node (compute only) |
POST /services/{uuid}/stop | Stops the session |
You see only your own sessions: another account's UUID returns 404, the same as one that does not exist.
Lifecycle
start ──► starting ──► ready ──► stop ──► (gone)
▲ │
└─ restart ┘status | Meaning |
|---|---|
starting | The container is being set up. progress describes the step, pull_percent shows the image download |
ready | The session is running and can be used |
A start request returns as soon as the session is created. To know when it is usable, poll GET /services/{uuid}/info every few seconds until status is ready, or use the SDK helpers (WaitReady in Go, waitReady in JavaScript) or --wait in the CLI.
A session can stop on its own:
- while starting, if the image cannot be pulled or SSH cannot be set up;
- when the container's main process exits;
- when your balance runs out (see Pricing and billing);
- when the node goes offline.
The API keeps no history of stopped sessions. A stopped session disappears from GET /sessions, its info and logs return 404. If you need a record of what ran, store it on your side while the session is running.
Connecting to a compute session
When a compute session is ready, its info tells you how to reach it:
Field | Contains |
|---|---|
ssh.direct | SSH straight to the node: host, port, user. Set only if SSH was turned on and your account has an SSH key |
ssh.proxy | SSH through the OctaSpace proxy: host, port, user |
ssh.web | URL of a web terminal |
fm | URL of the web file manager, if you turned it on |
ports | Each exposed container port mapped to its public port on the node |
urls | Each HTTP port mapped to its public URL |
public_ip | The node's public address |
user comes from the image's USER (root when the image sets none), so the image author controls it. When you build an ssh command from it, pass the values as separate arguments: ssh -p PORT -l USER -- HOST.
Restart
A restart recreates the container on the same node. The session keeps its UUID, its prices and its rent. Without parameters it restarts with the parameters it was started with.
A session can be restarted once in 5 minutes and 6 times an hour; a restart sooner returns 429 with Retry-After. A restart while the session is still starting or restarting returns 409.
Applications
An app is a ready-made image with recommended settings (ports, SSH, file manager, disk size). GET /compute/apps lists the official apps and, with an API key, your own. Pass an app's uuid as app when you start a compute session; image is still required. The app decides SSH and the file manager unless you set ssh or fm yourself.
Other identifiers and units
Value | Format |
|---|---|
Prices, charges, balance | Integer micro-USD, see Pricing and billing |
started_at of a session, ts of log events | Unix milliseconds |
Timestamps in statistics | Unix seconds |
duration | Seconds |
net_down_mbps, net_up_mbps | Mbit/s, 0 when not measured |
memory, disk in listings | Free bytes |
node_hw.disk of a session | Rented disk, GB |