POST
/
podcast

Authorizations

X-API-KEY
string
headerrequired

Body

application/json

A request to start a job that generates an audio file for a podcast with a script generated by AI using the provided prompt. An optional list of Voice IDs can be provided to control the audio generation output. If no voice_ids are provided, defaults of up to 2 speakers will be chosen.

prompt
string
required

The prompt for the episode, can include links

voice_ids
string[]

A list of voice_ids to use for the generated audio. If the script has multiple speakers, we will use the voices from this list in the order then appear in. All ids in this list must be unique. If no IDs are provided, up to 2 defaults will be used.

music_spec
object | null

An optional spec for adding background music to the generated script. Note that if the chosenmusic track is longer than the duration of the generated script, it will be cut off.

Response

200 - application/json
job_id
string
required

The job ID for the episode generation. The status of this job can be queried using the/podcast/{job_id} endpoint.