Check Credits
GET /v1/credits — monitor your API credit balance programmatically.
GET
Check Credits
Credit Balance
Monitor your credit balance programmatically. Use this endpoint to:- Track usage across your applications
- Set up alerts before running low
- Build internal dashboards
This endpoint is FREE - no credits consumed and no rate limiting applied.
Quick Example
Response
Response Fields
| Field | Type | Description |
|---|---|---|
credits | number | Your current credit balance |
Additional Endpoints
| Endpoint | Method | Description |
|---|---|---|
GET /v1/credits | GET | Get current credit balance |
POST /v1/credits/refresh | POST | Force refresh credits from database (use if balance seems stale) |
GET /v1/credits/health | GET | Validate API key and check authentication status |
Best Practices
Cache the response
Cache the response
Don’t call this endpoint before every API request. Cache the balance and refresh periodically (e.g., every 5 minutes).
Use response headers instead
Use response headers instead
Every API response includes
X-Credits-Remaining header - use this instead of making a separate call:Set up alerts
Set up alerts
Implement alerts when credits fall below a threshold to avoid service interruptions.
Need More Analytics?
For comprehensive usage analytics, see our Analytics API which includes:- Real-time dashboard with rate limits and usage stats
- Daily and monthly credit consumption history
- Per-product breakdown with success rates
- Latency percentiles and error tracking
Analytics API
Get detailed insights into your API usage with our comprehensive analytics suite.
Check Credits