# Venice AI Billing Balance

> Venice AI Billing Balance is a paid API for AI agents from api.venice.ai, paid per call via x402, $10/call, status unknown (last checked 2026-11-19).

Returns the authenticated user's current DIEM and USD billing balances, consumption currency, and total DIEM epoch allocation for the Venice AI platform.

## Facts

- Endpoint: GET https://api.venice.ai/api/v1/billing/balance?utm_source=zero.xyz
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402, ai_ml
- Canonical page: https://www.zero.xyz/c/venice-ai-billing-balance-45140802
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PsPutNaSgpVOTld-QiejU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability venice-ai-billing-balance-45140802
```

Example prompt: What's my current Venice AI balance — show me my remaining DIEM and USD credits, whether I can still make API calls, and how much of my epoch allocation I've used.

## When to prefer this

Use this endpoint when you need to check the authenticated user's current billing status on Venice AI — specifically their remaining DIEM or USD balance, whether they are eligible to make further API calls, and what fraction of their epoch DIEM allocation remains. Prefer this over the Rate Limits endpoint when the focus is on credit/balance visibility rather than rate limit details, and over Usage Analytics when you want a snapshot rather than historical usage data.

## Known failure modes

- Unauthenticated request returns 401 unauthorized
- Invalid or expired API key returns 403 forbidden
- Service unavailability returns 503
- balances.diem is null if user is not staking
- balances.usd is null if USD balance is not available for the account type
- consumptionCurrency is null if account has no active billing method

## How this service works

Get current balance information for the authenticated user. Returns remaining DIEM/USD balances and total DIEM epoch allocation for calculating usage percentage.

## Output

Returns an object with: balances.usd (remaining USD balance), balances.diem (remaining DIEM balance for the current epoch), canConsume (boolean indicating whether the account can make further API requests), consumptionCurrency (one of USD, VCU, DIEM, BUNDLED_CREDITS indicating what is being billed), and diemEpochAllocation (total DIEM allocated for the current staking epoch, useful for computing usage percentage).

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "balances": {
   "usd": 25,
   "diem": 90.5
  },
  "canConsume": true,
  "consumptionCurrency": "DIEM",
  "diemEpochAllocation": 100
 },
 "required": [
  "canConsume",
  "consumptionCurrency",
  "balances",
  "diemEpochAllocation"
 ],
 "properties": {
  "balances": {
   "type": "object",
   "required": [
    "diem",
    "usd"
   ],
   "properties": {
    "usd": {
     "type": "number",
     "example": 25,
     "nullable": true,
     "description": "Remaining USD balance. Null if not available."
    },
    "diem": {
     "type": "number",
     "example": 90.5,
     "nullable": true,
     "description": "Remaining DIEM balance for current epoch. Null if not staking."
    }
   }
  },
  "canConsume": {
   "type": "boolean",
   "example": true,
   "description": "Whether the user has sufficient balance to make API requests"
  },
  "consumptionCurrency": {
   "enum": [
    "USD",
    "VCU",
    "DIEM",
    "BUNDLED_CREDITS"
   ],
   "type": "string",
   "example": "DIEM",
   "nullable": true,
   "description": "The currency that will be used for consumption (DIEM or USD)"
  },
  "diemEpochAllocation": {
   "type": "number",
   "example": 100,
   "description": "Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage."
  }
 },
 "description": "Current balance information for the authenticated user",
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/venice-ai-billing-balance-45140802/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.venice.ai](https://www.zero.xyz/host/api.venice.ai/llms.txt)
