What Are Credits?
Credits are the currency for API calls in agntdata. Each API request consumes credits based on the endpoint’s cost. Your workspace has two credit sources:- Subscription allowance — Monthly credits included with your plan
- Purchased balance — Additional credits you’ve purchased
How Credits Work
Understanding Credit Costs
Each endpoint has a base cost in cents. The actual cost depends on your plan’s discount percentage:| Field | Description |
|---|---|
costCents | Credits charged for this request |
purchasedBalanceCents | Remaining purchased credits |
subscriptionRemainingCents | Remaining subscription credits this month |
Checking Your Balance
Via Dashboard
Your credit balance is displayed in the dashboard.Via API
Check programmatically:Purchasing Credits
Add credits to your workspace from the dashboard:- Go to Settings → Billing
- Select a credit amount
- Complete payment via Stripe
- Credits are added immediately
Subscription vs Purchased Credits
| Type | Description |
|---|---|
| Subscription | Monthly allowance that resets each billing cycle |
| Purchased | One-time purchase, used after subscription allowance is depleted |
- Subscription allowance first
- Purchased balance second
Workspace Credit Sharing
Credits belong to workspaces, not individual users:- All API keys in a workspace share the same credit pool
- Team members see the same balance
- Usage is aggregated at the workspace level
Insufficient Credits
When you don’t have enough credits, requests return an error:Next Steps
Usage Monitoring
Track your API usage over time.
Rate Limits
Understand request limits.