Usage statistics
Query your token consumption and request counts programmatically. Aggregates usage across both OpenAI and Anthropic endpoints.
GET /v1/usage
Python
import requests response = requests.get( "https://api.IQXtokenfactory.com/v1/usage", headers={"Authorization": f"Bearer {api_key}"}, params={"period": "month", "surface": "all"}, # "openai", "anthropic", or "all")print(response.json())