Get current month usage.
Returns credit consumption for the current billing period, estimated cost, and next invoice date.
Requirements:
Example:
response = await client.get("/v1/organizations/billing/usage/current")
print(f"Usage: {response['current_month_usage']} credits")
print(f"Estimated cost: ${response['estimated_cost_usd']}")
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
Successful Response
Response with current month usage.
Credits consumed in current billing cycle
Current billing month (YYYY-MM)
Start of current billing period
End of current billing period
Estimated cost for current usage
Whether auto-billing is enabled
When next invoice will be generated
Cost per credit in USD