Endpoints
calculate-credits
Was this page helpful?
Estimate the credits for a complete render without authentication or a debit.
GET
/api/v1/calculate-credits
Describe the credit estimate contract
Authentication: Public
curl "https://reviral.ai/api/v1/calculate-credits"Responses
- 200
- Credit estimate contract
POST
/api/v1/calculate-credits
Estimate render or UGC-ad credits
Validates and estimates without a database write or credit debit. kind=ugc-ad requires an API key so the quote uses that account's rate; existing render and image-ad quotes remain public.
Authentication: Public
curl -X POST "https://reviral.ai/api/v1/calculate-credits" \
-H "Content-Type: application/json" \
--data '{"tier":"pro","mediaType":"ai-video","durationSec":30,"presetId":"stock"}'Responses
- 200
- Estimated credits and customer-safe breakdown
- 400
- Invalid body
- 401
- Key is missing, revoked, or invalid
- 429
- Too many requests
- 503
- Models or rate limiting are temporarily unavailable