> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ElevenLabs Voice Design

> - Design candidate voices from a description and optional reference recording.
- Submit an asynchronous task and [query its status](/pages/en/api-manual/task-management/get-task-detail).
- On completion, read results[0].text and all results[0].previews. Each preview has a download URL and generated_voice_id.
- Present all previews and obtain the user's explicit choice before calling elevenlabs-voice-create.
- Bill actual returned preview text once at USD 0.08/1000 Unicode characters, without multiplying by candidate count. Save preview audio promptly.

`elevenlabs-voice-design` generates candidate voices and previews from a description. Describe language, perceived age, tone and delivery. An optional reference recording can guide the design if you have permission to use it.

1. Supply `voice_description` (20–1000 characters). Choose exactly one preview text mode: supply `text` (100–1000 characters), or set `auto_generate_text=true` and omit `text`.
2. [Query the task](https://docs.aihubmax.com/pages/en/api-manual/task-management/get-task-detail.md). On completion, read `results[0].text` and all of `results[0].previews[]`. Each candidate contains a preview `url` and `generated_voice_id`. Audio is returned as a download URL instead of Base64.
3. Present all candidates for listening and obtain the user's explicit choice. Only then send the selected `generated_voice_id` to [Voice Create](https://docs.aihubmax.com/pages/en/api-manual/audio-series/elevenlabs/elevenlabs-voice-create.md). Do not automatically save the first candidate or create every candidate.

`reference_audio_base64` accepts nonempty bare Base64 only, not a URL or Data URI. Use your own or authorized recordings. Optional `prompt_strength` ranges from 0–1: 0 favors the reference and 1 favors the description. `loudness` ranges from -1–1 (default 0.5), `guidance_scale` from 0–100 (default 5), `seed` from 0–2147483647, and `should_enhance` defaults to false. This design model does not support `quality`; this and other unknown fields are rejected.

Candidates preserve actual `media_type`, `duration_secs`, `language`, `detected_labels` and other metadata, with `file_name` and `file_size` added. Fields may be null, and parsers should allow new fields. Candidate voices usually share the same `text`. Present every returned candidate; their number follows the actual response. Candidates may expire, so create the chosen voice promptly.

The base price is **USD 0.08 per 1000 Unicode characters in the returned preview text**. Count response `text` once, without multiplying by the number of candidates or rounding to blocks of 1000. Descriptions and controls are free. Automatic text reserves 1000 characters; supplied text reserves its input length. Completion adjusts the reservation using actual returned text and the saved group multiplier. Failures follow the task refund rules.

Download preview audio promptly; retention follows file storage policy. `generated_voice_id` identifies a candidate awaiting creation. Speech synthesis uses the `voice_id` returned by Create.


## OpenAPI

````yaml openapi/en/elevenlabs-voice-design.json POST /v1/audios/generations
openapi: 3.1.0
info:
  title: ElevenLabs Voice Design
  version: '1.0'
servers:
  - url: https://api.aihubmax.com/e
security:
  - BearerAuth: []
paths:
  /v1/audios/generations:
    post:
      tags:
        - Audio > Voice Creation
      summary: ElevenLabs Voice Design
      description: >-
        - Design candidate voices from a description and optional reference
        recording.

        - Submit an asynchronous task and [query its
        status](/pages/en/api-manual/task-management/get-task-detail).

        - On completion, read results[0].text and all results[0].previews. Each
        preview has a download URL and generated_voice_id.

        - Present all previews and obtain the user's explicit choice before
        calling elevenlabs-voice-create.

        - Bill actual returned preview text once at USD 0.08/1000 Unicode
        characters, without multiplying by candidate count. Save preview audio
        promptly.
      operationId: elevenlabs-voice-design
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ElevenLabsVoiceDesignRequest'
            examples:
              自动生成候选音色和试听文本:
                summary: Generate voice candidates and automatic preview text
                value:
                  model: elevenlabs-voice-design
                  voice_description: 自然、温暖、清晰的成年中文旁白声音，适合长篇讲解。
                  auto_generate_text: true
      responses:
        '200':
          $ref: '#/components/responses/TaskCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    ElevenLabsVoiceDesignRequest:
      type: object
      required:
        - model
        - voice_description
      properties:
        model:
          const: elevenlabs-voice-design
          description: >-
            Design candidate voices from a description and optional reference
            recording.
          enum:
            - elevenlabs-voice-design
          examples:
            - elevenlabs-voice-design
          type: string
          default: elevenlabs-voice-design
        voice_description:
          description: >-
            Describe the voice in 20–1000 characters. Describe language, tone,
            perceived age and delivery; the description is not billed.
          maxLength: 1000
          minLength: 20
          type: string
          example: 自然、温暖、清晰的成年中文旁白声音，适合长篇讲解。
        text:
          anyOf:
            - maxLength: 1000
              minLength: 100
              type: string
            - type: 'null'
          default: null
          description: >-
            Preview text, 100–1000 characters. Supply text or set
            auto_generate_text=true, exclusively. Actual response text is billed
            once, without multiplying by candidate count.
          example: >-
            欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。欢迎收听今天的分享。
        auto_generate_text:
          default: false
          description: >-
            Generate preview text automatically. When enabled, omit text.
            Reserve 1000 characters and settle using the actual returned text.
          type: boolean
          example: true
        reference_audio_base64:
          anyOf:
            - minLength: 1
              type: string
            - type: 'null'
          default: null
          description: >-
            Optional reference recording as nonempty bare Base64. URLs and Data
            URIs are not accepted. Use your own or authorized recordings.
          example: <base64-encoded-audio>
        prompt_strength:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: >-
            Balance description and reference audio: 0 favors the reference, 1
            favors the description. Range: 0–1.
          example: 0.5
        loudness:
          default: 0.5
          description: 'Preview loudness, from -1 to 1. Default: 0.5.'
          maximum: 1
          minimum: -1
          type: number
          example: 0.5
        guidance_scale:
          default: 5
          description: >-
            How closely generation follows the voice description, from 0 to 100.
            Default: 5.
          maximum: 100
          minimum: 0
          type: number
          example: 5
        seed:
          anyOf:
            - maximum: 2147483647
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: Random seed, from 0 to 2147483647.
          example: 0
        should_enhance:
          default: false
          description: 'Whether to enhance the voice description. Default: false.'
          type: boolean
          example: false
      additionalProperties: false
    TaskResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1757165031
        id:
          type: string
          description: Task ID
          example: task-unified-1757165031-uyujaw3d
        model:
          type: string
          description: >-
            eleven-v4-text-to-speech: speech with a specified existing voice.
            eleven-v4-text-to-speech-custom-voice: also supports private voices.
            Both require voice_id and cost $0.00008 per Unicode character
            without rounding to 1000-character blocks.
        object:
          type: string
          description: Task type
          enum:
            - audio.generation.task
        progress:
          type: integer
          description: Task progress (0–100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          type: object
          description: Asynchronous task information
          properties:
            can_cancel:
              type: boolean
              description: Whether the task can be canceled
              example: true
            estimated_time:
              type: integer
              description: Estimated completion time in seconds
              example: 45
        type:
          type: string
          description: Output type
          enum:
            - audio
          example: audio
    ErrorResponse400:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Bad request
            type:
              type: string
              example: invalid_request_error
    ErrorResponse401:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: API密钥无效
            type:
              type: string
              example: authentication_error
    ErrorResponse402:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 账户余额不足
            type:
              type: string
              example: insufficient_quota
    ErrorResponse422:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Validation failed
            type:
              type: string
              example: validation_error
    ErrorResponse429:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Rate limit exceeded
            type:
              type: string
              example: rate_limit_error
    ErrorResponse500:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Internal server error
            type:
              type: string
              example: server_error
    ErrorResponse503:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 服务暂不可用，请稍后重试
            type:
              type: string
              example: service_unavailable
  responses:
    TaskCreated:
      description: Task created
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TaskResponse'
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse400'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse401'
    PaymentRequired:
      description: Insufficient balance
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse402'
    UnprocessableEntity:
      description: Validation failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse422'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse429'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse500'
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse503'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        All endpoints require Bearer authentication.

        Add this request header:

        `Authorization: Bearer YOUR_API_KEY`

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.