Credit Information

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

Example

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

{
    "amount": 150.75    # Current balance in USD
}

Usage Notes

  • Monitor credits regularly to ensure uninterrupted service
  • View detailed credit analytics in Mira Console Credit History
  • Credits are consumed based on model usage and request volume