palbaseDocs

Palbase ai · API

GET/ai/spend

What the project's AI on Palbase's models costs this month

The month's spend on Palbase's models at what it is billed, the free dollar a month brings and what is left of it, the monthly budget, and whether Palbase's models serve the project now — and if not, why.

Called by your server, with the project's secret key.

curl
curl -X GET "https://<your-ref>.palbase.studio/ai/spend" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The month's spend

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation GetSpend of ai's contract.