Request
Body Params application/json
resources
array [object {2}]
requiredAllowed values:texturlfile
デフォルトではオフ。有効にすると、モデルが入力内容から会話を生成します。
V3はデフォルトのプロンプトで、V6はポッドキャスト用の長文コンテンツを生成するプロンプトです。
{
"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 2024-12-17 10:19:31