> ## Documentation Index
> Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# System APIs

> Account and system-related API endpoints

Endpoints for account management and system information.

## Current Balance

Check the remaining balance for your API key.

### Endpoint

```
GET https://api.apixo.ai/api/v1/apikeys/current-balance
```

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
</ParamField>

### Response

```json theme={null}
{
  "code": 200,
  "message": "success",
  "data": 74.8700
}
```

<ResponseField name="code" type="integer">
  HTTP status code.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="number">
  Remaining balance (in USD) for the current API key.
</ResponseField>

<Tip>
  Check your balance programmatically before submitting large batches to avoid mid-run failures due to insufficient funds.
</Tip>

### Examples

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl -X GET https://api.apixo.ai/api/v1/apikeys/current-balance \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```
  </Tab>

  <Tab title="JavaScript">
    ```javascript theme={null}
    const response = await fetch('https://api.apixo.ai/api/v1/apikeys/current-balance', {
      method: 'GET',
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
      },
    });

    const data = await response.json();
    console.log('Balance:', data.data);
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    import requests

    response = requests.get(
        'https://api.apixo.ai/api/v1/apikeys/current-balance',
        headers={'Authorization': 'Bearer YOUR_API_KEY'},
    )

    data = response.json()
    print(f"Balance: {data['data']}")
    ```
  </Tab>
</Tabs>

## Error Responses

See [Errors](/api-reference/errors) for possible `401`, `403`, or `429` responses.
