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

# Voice Cloning

> Clone a reusable voice from a single audio file.

> [!TIP]
>
> You can also submit through the unified task endpoint `POST /v1/task/submit` with `model` set to `suno/create-voice` and the parameters inside `input`. Both behave and bill the same.

> [accordion] Task result
>
> What the fetch result holds once the task succeeds
>
> When the task succeeds, `data.persona_id` is the ID of the new voice. Pass it as `persona_id` when generating, covering or extending to sing with that voice.
>
> ```json theme={null}
> {
>   "code": "success",
>   "data": {
>     "task_id": "5adac6ee-...",
>     "action": "create-voice",
>     "model": "suno/create-voice",
>     "status": "SUCCESS",
>     "progress": "100%",
>     "persona_id": "c2f0e6a1-..."
>   }
> }
> ```


## OpenAPI

````yaml en/openapi/suno.json POST /suno/v2/create-voice
openapi: 3.1.0
info:
  title: Suno API
  version: 1.0.0
  description: Suno
servers:
  - url: https://api.ephone.ai
security:
  - bearerAuth: []
paths:
  /suno/v2/create-voice:
    post:
      summary: Voice Cloning
      description: Clone a reusable voice from a single audio file.
      operationId: suno_create_voice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                audio_url:
                  type: string
                  description: >-
                    **Audio URL**: A publicly downloadable audio URL. Eight
                    minutes or less recommended. MP3, WAV, or M4A.
                notify_hook:
                  type: string
                  format: uri
                  description: >-
                    **Notify hook**: when the task ends, the same content as the
                    fetch result is POSTed to this URL (a public http / https
                    URL). Omit it to poll instead.
              required:
                - audio_url
            example:
              audio_url: https://example.com/audio.mp3
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
              example:
                code: success
                message: success
                data:
                  task_id: 5adac6ee-...
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error
                message: music_id is required
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Invalid Token
                  type: rix_api_error
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Too many requests, please try again later
                  type: rix_api_error
components:
  schemas:
    SubmitResponse:
      type: object
      properties:
        code:
          type: string
          enum:
            - success
        message:
          type: string
        data:
          type: object
          properties:
            task_id:
              type: string
              description: Task ID.
          required:
            - task_id
      required:
        - code
        - data
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    GatewayError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send your API key in the `Authorization: Bearer YOUR_API_KEY` header.'

````

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