v47

latestOpenAPI 3.0.2raw.githubusercontent.com2026-08-01360485.4 KB
Audio Projects

AI Voice Generator

Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.

post/v1/ai-voice-generator

Request body

namestring

Give your audio a custom name for easy identification.

Example request

{
  "name": "My Voice Generator audio",
  "style": {
    "prompt": "Hello, how are you?",
    "voice_name": "Elon Musk"
  }
}

Response

Success

idstring required

Unique ID of the audio. Use it with the Get audio Project API to fetch status and downloads.

credits_chargedinteger required

The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.

If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.

Example response

{
  "id": "cuid-example",
  "credits_charged": 1
}