Skip to main content
GET
Get Credits
Check the remaining credit balance for your API key. This endpoint returns your current credit count and last top-up timestamp without consuming any credits.

Get Credits

Response

The endpoint returns a JSON object with your credit information:

Response Fields

Examples

Check Credits:
Example Response:

Error Responses

Notes

  • This endpoint is free - no credits are consumed
  • last_topup_at will be null if no credits have been purchased
  • Use this endpoint to check balance before making credit-consuming API calls

Authorizations

Authorization
string
header
required

API key authentication. Keys start with 'lk_'.

Response

Credits information retrieved successfully

credits
integer
required

Number of credits remaining in your account

last_topup_at
string | null

ISO 8601 timestamp of your last credit purchase/top-up