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 full-render credits
Validates and estimates a full render without authentication, a database write, or a credit debit.
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"}'Request body
| Field | Type | Required | Description |
|---|---|---|---|
| tier | string: base | pro | ultra | No | — |
| mediaType | string: ai-video | ai-moving | motion-graphics | stock-videos | user-upload | static-images | ai-action | No | — |
| durationSec | integer (min 15, max 300) | No | — |
| presetId | string | No | — |
| nbGenerations | integer (min 1, max 10) | No | — |
Responses
- 200
- Estimated credits and customer-safe breakdown
- 400
- Invalid body