Skip to main content
POST
/
v1
/
generation
/
podcast
/
generate
/
{taskId}
/
audio
Generate Podcast Audio
curl --request POST \
  --url https://api.weryai.com/v1/generation/podcast/generate/{taskId}/audio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "scripts": [
    {
      "speaker_id": "travel-girl-english",
      "speaker_name": "Mia",
      "content": "Many people are asking about the breakthrough applications of AI in healthcare. From diagnostic assistance to personalized treatment plans, AI technology is profoundly transforming the entire medical industry. Let's discuss this topic today."
    },
    {
      "speaker_id": "leo-9328b6d2",
      "speaker_name": "Leo",
      "content": "Absolutely! I heard that AI can now analyze medical images in seconds with accuracy that even exceeds experienced doctors. That's truly amazing."
    }
  ]
}
EOF
{
  "status": 200,
  "desc": "Success",
  "message": "Success",
  "data": {
    "task_id": "FdYwEeQIFzc",
    "task_status": "processing"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Path Parameters

taskId
string
required

Task ID from text generation

Body

application/json
scripts
object[]

Custom podcast scripts. If not provided, the default text from the task will be used.

Example:
[
{
"speaker_id": "travel-girl-english",
"speaker_name": "Mia",
"content": "Many people are asking about the breakthrough applications of AI in healthcare."
}
]
webhook_url
string<uri>

Callback URL for task completion notification

caller_id
integer<int64>

Caller ID

Response

Audio generation started successfully

status
integer

HTTP status code

Example:

200

desc
string

Status description

Example:

"Success"

message
string

Response message

Example:

"Success"

data
object
success
boolean

Indicates if the request was successful

Example:

true