Skip to Content
Presentations.AI
Api

Credits

Credit balance and usage.

Get Credit Balance

GET
/credits

Return the workspace's granted, held, consumed, and available credits.

active_granted is what grants in effect give, active_holds what in-flight work reserves, total_consumed what was spent, and available what can still be spent.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Response Body

Successful Response

application/json
  1. response

Workspace credit balance summary.

workspace_id*Workspace Id

Workspace the balance belongs to.

Formatuuid
available*Available

active_granted minus total_consumed; may be negative. New paid work starts only while it is above zero.

active_granted*Active Granted

Credits from grants in effect and not expired.

total_consumed*Total Consumed

Credits consumed over the workspace's lifetime.

active_holds*Active Holds

Credits reserved by in-flight work; always 0.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/credits'
Example Response
{  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "available": 0,  "active_granted": 0,  "total_consumed": 0,  "active_holds": 0}