Skip to content

Usage and spend

See what your organization spends over a period, on which GPUs and rentals, your balance, runway and top-ups, in the app or through the API.

On this page

In the app

Open Spend in the Rent workspace. Pick a period at the top (the last 30 days unless you choose another); every day is a UTC day, and each figure is compared with the period of the same length just before it.

  • Overview: what you spent, the GPU-hours you used, what a GPU-hour cost you on average (platform fee included), your daily average, and what everything running now costs per hour. Below them, spend over time (by day, week or month, split by charge type, GPU model, tier or rental if you like), the price per GPU-hour over time, what the money went on, and the five rentals that cost most.

  • Rentals: every rental charged in the period, with its state, GPUs, GPU-hours, price per GPU-hour, what promo credit paid and what it cost. Each one opens its page. Download CSV has every rental with its charges split by type. Below the list, Data transfer shows this month's data sent out (see Data sent out of Legion).

  • Breakdowns: the period's spend by GPU model, charge type, rental, tier, rental type, GPU count or country, with the previous period, the change and each one's share.

  • Balance & top-ups: your organization's prepaid credit, the runway (how long it lasts at the rate of everything running now), promo credit, and each top-up and what became of it.

  • Activity: usage by rental session, and every credit and charge.

The charge types are GPU time (what providers charged for the hours your rentals ran), Platform fee (Legion's share on top), Storage (the disks of stopped rentals), Backups (see backup pricing) and Data transfer. The prices you see when you rent already include the platform fee. Spend figures can run a few minutes behind; the page says when they were last updated.

A rental's own page shows its billed time and its cost so far. Its Cost tab lists GPU time, storage, and any backup charge and refund.

Through the API

Through the API
OperationReturns
getRenterSpendOverviewWhat you spent in a period, against the previous one, and what runs now.
getRenterSpendSeriesSpend over time, by day, week or month.
getRenterSpendBreakdownA period's spend by one dimension.
listRenterSpendRentalsThe rentals charged in a period, with what each cost.
getBillingAccountYour balance.
listRentalChargesWhat each rental has cost.
getRentalChargesOne rental's billed time and charges.
listBillingActivityUsage by rental session.
listTopUpsYour top-ups and their status.

The period reads take from and to as UTC dates, both days included. An agent connected to the MCP server reads the same figures with get_spend_overview, get_spend_breakdown and list_spend_by_rental.

Money is always an integer number of cents with a currency code, for example {"amount_minor": 420, "currency": "USD"} for $4.20.

Shell
curl -s "https://api.legion.ambient.xyz/v1/billing/account" \
  -H "Authorization: Bearer $LEGION_API_KEY"
Shell
curl -s -G "https://api.legion.ambient.xyz/v1/renter/spend/overview" \
  --data-urlencode "from=2026-10-05" \
  --data-urlencode "to=2026-11-03" \
  -H "Authorization: Bearer $LEGION_API_KEY"