Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.realtoraai.com/docs/llms.txt

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

Verify that a user has enough credits and budget for an AI action before executing it.

Endpoint

POST /functions/v1/check-ai-budget

Request body

ParameterTypeDescription
actionstringThe action to check (e.g., generate_reel)
estimated_costnumberEstimated cost of the action

Response

{
  "allowed": true,
  "remaining_budget": 4.85,
  "credits_balance": 45
}