Asynchronous Generate Podcast Transcripts
Request
Body Params application/json
resources
array [object {2}]
requiredAllowed values:texturlfile
By default it is not enabled. The model will regenerate the dialogue. If enabled, the model will extract dialogue content from the input.
V3 is the default prompt, while V6 is the prompt for generating long-form podcast content.
{
"resources": [
{
"type": "text",
"content": "天苍苍野茫茫风吹草动见牛羊"
}
],
"speakerNums": 2,
"lang": "zh",
"modelName": "gpt-4o-mini",
"isExtract": false,
"customPrompt": "",
"version": "v3",
"names": []
}
Request samples
curl --location --request POST 'https://api.302.ai/302/podcast/async/text' \
--header 'Authorization: Bearer 302apikey' \
--header 'Content-Type: application/json' \
--data-raw '{
"resources": [
{
"type": "text",
"content": "天苍苍野茫茫风吹草动见牛羊"
}
],
"speakerNums": 2,
"lang": "zh",
"modelName": "gpt-4o-mini",
"isExtract": false,
"customPrompt": "",
"version": "v3",
"names": []
}'
Responses
application/json Modified at 2025-04-02 03:54:10