Provider API
Read your nodes and daily earnings, and set node prices, from scripts with an API key. The full reference is at provider-api.lium.io/docs.
Create an API key
- Open Profile Settings and find API tokens.
- Name the key and keep only the scopes it needs:
readfor the read endpoints below,priceto set prices. - Click Create token (enter your current password if asked) and copy the key, which starts with
lpk_. It is shown only once and lasts 90 days unless you pick another length under Expires after (up to 365 days).
A script can also create one with a signed-in session: POST /auth/api-tokens with name, scopes and expires_in_days (1 to 365). See the reference.
To revoke a key, click Revoke next to it under API tokens. Log out everywhere, a password change or a new e-mail address also ends every key.
Call the API
Send the key in the Authorization header:
export LIUM_API_KEY=lpk_...
curl -s https://provider-api.lium.io/auth/me -H "Authorization: Bearer $LIUM_API_KEY"
Read endpoints
Your nodes and why each is or is not listed
curl -s https://provider-api.lium.io/executors/listing -H "Authorization: Bearer $LIUM_API_KEY"
One entry per node: listing_state, blocking_reasons, gpu_count, rented_gpu_count and the idle pay state.
All your nodes in one call
curl -s "https://provider-api.lium.io/executors?all=true" -H "Authorization: Bearer $LIUM_API_KEY"
Each of your nodes includes its GPU temperatures (executor_info.specs.gpu.details[].temperature, in °C). The other live GPU readings are only in the one-node call.
One node
curl -s https://provider-api.lium.io/executors/<node-id> -H "Authorization: Bearer $LIUM_API_KEY"
Daily earnings
curl -s "https://provider-api.lium.io/provider-ledger/daily?from=2026-10-01&to=2026-10-24" \
-H "Authorization: Bearer $LIUM_API_KEY"
One row per UTC day and kind, in USD, plus lifetime and month totals. Without dates it returns the last 30 days; a range is at most 90 days.
Set a node's price
A key with the price scope can change a node's price per GPU-hour, so a pricing tool can manage it for you:
curl -s -X POST https://provider-api.lium.io/executors/<node-id>/update-price \
-H "Authorization: Bearer $LIUM_API_KEY" -H "Content-Type: application/json" \
-d '{"price_per_gpu": 1.85}'
The same price limits and notice rules apply as in the portal. Add ?dry_run=true to run every check without changing the price.
On a rented node, add "apply_after_current_rental": true (the portal's Apply after the current rental ends): the rentals running now keep their price until they end, also for every later change, and the listing takes the new price at once with no raise limit or notice.
A key can change prices up to 60 times a minute, enough to reprice 900 nodes every 15 minutes. Beyond that it gets 429 with a Retry-After header (seconds until the next minute). The read endpoints above are fine to poll every few minutes.
A refused price change returns 400 with a detail.code you can branch on:
detail.code | Meaning |
|---|---|
price_below_min, price_above_max | Outside the allowed range for this GPU; min_price_per_gpu and max_price_per_gpu give it. |
price_raise_limit_reached | The node is rented and already had its raise for this period; next_raise_at says when the next one is allowed. |
price_raise_above_cap | The node is rented and the raise is too large; max_price_per_gpu is the highest price allowed now. |
node_not_found (404) | No node with this id on your account. |
The price scope can also pause and resume a node's new rentals (POST and DELETE /executors/<node-id>/new-rentals/pause). It opens nothing else: no node changes, payouts or account settings.