voices

Clone a voice from an audio sample

Changed on
post/v1/voices

Request

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

Headers

x-request-id, string nullable
Idempotency-Key, string required
authorization, string nullable

Request body

VoiceCloneRequest required
metadata, object nullable

Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars

callback_url, string nullable

HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state

callback_signing_key_id, string nullable

Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.

model_options, object nullable

Per-model-family passthrough options; opaque to the platform, validated per model

sample, union required

Clean single-speaker voice sample (uploaded artifact or HTTPS URL), ~10s-5min

prompt, VoiceClonePrompt nullable

Optional aligned quality sample that sharpens clone similarity.

display_name, string required
model, 'auto' | 'minimax-voice-clone' | 'elevenlabs-voice-clone'

Clone engine. Omit unless the user explicitly asks for a specific clone engine; 'auto' (the default) lets the platform choose.

language, string nullable

Optional BCP-47 language hint for the cloned voice

gender, 'male' | 'female' | 'neutral' nullable

Optional speaker gender tag (male, female, or neutral); inferred automatically when omitted and unambiguous.

age_group, 'child' | 'youth' | 'adult' | 'senior' nullable

Optional speaker age group (child, youth, adult, or senior); inferred automatically when omitted and unambiguous.

use_case, string[] nullable

Optional recommended scenarios for this cloned voice (up to 5 items).

persona, string nullable

Optional short description of timbre, pace, and character (up to 200 characters).

preview_first, boolean nullable

Optional. true: hear the voice before paying. The clone and a short fixed preview are free; the voice waits (status pending_activation) up to 3 days until beatra.voices.activate charges the model's clone price once, and it is deleted automatically if not activated. Omit it for the normal clone, charged once and ready at once. Supported by minimax-voice-clone and elevenlabs-voice-clone (and auto). At most 3 previews started per account per UTC day and 5 waiting at once. Set language to the sample's spoken language so the fixed preview sentence matches it.

consent_attested, true required

Caller asserts it has the rights to clone this voice. Recorded, not verified.

Response

Clone task accepted; task output carries the new voice_id

TaskEnvelope required

Standard Task envelope.

Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.

object, 'task'
task_id, string required
status, 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required
capability, string required
workload_type, 'model' | 'social_operation'
model, string nullable

Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.

resolved_model, string nullable

Actual model that ran (null until execution starts; equals model for explicit-model calls)

model_selection_reason, unknown
social, SocialTaskIdentity nullable
metadata, object nullable
input, object nullable
progress, AppApiV1SchemasCommonTaskProgress nullable
output, object nullable
warnings, TaskWarning[]
error, AppApiV1SchemasCommonTaskError nullable
usage, UsageObject nullable
billing, TaskBilling nullable
callback, TaskCallback nullable
created_at, string date-time required
started_at, string date-time nullable
deadline_at, string date-time nullable
completed_at, string date-time nullable
cancel_requested_at, string date-time nullable
links, TaskLinks required

Changes

    • breaking

      removed the enum value doubao-voice-clone-2.0 of the request property model

    • info

      added the new optional request property preview_first

    • info

      added the new optional request property age_group

    3 more changes in this revision