Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get current usage statistics for your API key.
GET /api/v1/usage
curl https://www.pixcraft.es/api/v1/usage \ -H "Authorization: Bearer px_live_your_key"
{ "api_key": "px_...abc123", "plan": "business", "period": "2025-03", "calls_used": 243, "calls_limit": 2000, "calls_remaining": 1757, "reset_date": "2025-04-01", "daily_breakdown": [ { "date": "2025-03-01", "calls": 12 }, { "date": "2025-03-02", "calls": 8 }, { "date": "2025-03-03", "calls": 23 } ] }
api_key
plan
period
calls_used
calls_limit
calls_remaining
reset_date
daily_breakdown
const res = await fetch('https://www.pixcraft.es/api/v1/usage', { headers: { 'Authorization': 'Bearer px_live_your_key' }, }); const usage = await res.json(); const percent = (usage.calls_used / usage.calls_limit) * 100; console.log(`${percent.toFixed(1)}% of monthly limit used`); if (percent > 80) { console.warn('Warning: approaching monthly API limit'); }
Was this page helpful?