Skip to main content
POST
/
v1
/
generate_podcast
cURL
curl --request POST \
  --url https://api.contextlm.ai/v1/generate_podcast \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "dialogues": [
    {
      "role": "host",
      "content": "<string>"
    }
  ],
  "host": "<string>",
  "guest": "<string>"
}
'
{
  "audiobytes": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Podcast synthesis parameters

dialogues
object[]
required

The text input to be converted to podcast. Must be an alternating list of text and role.

host
string
required

The voice id to use in podcast synthesis

guest
string
required

The voice id to use in podcast synthesis

Response

Successful response

audiobytes
file