Skip to main content
POST
/
v1
/
generation
/
podcast
/
generate
/
text
Submit Podcast Text Generation Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/podcast/generate/text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "What are the breakthrough applications of artificial intelligence in healthcare",
  "speakers": [
    "travel-girl-english",
    "leo-9328b6d2"
  ],
  "language": "en",
  "mode": "quick"
}
'
{
  "status": 200,
  "desc": "Success",
  "message": "Success",
  "data": {
    "task_id": "FdYwEeQIFzc",
    "task_status": "waiting"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

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

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json
query
string
required

The question or topic for podcast generation

Required string length: 1 - 2000
Example:

"What are the breakthrough applications of artificial intelligence in healthcare"

speakers
string[]
required

List of speaker IDs to use in the podcast (get from speakers/list endpoint). Note: When mode is 'debate', exactly 2 speakers are required.

Required array length: 1 - 2 elements
Example:
["travel-girl-english", "leo-9328b6d2"]
language
string
required

Language code (e.g., en, zh, ja)

Example:

"en"

mode
enum<string>
required

Generation mode. Important: When using 'debate' mode, you must provide exactly 2 speakers.

Available options:
quick,
debate,
deep
Example:

"quick"

webhook_url
string<uri>

Callback URL for task completion notification

caller_id
integer<int64>

Caller ID

Response

Task submitted 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