Credits Balance
The Credits endpoint allows you to retrieve your current FASHN API credits balance. The response includes your total credits, API subscription credits (if you have an active subscription), and any additional on-demand credits you've purchased.
- Subscription Credits: Included with your monthly API plan
- On-Demand Credits: Additional credits purchased separately
- Total Credits: Combined balance of subscription + on-demand credits
Request
Check your current credits balance by making a GET request to the credits endpoint:
GEThttps://api.fashn.ai/v1/credits
Call this endpoint whenever you need to know how many credits you have remaining.
Request Examples
Response
Example response payload
Response Fields
credits
object
Container object for all credit information.
total
integer
Your total available credits (subscription + on-demand credits combined).
subscription
integer
Credits included with your current API subscription plan. These credits reset monthly based on your billing cycle.
on_demand
integer
Additional credits purchased separately from your subscription. These credits are consumed after subscription credits.
Rate Limits
The credits endpoint has its own specific rate limit:
Endpoint | Limit |
---|---|
/v1/credits | 30 requests per 10 seconds |
For other endpoints, see the default rate limits in API Fundamentals.