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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Queue Voice Changer

> Queue a speech-to-speech conversion, re-recording a source recording in a different voice while preserving its delivery, pacing and timing.

Supply the source recording exactly one of two ways: as a `multipart/form-data` upload in the `file` field, or as an http(s) `audio_url` in a JSON body. Supplying both, or neither, is rejected. When you pass a URL, Venice fetches and validates the bytes itself and forwards only those bytes to the provider — the URL is never handed onward.

The recording is validated from its binary signature rather than its filename or declared content type, so the accepted containers published as `accepted_audio_formats` in `/models` are enforced on the actual bytes. Recordings above the size limit or longer than `max_source_audio_duration_seconds` are rejected before any charge.

Billing is based on the length of the source recording, measured server-side and rounded up to the next whole minute; the measured length is returned as `duration_seconds` so it can be reconciled against `/audio/voice-changer/quote`. A queued conversion has already been charged, so this request is not safe to retry: if the response is lost, poll `/audio/voice-changer/retrieve` rather than queueing again.

Call [`/audio/voice-changer/quote`](https://docs.venice.ai/api-reference/endpoint/audio/voice-changer/quote) to estimate cost, then poll [`/audio/voice-changer/retrieve`](https://docs.venice.ai/api-reference/endpoint/audio/voice-changer/retrieve) with the returned `queue_id` until the conversion finishes. A queued conversion has already been charged — if this response is lost, poll retrieve rather than queueing again. If you keep converted media after retrieval, call [`/audio/voice-changer/complete`](https://docs.venice.ai/api-reference/endpoint/audio/voice-changer/complete) once you have downloaded it.

Voice-changer models are not accepted on [`/audio/queue`](https://docs.venice.ai/api-reference/endpoint/audio/queue). See the [Voice Changer guide](https://docs.venice.ai/guides/media/voice-changer.md) for a full walkthrough.

## Postman Collection

For additional examples, please see this [Postman Collection](https://www.postman.com/veniceai/workspace/venice-ai-workspace/folder/38652128-93377fa7-eef6-4239-a7e1-80bffc5fcb0e?action=share\&source=copy-link\&creator=48156591).

***


## OpenAPI

````yaml POST /audio/voice-changer/queue
openapi: 3.0.0
info:
  description: The Venice.ai API.
  termsOfService: https://venice.ai/legal/tos
  title: Venice.ai API
  version: '20261130.171848'
  x-guidance: >-
    Venice.ai is an OpenAI-compatible inference API supporting text, image,
    audio, and video generation.


    **Authentication options:**

    - API Key: Use Bearer token in Authorization header

    - x402 Wallet: Use a prepaid x402 credit balance via EVM or Solana wallet
    (no account required)


    **For x402 wallet access:**

    1. POST /x402/top-up without headers to get payment requirements

    2. Choose one of the returned Base or Solana payment options and sign a USDC
    payment using the x402 SDK

    3. POST /x402/top-up with PAYMENT-SIGNATURE header to add credits

    4. Call a chat, image, audio or embeddings endpoint with SIGN-IN-WITH-X
    header (video and voice changer require an API key)


    **Pricing:** Prepaid credits consumed per request. Check /models for
    available models and their capabilities.
servers:
  - url: https://api.venice.ai/api/v1
security:
  - BearerAuth: []
tags:
  - description: >-
      Generate speech/audio, transcribe audio, and manage asynchronous audio
      generation jobs.
    name: Audio
  - description: >-
      Given a list of messages comprising a conversation, the model will return
      a response. Supports multimodal inputs including text, images, audio
      (input_audio), and video (video_url) for compatible models.
    name: Chat
  - description: >-
      Create vector embeddings from text. `input` must be a string or an array
      of strings. Token arrays are not supported. LangChain OpenAIEmbeddings
      must set `check_embedding_ctx_length=False` to send text instead of
      tiktoken IDs.
    name: Embeddings
  - description: >-
      Evaluate a state against typed questions and get structured answers
      (yes/no probabilities, option picks with distributions, rubric scores).
      **Beta**: This API is currently in beta and may be unstable.
      Request/response schemas and behavior may change without notice.
    name: Decisions
  - description: List and describe the various models available in the API.
    name: Models
  - description: Generate and manipulate images using AI models.
    name: Image
  - description: Generate videos using AI models.
    name: Video
  - description: List and retrieve character information for use in completions.
    name: Characters
  - description: >-
      Billing and usage analytics. **Beta**: This API is currently in beta and
      may be unstable. Endpoints, request/response schemas, and behavior may
      change without notice.
    name: Billing
  - description: Proxy JSON-RPC requests to blockchain nodes. Billed per credit.
    name: Crypto RPC
  - description: >-
      Wallet-based API access using the x402 protocol. No API key required —
      authenticate with an EVM or Solana wallet.


      **How it works:**

      1. **Authenticate** — Send a `SIGN-IN-WITH-X` header (base64-encoded
      signed SIWX payload) with any request. EVM wallets sign an EIP-4361 SIWE
      message; Solana wallets sign the Solana SIWX message with Ed25519. See the
      `siwx` security scheme for the exact format.

      2. **Top up** — `POST /x402/top-up` without a payment header returns an
      `accepts` array with Base and Solana USDC payment options. Choose one
      entry, sign it using the x402 SDK (`npm install x402`), and re-submit with
      the `PAYMENT-SIGNATURE` header (the legacy `X-402-Payment` and `X-PAYMENT`
      names are also accepted).

      3. **Use an inference endpoint** — Chat, image, audio and embeddings
      endpoints accept `siwx` as an alternative to `BearerAuth`; video and voice
      changer require `BearerAuth`. Charges are deducted from your x402 credit
      balance.

      4. **Monitor balance** — `GET /x402/balance/{walletAddress}` returns your
      current balance. The `X-Balance-Remaining` response header on inference
      calls also reports it.


      **Quick start (5 lines):**

      ```

      import { VeniceClient } from 'venice-x402-client'

      const venice = new VeniceClient(process.env.WALLET_KEY)

      await venice.topUp(10) // $10 USDC on a supported x402 rail

      const res = await venice.chat({ model: 'zai-org-glm-5-1', messages: [{
      role: 'user', content: 'Hello!' }] })

      ```


      **Payment:** USDC on Base (chain ID 8453) or Solana mainnet. Minimum
      top-up: $5.
    name: x402
externalDocs:
  description: Venice.ai API documentation
  url: https://docs.venice.ai
paths:
  /audio/voice-changer/queue:
    post:
      tags:
        - Audio
      summary: /api/v1/audio/voice-changer/queue
      description: >-
        Queue a speech-to-speech conversion, re-recording a source recording in
        a different voice while preserving its delivery, pacing and timing.


        Supply the source recording exactly one of two ways: as a
        `multipart/form-data` upload in the `file` field, or as an http(s)
        `audio_url` in a JSON body. Supplying both, or neither, is rejected.
        When you pass a URL, Venice fetches and validates the bytes itself and
        forwards only those bytes to the provider — the URL is never handed
        onward.


        The recording is validated from its binary signature rather than its
        filename or declared content type, so the accepted containers published
        as `accepted_audio_formats` in `/models` are enforced on the actual
        bytes. Recordings above the size limit or longer than
        `max_source_audio_duration_seconds` are rejected before any charge.


        Billing is based on the length of the source recording, measured
        server-side and rounded up to the next whole minute; the measured length
        is returned as `duration_seconds` so it can be reconciled against
        `/audio/voice-changer/quote`. A queued conversion has already been
        charged, so this request is not safe to retry: if the response is lost,
        poll `/audio/voice-changer/retrieve` rather than queueing again.
      operationId: queueVoiceChanger
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/QueueVoiceChangerRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/QueueVoiceChangerRequest'
      responses:
        '200':
          description: Voice conversion queued successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                    description: >-
                      The model that is running the conversion. Only
                      voice-changer models are accepted on the
                      `/api/v1/audio/voice-changer` endpoints.
                    example: elevenlabs-voice-changer
                  queue_id:
                    type: string
                    description: >-
                      Pass this to /audio/voice-changer/retrieve to poll for the
                      converted audio, and to /audio/voice-changer/complete when
                      finished.
                    example: 0190f2c4-9c1e-7a3b-8f42-2c9d5e7a1b34
                  status:
                    type: string
                    enum:
                      - QUEUED
                    description: Always `QUEUED`. The provider has accepted the job.
                    example: QUEUED
                  duration_seconds:
                    type: number
                    description: >-
                      Length of the source recording in seconds, measured
                      server-side, and therefore the exact quantity billed for
                      this request. Use it to reconcile against the estimate
                      from /audio/voice-changer/quote.
                    example: 52
                required:
                  - model
                  - queue_id
                  - status
                  - duration_seconds
                additionalProperties: false
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailedError'
        '401':
          description: |-
            - Authentication failed
            - This model is only available to Pro users
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '402':
          description: >-
            Insufficient USD or Diem balance to complete request. Visit
            https://venice.ai/settings/api to add credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '403':
          $ref: '#/components/responses/ApiKeyIpRestrictedError'
        '413':
          description: >-
            The request payload is too large. Please reduce the size of your
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayloadTooLargeError'
        '422':
          description: >-
            Your prompt violates the content policy of Venice.ai or the model
            provider
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentViolationError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '500':
          description: Inference processing failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
        '503':
          description: The model is at capacity. Please try again later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
components:
  schemas:
    QueueVoiceChangerRequest:
      type: object
      properties:
        model:
          type: string
          description: >-
            The voice-changer model to run. Models that are not voice changers
            are not supported here; use the `/api/v1/audio` endpoints instead.
          example: elevenlabs-voice-changer
        file:
          type: string
          description: >-
            The source recording (multipart/form-data, field name "file").
            Accepted containers are listed per model as `accepted_audio_formats`
            in /models. Mutually exclusive with `audio_url`.
          format: binary
        audio_url:
          type: string
          description: >-
            Publicly reachable http(s) URL of the source recording. Venice
            fetches and validates the bytes itself and forwards only those bytes
            to the provider, so the URL is never handed onward. Mutually
            exclusive with the multipart `file` field.
          example: https://example.com/source-recording.mp3
        voice:
          type: string
          description: >-
            The target voice: one of the model’s `voices` from /models, or a
            provider Voice ID when the model reports `supports_custom_voice_id`.
            Defaults to the model’s `default_voice`.
          example: Aria
        remove_background_noise:
          type: boolean
          description: Strip background noise from the source recording before conversion.
          example: false
        seed:
          type: integer
          minimum: 0
          description: Seed for reproducible output. Omit for a non-deterministic result.
          example: 42
      required:
        - model
      additionalProperties: false
    DetailedError:
      type: object
      properties:
        details:
          type: object
          properties: {}
          description: Details about the incorrect input
          example:
            _errors: []
            field:
              _errors:
                - Field is required
        error:
          type: string
          description: A description of the error
      required:
        - error
    StandardError:
      type: object
      properties:
        error:
          type: string
          description: A description of the error
      required:
        - error
    PayloadTooLargeError:
      type: object
      properties:
        code:
          type: string
          enum:
            - PAYLOAD_TOO_LARGE
          description: Machine-readable error code.
          example: PAYLOAD_TOO_LARGE
        error:
          type: string
          description: A description of the error
          example: File exceeds the maximum allowed size of 25 MB.
      required:
        - code
        - error
    ContentViolationError:
      type: object
      properties:
        error:
          type: string
          description: A description of the error
        suggested_prompt:
          type: string
          description: >-
            An optional provider-suggested replacement prompt that complies with
            content policy.
          example: >-
            A cinematic instrumental track inspired by stormy weather and
            dramatic tension.
      required:
        - error
    ApiKeyIpRestrictedError:
      type: object
      properties:
        error:
          type: string
          enum:
            - >-
              This API key is restricted to configured IP addresses, and this
              request's source IP is not allowed
          description: A description of the error
          example: >-
            This API key is restricted to configured IP addresses, and this
            request's source IP is not allowed
      required:
        - error
  responses:
    ApiKeyIpRestrictedError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiKeyIpRestrictedError'
      description: >-
        This API key is restricted to configured IP addresses, and this
        request's source IP is not allowed
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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