Skip to main content
GET
/
tryon
/
v1
/
account
/
credits
curl "https://api.genlook.app/tryon/v1/account/credits" \
  -H "x-api-key: gk_your_api_key"
{
  "creditBalance": 422
}

Documentation Index

Fetch the complete documentation index at: https://docs.genlook.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

Returns the number of try-on credits left. Each generation POST /try-on consumes 1 credit on success. Out-of-credits requests come back as 402 INSUFFICIENT_CREDITS. Use this endpoint to surface balance in your own dashboards, or to fail fast in a worker before queueing a generation.
curl "https://api.genlook.app/tryon/v1/account/credits" \
  -H "x-api-key: gk_your_api_key"

Response

creditBalance
integer
required
Number of credits remaining on the account.
{
  "creditBalance": 422
}

Top-ups

Top up and view transaction history from the Genlook dashboard. The public API doesn’t expose a programmatic top-up endpoint — credit purchases go through the dashboard checkout.

See also