audio

Validate multi-speaker dialogue

Changed on

Preflight 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.

post/v1/audio/speech/dialogue/validate

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Headers

authorization, string nullable

Request body

DialogueValidateRequest required

Read-only dialogue synthesis check and quote.

model, 'auto' | 'elevenlabs-v4-turbo' | 'elevenlabs-v4'

Dialogue synthesis model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4')

turns, DialogueTurnInput[] required

Ordered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices)

language, string nullable

Optional BCP-47 language tag or 'auto'

format, 'mp3' | 'wav' | 'opus' | 'pcm'

Output audio container format (mp3, wav, opus, or pcm)

sample_rate, 8000 | 16000 | 22050 | 24000 | 32000 | 44100 nullable

Optional output sample rate in Hz for mp3, wav, or pcm (omit for opus)

subtitle_enable, boolean

Generate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio

previous_text, string nullable

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.

next_text, string nullable

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.

stability, number nullable

Optional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent)

similarity_boost, number nullable

Optional speaker similarity adherence from 0.0 to 1.0

seed, integer nullable

Optional deterministic sampling seed (0 to 4294967295)

model_options, object nullable

Optional provider-specific options under model_options.elevenlabs

Response

Validation report and credit quote

DialogueValidateResponse required
valid, true
model, string required

Resolved model that synthesize_dialogue will run on

turn_count, integer required
unique_voices, integer required
cloned_voices, integer required
characters, integer required

Total billable Beatra weighted characters across all turns (per-turn max of raw input and compiled provider text; Han=2, other=1)

raw_characters, integer required

Total raw Unicode codepoints across turns[].input

compiled_characters, integer required

Total compiled provider codepoints across turns

estimated_credits, string required
estimated_duration_seconds, number required

Deterministic estimated total dialogue duration in seconds

currency, 'credits'
warnings, TaskWarning[]

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