Credits

Retrieve your balance

What your workspace can spend now, what running generations hold, whether auto top-up will add more when it runs low, and whether it got the welcome credit, which workspaces made since 2026-10-14 don't get. Add credits and turn on auto top-up at add_credits_url; your first top-up has no card fee, and none from $20.

Needs an API key with the generations:read scope.

get/v1/credits

Request

  • Base URL: https://api.tryleap.ai
  • URL: https://api.tryleap.ai/v1/credits
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Response

The balance.

object'credits' required
available_usdstring required

What you can spend now: your balance minus what running generations hold, as an exact decimal string in US dollars.

held_usdstring required

What generations still running hold.

add_credits_urlstring required

Where a person adds credit and turns on auto top-up, in the studio.

Changes

No recorded changes to this operation across all 1 revision of this API.