- Large Language Model
- API Migration Guide
- Exclusive Feature
- Model Support
- OpenAI
- Anthropic
- Gemini
- China Model
- Chat (Baidu ERNIE)
- Chat (Tongyi Qianwen)
- Chat (Tongyi Qianwen-VL)
- Chat(Tongyi Qianwen-OCR)
- Chat (Zhipu GLM-4)
- Chat (Zhipu GLM-4V)
- Chat (Baichuan AI)
- Chat (Moonshot AI)
- Chat (Moonshot AI-Vision)
- Chat (01.AI)
- Chat (01.AI-VL)
- Chat (DeepSeek)
- Chat (DeepSeek-VL2)
- Chat (ByteDance Doubao)
- Chat (ByteDance Doubao-Vision)
- Chat(ByteDance Doubao Image Generation)
- Chat (Stepfun)
- Chat (Stepfun Multimodal)
- Chat (iFLYTEK Spark)
- Chat (SenseTime)
- Chat(Minimax)
- Chat (Tencent Hunyuan)
- SiliconFlow
- Open Source Model
- Large Language Model
- Chat(LLaMA3.3)
- Chat(LLaMA3.2 multimodal)
- Chat(LLaMA3.1)
- Chat(Mixtral-8x7B)
- Chat(Mistral-Large-2411)
- Chat(Mistral-small-2503)
- Chat(Pixtral-Large-2411multimodal)
- Chat(Gemma-7B、Gemma-3-27b-it)
- Chat(Gemma2-9B)
- Chat(Command R+)
- Chat(Qwen2)
- Chat(Qwen2.5)
- Chat(Qwen2.5-VL)
- Chat(Llama-3.1-nemotron)
- Chat(QwQ-32B、QwQ-Plus、QwQ-32B-Preview)
- Chat(Mistral-Large-2411) Copy
- Expert Model
- Other Models
- Image Generation
- DALL.E
- Stability.ai
- Text-to-image (Image Generation-V1)
- Generate (Image Generation-SD2)
- Generate (Image Generation-SD3-Ultra)
- Generate (Image Generation-SD3)
- Generate(Image Generation-SD3.5-Large)
- Generate(Image Generation-SD3.5-Medium)
- Generate(Image to Image-SD3)
- Generate(Image to Image-SD3.5-Large)
- Generate(Image to Image-SD3.5-Medium)
- Midjourney
- Midjourney-Relax
- 302.AI
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao
- Minimax
- ZHIPU
- Baidu
- Image Processing
- 302.AI
- Upscale
- Upscale-V2
- Upscale-V3
- Upscale-V4
- Super-Upscale
- Super-Upscale-V2
- Face-upscale
- Colorize
- Colorize-V2
- Removebg
- Removebg-V2
- Inpaint
- Erase
- Face-to-many
- Llava
- Relight
- Relight-background
- Relight-V2
- Face-swap-V2
- Fetch
- HtmltoPng
- SvgToPng
- image-translate
- image-translate-query
- image-translate-redo
- Flux-selfie
- Trellis(Image to 3D model)
- Pose-Transfer(Human Pose Transformation)
- Pose-Transfer(Human Pose Transformation Result)
- Virtual-Tryon
- Virtual-Tryon(Fetch Result)
- Denoise(AI Denoising)
- Deblur(AI Deblurring)
- 302.AI-ComfyUI
- Create Outfit Change Task
- Query Outfit Change Task Status
- Create Face Swap Task
- Query Face Swap Task Status
- Create a Task to Replace Any Item
- Check the Status of Any Object Replacement Task
- Create a Task to Transform Cartoon Characters into Real People
- Query the status of the task to turn a manga character into a real person
- Create Style Transfer Task
- Query the status of the style transfer task
- Vectorizer
- Stability.ai
- Glif
- Clipdrop
- Recraft
- BRIA
- Flux
- Flux-V1.1-Ultra-Redux(Image-to-image generation-Ultra)
- Flux-V1.1-Pro-Redux(Image-to-image generation-Pro)
- Flux-Dev-Redux(Image-to-image generation-Dev)
- Flux-Schnell-Redux(Image-to-image generation-Schnell)
- Flux-V1-Pro-Canny(Object consistency)
- Flux-V1-Pro-Depth(Depth consistency)
- Flux-V1-Pro-Fill(Partial repainting)
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao
- Kling
- 302.AI
- Video Generation
- Unified Interface
- 302.AI
- Stable Diffusion
- Luma AI
- Runway
- Kling
- Txt2Video(Text to Video 1.0 Rapid-5s)
- Txt2Video_HQ(Text to Video 1.5 HQ-5s)
- Txt2Video_HQ(Text to Video 1.5 HQ-10s)
- Image2Video(Image to Video 1.0 Rapid-5s)
- Image2Video(Image to Video 1.0 Rapid-10s)
- Image2Video(Image to Video 1.5 Rapid-5s)
- Image2Video(Image to Video 1.5 Rapid-10s)
- Image2Video_HQ(Image to Video 1.5 HQ-5s)
- Image2Video_HQ(Image to Video 1.5 HQ-10s)
- Extend_Video
- Txt2Video(Text to Video 1.6 Standard-5s)
- Txt2Video(Text to Video 1.6 Standard-10s)
- Txt2Video(Text to Video 1.6 HQ-5s)
- Txt2Video(Text to Video 1.6 HQ-10s)
- Image2Video(Image to Video 1.6 Standard-5s)
- Image2Video(Image to Video 1.6 Standard-10s)
- Image2Video(Image to Video 1.6 HQ-5s)
- Image2Video(Image to Video 1.6 HQ-10s)
- Image2Video (Multiple pictures for reference)
- Fetch
- CogVideoX
- Minimax
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan
- Vidu
- Tongyi Wanxiang
- Jimeng
- SiliconFlow
- Kunlun Tech
- Audio/Video Processing
- 302.AI
- Stable-Audio(instrumental generation)
- Transcript (Audio/Video to Text)
- Transcriptions(Speech to Text)
- Alignments(Subtitle Timing)
- WhisperX
- F5-TTS(Text to Speech)
- F5-TTS (Asynchronous Text-to-Speech)
- F5-TTS (Asynchronously Retrieve Results)
- mmaudio(Text-to-Speech)
- mmaudio(AI Video Voiceover)
- mmaudio (Asynchronous Result Retrieval)
- Diffrhythm(Song Generation)
- OpenAI
- Azure
- Suno
- Doubao
- Fish Audio
- Minimax
- Dubbingx
- Udio
- Elevenlabs
- 302.AI
- Information Processing
- 302.AI
- Admin Dashboard
- Information search
- Xiaohongshu_Search
- Xiaohongshu_Note
- Get_Home_Recommend
- Tiktok_Search
- Douyin_Search
- Twitter_Search
- Twitter_Post(X_Post)
- Twitter_User(X_User)
- Weibo_Post
- Search_Video
- Youtube_Info
- Youtube_Subtitles(Youtube Obtain Subtitles)
- Bilibili_Info(Bilibili Obtain Video Information)
- MP_Article_List(Get the list of WeChat official account articles)
- MP_Article(Retrieve WeChat Official Account articles)
- File processing
- Code execution
- Tavily
- SearchAPI
- Search1API
- Doc2x
- Glif
- Jina
- DeepL
- Exa
- Bocha AI
- RSSHub
- Firefly card
- Youdao
- Mistral
- 302.AI
- RAG-related
- Tools API
- AI Video Creation Hub
- AI Paper Writing
- AI Podcast Production
- AI Writing Assistant
- AI Video Real-Time Translation
- AI Document Editor
- AI Prompt Expert
- Al Answer Machine
- AI 3D Modeling
- AI Search Master 3.0
- AI Vector Graphics Generation
- Web Data Extraction Tool
- AI PPT Generator
- Generate PPT interface with one click
- File parsing
- Generate an outline
- Generate outline content
- Get template options
- Generate PPT interface (synchronous interface)
- Load PPT data
- Generate PPT interface (asynchronous interface)
- Asynchronous query generates PPT status
- Download PPT
- Add/update custom PPT templates
- Pagination query PPT template
- AI Academic Paper Search
- Help Center
Asynchronously Generate Podcast Audio
POST
/302/podcast/async/generate
Podcast generation tool experience link:https://302.ai/tools/podcast/
Request
Authorization
Header Params
Authorization
string
optional
Example:
Bearer 302apikey
Body Params application/json
speakers
array [object {4}]
required
id
integer
speaker id
>= 1
provider
enum<string>
TTS类型
Allowed values:
openaiazuredoubaofishcustomminimax
speaker
string
音色name
speed
number
语速
Default:
1
contents
array [object {3}]
required
content
string
对话内容
speaker
integer
speakid
name
string
对话人物名字
useBgm
boolean
开启BGM
Default:
true
autoGenBgm
boolean
是否使用默认生成BGM的提示词
Default:
true
bgmPrompt
string
自定义BGM提示词
uiLang
string
语言
modelName
string
模型
bgmVolume
integer
optional
Default:
0
Example
{
"speakers": [
{
"id": 1,
"provider": "doubao",
"speaker": "zh_female_shuangkuaisisi_moon_bigtts",
"speed": 1
},
{
"id": 2,
"provider": "doubao",
"speaker": "zh_female_cancan_mars_bigtts",
"speed": 1
}
],
"contents": [
{
"content": "世界你好!欢迎来到我们的播客节目。",
"speaker": 1,
"name": ""
},
{
"content": "你好,明杰!今天我们要聊些什么呢?",
"speaker": 2,
"name": ""
},
{
"content": "今天我们来探索一下这个主题:世界与你的见面会是怎样的?",
"speaker": 1,
"name": ""
},
{
"content": "哇,听起来很抽象。不过好像也有很深的思考空间。",
"speaker": 2,
"name": ""
},
{
"content": "没错!你觉得在这个全球化的时代,我们与世界的关系有什么变化?",
"speaker": 1,
"name": ""
},
{
"content": "嗯,我想技术让我们更紧密联系在一起,这改变了我们对世界的体验。",
"speaker": 2,
"name": ""
},
{
"content": "确实,科技让距离不再是障碍。这对文化交流有很大影响。",
"speaker": 1,
"name": ""
},
{
"content": "对,文化的相互影响和理解变得更简单,也更复杂。",
"speaker": 2,
"name": ""
},
{
"content": "复杂在哪儿呢?能举个例子吗?",
"speaker": 1,
"name": ""
},
{
"content": "比方说,跨文化的误解依然存在,不过这也促进了学习和适应。",
"speaker": 2,
"name": ""
},
{
"content": "那你认为这种动态对个人发展有什么好处呢?",
"speaker": 1,
"name": ""
},
{
"content": "我觉得它拓宽了我们的视野,让我们更有全球意识。",
"speaker": 2,
"name": ""
},
{
"content": "这一点很有启发性。你觉得我们应该如何面对这种变化?",
"speaker": 1,
"name": ""
},
{
"content": "保持开放的心态,不断学习。用好科技工具而不被其操控。",
"speaker": 2,
"name": ""
},
{
"content": "这是个好建议!那么,对未来你有什么期待吗?",
"speaker": 1,
"name": ""
},
{
"content": "我希望我们能通过理解和包容,建设更和平的世界。",
"speaker": 2,
"name": ""
},
{
"content": "说得好!那我想,就这里,我们来谈谈技术的角色。",
"speaker": 1,
"name": ""
},
{
"content": "好啊!技术其实是双刃剑,它推动进步,但也带来挑战。",
"speaker": 2,
"name": ""
},
{
"content": "挑战主要体现在哪些方面呢?",
"speaker": 1,
"name": ""
},
{
"content": "信息过载、隐私问题…这些都是需要谨慎面对的。",
"speaker": 2,
"name": ""
},
{
"content": "我们怎样才能在享受技术便利时,保护自己的权益?",
"speaker": 1,
"name": ""
},
{
"content": "使用工具时了解其可能的影响,保持适度批判和审视态度。",
"speaker": 2,
"name": ""
},
{
"content": "这是个重要的提醒。那么,接下来的话题呢?",
"speaker": 1,
"name": ""
},
{
"content": "也许可以聊一下教育在这种变化中的作用。",
"speaker": 2,
"name": ""
},
{
"content": "教育是关键。它不仅是知识传递,还能塑造思维。",
"speaker": 1,
"name": ""
},
{
"content": "对,尤其在多元文化背景下,教育培养出对话及合作的能力。",
"speaker": 2,
"name": ""
},
{
"content": "确实,思维的开放性可以决定未来的合作方式。",
"speaker": 1,
"name": ""
},
{
"content": "那我们可以如何推动教育上的创新?",
"speaker": 2,
"name": ""
},
{
"content": "我认为鼓励跨学科的学习和实际经验是非常重要的。",
"speaker": 1,
"name": ""
},
{
"content": "是的,知识不仅仅在书本里,实践能让学习更加立体。",
"speaker": 2,
"name": ""
},
{
"content": "说到这里,有没有什么特别的教育案例能分享?",
"speaker": 1,
"name": ""
},
{
"content": "当然,有些学校在课程中加入编程和设计思维,非常有趣。",
"speaker": 2,
"name": ""
},
{
"content": "听起来很不错!那么,最后一部分我们来总结一下。",
"speaker": 1,
"name": ""
},
{
"content": "好,我们聊到了全球化、技术作用和教育创新。",
"speaker": 2,
"name": ""
},
{
"content": "是的,给我最大的启发是我们每个人都能成为积极的变革者。",
"speaker": 1,
"name": ""
},
{
"content": "对,努力理解和连接世界,这就是我们的任务。",
"speaker": 2,
"name": ""
},
{
"content": "非常感谢思颖与你的讨论,今天的内容很丰富。",
"speaker": 1,
"name": ""
},
{
"content": "谢谢明杰,也感谢大家的收听!",
"speaker": 2,
"name": ""
},
{
"content": "如果你喜欢我们的节目,请继续关注!下次见。",
"speaker": 1,
"name": ""
}
],
"useBgm": false,
"autoGenBgm": true,
"bgmPrompt": "一段优美的钢琴曲",
"uiLang": "zh",
"modelName": "gpt-4o-2024-08-06",
"bgmVolume": -10
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/302/podcast/async/generate' \
--header 'Authorization: Bearer 302apikey' \
--header 'Content-Type: application/json' \
--data-raw '{
"speakers": [
{
"id": 1,
"provider": "doubao",
"speaker": "zh_female_shuangkuaisisi_moon_bigtts",
"speed": 1.0
},
{
"id": 2,
"provider": "doubao",
"speaker": "zh_female_cancan_mars_bigtts",
"speed": 1.0
}
],
"contents": [
{
"content": "世界你好!欢迎来到我们的播客节目。",
"speaker": 1,
"name": ""
},
{
"content": "你好,明杰!今天我们要聊些什么呢?",
"speaker": 2,
"name": ""
},
{
"content": "今天我们来探索一下这个主题:世界与你的见面会是怎样的?",
"speaker": 1,
"name": ""
},
{
"content": "哇,听起来很抽象。不过好像也有很深的思考空间。",
"speaker": 2,
"name": ""
},
{
"content": "没错!你觉得在这个全球化的时代,我们与世界的关系有什么变化?",
"speaker": 1,
"name": ""
},
{
"content": "嗯,我想技术让我们更紧密联系在一起,这改变了我们对世界的体验。",
"speaker": 2,
"name": ""
},
{
"content": "确实,科技让距离不再是障碍。这对文化交流有很大影响。",
"speaker": 1,
"name": ""
},
{
"content": "对,文化的相互影响和理解变得更简单,也更复杂。",
"speaker": 2,
"name": ""
},
{
"content": "复杂在哪儿呢?能举个例子吗?",
"speaker": 1,
"name": ""
},
{
"content": "比方说,跨文化的误解依然存在,不过这也促进了学习和适应。",
"speaker": 2,
"name": ""
},
{
"content": "那你认为这种动态对个人发展有什么好处呢?",
"speaker": 1,
"name": ""
},
{
"content": "我觉得它拓宽了我们的视野,让我们更有全球意识。",
"speaker": 2,
"name": ""
},
{
"content": "这一点很有启发性。你觉得我们应该如何面对这种变化?",
"speaker": 1,
"name": ""
},
{
"content": "保持开放的心态,不断学习。用好科技工具而不被其操控。",
"speaker": 2,
"name": ""
},
{
"content": "这是个好建议!那么,对未来你有什么期待吗?",
"speaker": 1,
"name": ""
},
{
"content": "我希望我们能通过理解和包容,建设更和平的世界。",
"speaker": 2,
"name": ""
},
{
"content": "说得好!那我想,就这里,我们来谈谈技术的角色。",
"speaker": 1,
"name": ""
},
{
"content": "好啊!技术其实是双刃剑,它推动进步,但也带来挑战。",
"speaker": 2,
"name": ""
},
{
"content": "挑战主要体现在哪些方面呢?",
"speaker": 1,
"name": ""
},
{
"content": "信息过载、隐私问题…这些都是需要谨慎面对的。",
"speaker": 2,
"name": ""
},
{
"content": "我们怎样才能在享受技术便利时,保护自己的权益?",
"speaker": 1,
"name": ""
},
{
"content": "使用工具时了解其可能的影响,保持适度批判和审视态度。",
"speaker": 2,
"name": ""
},
{
"content": "这是个重要的提醒。那么,接下来的话题呢?",
"speaker": 1,
"name": ""
},
{
"content": "也许可以聊一下教育在这种变化中的作用。",
"speaker": 2,
"name": ""
},
{
"content": "教育是关键。它不仅是知识传递,还能塑造思维。",
"speaker": 1,
"name": ""
},
{
"content": "对,尤其在多元文化背景下,教育培养出对话及合作的能力。",
"speaker": 2,
"name": ""
},
{
"content": "确实,思维的开放性可以决定未来的合作方式。",
"speaker": 1,
"name": ""
},
{
"content": "那我们可以如何推动教育上的创新?",
"speaker": 2,
"name": ""
},
{
"content": "我认为鼓励跨学科的学习和实际经验是非常重要的。",
"speaker": 1,
"name": ""
},
{
"content": "是的,知识不仅仅在书本里,实践能让学习更加立体。",
"speaker": 2,
"name": ""
},
{
"content": "说到这里,有没有什么特别的教育案例能分享?",
"speaker": 1,
"name": ""
},
{
"content": "当然,有些学校在课程中加入编程和设计思维,非常有趣。",
"speaker": 2,
"name": ""
},
{
"content": "听起来很不错!那么,最后一部分我们来总结一下。",
"speaker": 1,
"name": ""
},
{
"content": "好,我们聊到了全球化、技术作用和教育创新。",
"speaker": 2,
"name": ""
},
{
"content": "是的,给我最大的启发是我们每个人都能成为积极的变革者。",
"speaker": 1,
"name": ""
},
{
"content": "对,努力理解和连接世界,这就是我们的任务。",
"speaker": 2,
"name": ""
},
{
"content": "非常感谢思颖与你的讨论,今天的内容很丰富。",
"speaker": 1,
"name": ""
},
{
"content": "谢谢明杰,也感谢大家的收听!",
"speaker": 2,
"name": ""
},
{
"content": "如果你喜欢我们的节目,请继续关注!下次见。",
"speaker": 1,
"name": ""
}
],
"useBgm": false,
"autoGenBgm": true,
"bgmPrompt": "一段优美的钢琴曲",
"uiLang": "zh",
"modelName": "gpt-4o-2024-08-06",
"bgmVolume": -10
}'
Responses
🟢200成功
application/json
Body
task_id
string
required
Example
{
"task_id": "string"
}
Modified at 2024-12-17 10:14:47