Skip to main content
GET
/
api
/
v1
/
billing
/
wallet
Wallet balance + most recent billing rows
curl --request GET \
  --url https://api.primeintellect.ai/api/v1/billing/wallet \
  --header 'Authorization: Bearer <token>'
{
  "wallet_id": "<string>",
  "balance_usd": 123,
  "currency": "<string>",
  "total_billings": 123,
  "recent_billings": [
    {
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "amount_usd": 123,
      "currency": "<string>",
      "resource_type": "<string>",
      "last_billed_at": "2023-11-07T05:31:56Z",
      "resource_id": "<string>"
    }
  ],
  "team_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.primeintellect.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:20

Number of recent billing rows to include (max 100).

Required range: 1 <= x <= 100
offset
integer
default:0

Skip this many rows before returning. Lets callers page.

Required range: x >= 0
teamId
string | null

If provided, return the team's wallet (requires membership).

Response

Successful Response

Snapshot of a wallet's balance + most recent billing rows.

Drives prime wallet. One call returns everything an agent needs to audit the billing flow against a known training run.

wallet_id
string
required
balance_usd
number
required

Current balance in USD

currency
string
required
total_billings
integer
required

Total billing rows on the wallet (across all pages)

recent_billings
BillingEntry · object[]
required
team_id
string | null