---
title: "Validate multi-speaker dialogue"
method: POST
path: "/v1/audio/speech/dialogue/validate"
tags: ["audio"]
---

# Validate multi-speaker dialogue

`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)
- URL: `https://api.beatra.ai/v1/audio/speech/dialogue/validate`
- Auth: none declared

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.

## Headers

- `authorization` string, nullable

## Request body

- DialogueValidateRequest: 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)
    - `voice` string, required: Opaque Beatra voice_id (preset or ready cloned voice; capabilities.supports_dialogue == true)
    - `input` string, required: Spoken line for this dialogue turn (up to 2,000 characters per turn and across all turns). Supports canonical speech markup such as {laugh}, {sigh}, {gasp}, {clear-throat}, {whisper}, {emotion happy}, {pron word /ipa/}, and {sub word spoken}.
    - `speaker` string, nullable: Optional human-readable character or role label (for example 'Host' or '主持人') used for output.segments[].speaker and subtitle attribution; never spoken.
    - `emotion` 'happy' | 'sad' | 'angry' | 'fearful' | 'disgusted' | 'surprised' | 'calm' | 'fluent', nullable: Optional turn-level discrete emotion preset
  - `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 `200`

Validation report and credit quote

- DialogueValidateResponse
  - `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).
    - `code` string, required: e.g. option_clamped / auto_routed
    - `message` string, required
    - `field` string, nullable

## Other responses

- `404`: Voice not found
- `422`: Invalid request or voice/model mismatch
- `503`: Dialogue synthesis model is currently unavailable

## Changes

- **2026-11-14** `2c7376c8e9cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beatra/apis/agent-service-api/changes/v1/audio/speech/dialogue/validate/post.md)

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) - [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/54a093c28eee?raw)
