Check Your Credits
GET/api/v1/credits
Returns the credit balance of the account authenticated by the API key, including total, used and remaining credits. The balance is measured in credits, not images; the number of requests it covers depends on the operation and applicable rate. See Pricing.
Request
Responses
- 200
- 401
- 429
- 500
- 503
Response Headers
Request identifier generated or accepted by the server. Use this value when contacting support.
The x-api-key header is missing, invalid, or inactive.
Response Headers
Request identifier generated or accepted by the server. Use this value when contacting support.
A per-key or service-wide call-rate limit was exceeded. Retry according to the response headers.
Response Headers
Request identifier generated or accepted by the server. Use this value when contacting support.
Limit for the scope that rejected the request.
Remaining capacity for the rejecting scope; normally 0 on a 429 response.
Unix timestamp in seconds when the rejecting scope is expected to reset.
Minimum number of seconds to wait before retrying.
Rejecting scope: api_key_minute, api_key_hour, global_minute, global_hour, or api_key_active_tasks.
An unexpected server-side error occurred.
Response Headers
Request identifier generated or accepted by the server. Use this value when contacting support.
A protective service or dependency is temporarily unavailable. Retry with backoff.
Response Headers
Request identifier generated or accepted by the server. Use this value when contacting support.
Minimum number of seconds to wait before retrying.