Pricing and billing
Amounts are micro-USD
Every price, charge and balance in the API is an integer number of micro-USD, millionths of a US dollar:
Value | Amount |
|---|---|
1 | $0.000001 |
250000 | $0.25 |
1000000 | $1.00 |
Integers avoid rounding errors. Convert only for display:
Tool | Helpers |
|---|---|
Go SDK | octaspace.MicroUSD: String() gives $0.250000, Dollars() gives a float64 |
JavaScript SDK | formatUsd(250000) gives "$0.250000", microUsdToUsd(), usdToMicroUsd() |
CLI | Shows dollars in tables, takes dollars in flags (--base 0.25), keeps micro-USD in -o json |
GET /accounts/balance also returns currency and decimals: the amount is balance / 10^decimals in currency.
What a session costs
Each node owner sets the node's prices. The listings show them, and a session keeps the prices it started with even if the owner changes them later.
Price | Field | Charged for | Applies to |
|---|---|---|---|
Base | base_price | Every hour the session runs | Compute, render |
Storage | storage_price | Every hour, per GB of disk you allocate (disk_size) | Compute |
Traffic | traffic_price | Every GB of network traffic | Compute, VPN |
Example: a compute session with base_price 250000, storage_price 100, disk_size 50 GB, running 2 hours and using 3 GB of traffic at traffic_price 10000:
base 2 h × $0.25 = $0.50
storage 2 h × 50 GB × $0.0001 = $0.01
traffic 3 GB × $0.01 = $0.03
total = $0.54Usage is charged continuously while the session runs, not at the end. charge_amount in the session info shows what the session has cost so far.
Minimum rent
A node owner can set a minimum rent (min_rent_minutes, up to 60 minutes) for compute. A session stopped sooner, by you or by the container exiting, is charged base and storage as if it ran that long. It is not charged if the node fails.
Balance
GET /accounts/balance returns your available balance: it already includes what running sessions have used, even if it has not been posted to your account history yet. A recent charge or deposit can take a moment to appear.
Starting a session
A start is accepted only if your balance covers at least:
Service | Minimum balance |
|---|---|
Compute | One hour of base price, one hour of storage for the requested disk, and 1 GB of traffic |
Render | One hour of base price |
VPN | 1 GB of traffic |
Otherwise the start returns 400 with Insufficient balance and nothing is charged.
When the balance runs out
- When your balance will last less than about an hour at the current spending, OctaSpace notifies you (in the dashboard and in Telegram, if you connected it).
- When it falls to $0.01, your running sessions are stopped. Their containers and data are gone, so keep important results outside the session or top up in time.
To avoid surprises in automation, check the balance before starting long jobs, and watch it while they run (see the guide Watch your balance and spending).
Hosting: what your node earns
If you host nodes, the prices you set are what renters pay. Set them in the dashboard, with PATCH /hosting/nodes/{number}/prices, octa hosting prices or the SDKs:
Price | Range |
|---|---|
Base | $0.0001 to $1000 per hour |
Storage | $0 to $1000 per GB per hour |
Traffic | $0.0001 to $1000 per GB |
Minimum rent | 0 to 60 minutes, 0 turns it off |
New prices appear in the listings within a few seconds and apply to new sessions; running sessions keep their prices.