Validate multi-speaker dialogue
Changed onPreflight check for a multi-speaker dialogue synthesis request: verifies model availability, voice eligibility (supports_dialogue=true), cloned-voice and character limits, compiles speech markup, and returns weighted characters, estimated duration, and credit price without creating a task or charging.
Request
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared
Headers
Request body
Read-only dialogue synthesis check and quote.
Dialogue synthesis model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4')
Ordered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices)
Optional BCP-47 language tag or 'auto'
Output audio container format (mp3, wav, opus, or pcm)
Optional output sample rate in Hz for mp3, wav, or pcm (omit for opus)
Generate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio
Optional text that comes right before this clip, for example the previous line of a dialogue or the previous paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its end is used (previous_text_tail_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
Optional text that comes right after this clip, for example the next line of a dialogue or the next paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its start is used (next_text_head_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
Optional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent)
Optional speaker similarity adherence from 0.0 to 1.0
Optional deterministic sampling seed (0 to 4294967295)
Optional provider-specific options under model_options.elevenlabs
Response
Validation report and credit quote
Resolved model that synthesize_dialogue will run on
Total billable Beatra weighted characters across all turns (per-turn max of raw input and compiled provider text; Han=2, other=1)
Total raw Unicode codepoints across turns[].input
Total compiled provider codepoints across turns
Deterministic estimated total dialogue duration in seconds
Non-blocking advisories: markup that was corrected or skipped (markup_adjusted), markup the model does not perform (markup_degraded), controls the model ignores (option_ignored), and voices scheduled for retirement (voice_retiring).
Changes
- info
endpoint added
- info