Or jump from this list on a smaller screen.

This is a page from the Audivra documentation. Developer exportsindex: 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/estimate
Auth required

Authenticated. kind is tts, stt, video, dub, or lipsync. Lipsync uses duration_seconds only (no TTS characters).

Parameters

NameTypeRequiredDescription
kindstringNotts · stt · video · dub · lipsync (default video)
textstringNoScript for TTS/video/dub credit math
duration_secondsnumberNoKnown 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

StatusMeaning
400Unknown kind or text over the request cap
401Unauthorized

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.