This endpoint returns a snapshot of your account’s current plan, compression usage, and AI credit balances. Use it to check whether you have remaining capacity before submitting a batch, or to surface usage data in your own tooling.Documentation Index
Fetch the complete documentation index at: https://docs.fluximage.io/llms.txt
Use this file to discover all available pages before exploring further.
Request
Method:GETURL:
https://fluximage.app/api/usageAuthorization:
Bearer flx_live_your_key_here
No request body is required.
Example request
Response
200 OK
For Pro and Agency plans,
compressor_limit returns a large number indicating effectively unlimited compressions. Use canCompress as the authoritative check for whether you can compress in the current period.Response fields
Your current subscription plan. Possible values:
free, starter, pro, agency.Number of images you have compressed in the current billing period.
Maximum images you can compress per billing period on your current plan.
Number of AI credits consumed from your monthly allocation in the current billing period.
Total AI credits included in your plan each month.
0 on the free plan.Additional AI credits you have purchased as top-ups. These are consumed after your monthly allocation is exhausted.
Total AI credits still available, combining remaining monthly credits and top-up credits:
(ia_credits_monthly − ia_credits_used) + ia_topup_credits.true if you have remaining compression capacity for the current billing period.true if you are on a paid plan and have at least one AI credit remaining.Contains keys
small, medium, and large corresponding to the three AI credit top-up bundles available for purchase. You can use these values to initiate a checkout session for the desired pack size.Error codes
| Status | Error | Description |
|---|---|---|
401 | Unauthorized | The API key is missing or invalid. |