Or jump from this list on a smaller screen.
This is a page from the Audivra documentation. Developer exports — index: http://127.0.0.1:3000/docs/llms.txt, full corpus: http://127.0.0.1:3000/docs/llms-full.txt, OpenAPI: http://127.0.0.1:3000/docs/openapi.json, Postman: http://127.0.0.1:3000/docs/postman.json. Press ⌘K to search docs.
POST /api/v1/estimate
Preview credits, duration, and plan caps before you spend the prepaid wallet.
POST
/api/v1/estimateAuth required
Authenticated. kind is tts, stt, video, dub, or lipsync. Lipsync uses duration_seconds only (no TTS characters).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| kind | string | No | tts · stt · video · dub · lipsync (default video) |
| text | string | No | Script for TTS/video/dub credit math |
| duration_seconds | number | No | Known media length for STT/dub/video |
Request body
JSON
{
"kind": "video",
"text": "A sixty-word studio intro for the weekly briefing."
}Response
JSON
{
"kind": "video",
"duration_seconds": 12,
"characters": 58,
"credits": 121,
"media_seconds_cap": 1800,
"generate_per_minute": 100,
"batch_max": 500
}Errors
| Status | Meaning |
|---|---|
| 400 | Unknown kind or text over the request cap |
| 401 | Unauthorized |
Examples
Estimate a dub
curl -X POST http://127.0.0.1:3000/api/v1/estimate \
-H "Authorization: Bearer sk_live_…" \
-H "Content-Type: application/json" \
-d '{"kind":"dub","duration_seconds":120,"text":"Translated script"}'Plan caps: Limits.