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

# Checking Credits

> Check your Mira Network credit balance and monitor usage with the Python SDK's get_user_credits() method to avoid service interruptions.

## Credit Information

Monitor your current credit balance and usage using the `get_user_credits()` method.

### Example

```python theme={null}
from mira_network import MiraClient

async def check_credits():
    async with MiraClient(api_key="your-api-key") as client:
        credits = await client.get_user_credits()
        print("Credits:", credits)
```

### Response Structure

```python theme={null}
{
    "credits": 150.75    # Current balance in USD
}
```

### Usage Notes

* Credits are consumed per request, based on the model and token usage.
* See per-transaction detail with [`get_credits_history()`](/network/credit-operations/viewing-credit-history) or in the [Mira Console](https://console.mira.network/credit-history).
