Create a Podcast Episode
Generate your first AI-powered podcast episode in just a few simple steps. This guide will walk you through creating a podcast from web resources and retrieving the generated audio.
Step 1: Create Content Request
Send a POST request to /content/create with your resources and specify audio as the output type:
curl -X POST "https://api.autocontentapi.com/content/Create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resources": [
{
"type": "website",
"content": "https://example.com/article-about-ai"
},
{
"type": "youtube",
"content": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
],
"outputType": "audio",
"text": "Create an engaging podcast discussion about AI developments",
"duration": "long"
}'Example Response
Important: Save the request_id - you'll need it to check the status and retrieve your audio!
Step 2: Poll for Status
Use the request_id to check the processing status by calling /content/Status/{id}:
While Processing
Status Codes:
0= Pending (queued for processing)5= Processing (generation in progress)100= Completed (audio ready!)
Step 3: Get Your Audio
When status reaches 100, the response includes your generated audio:
๐ Success! Your podcast is ready at the audio_url!
Resource Types
You can use different types of resources in your request:
website
Any web page URL
"https://techcrunch.com/article"
youtube
YouTube video URL
"https://www.youtube.com/watch?v=VIDEO_ID"
text
Direct text content
"Your custom instructions or content"
pdf
PDF document URL
"https://example.com/document.pdf"
Duration Options
Control the length of your generated podcast:
"short"- 3-5 minutes"default"- 8-12 minutes"long"- 15-20 minutes
Need a specific payload? Check the new Podcast Scenario Examples for copy-paste
curlrequests covering languages, durations, styles, and every supported resource type.
Tips for Better Results
Mix resource types - Combine websites, videos, and text for richer content
Provide clear instructions - Use the
textfield to guide the conversationCheck status regularly - Processing typically takes 2-5 minutes
Save the request_id - You'll need it to retrieve your audio
Error Handling
If something goes wrong, the status response will include error details:
What's Next?
๐ก Publish episodes via Create a Podcast Show
๐๏ธ Create custom hosts with Clone a Voice
๐ Turn finished audio into transcripts with Transcribe Audio
๐ Explore more Code Samples in different languages
๐ฃ๏ธ Learn about Custom Voices for personalized podcasts
๐ฎ Check out Advanced Integrations
โ Have questions? Visit our FAQ
Last updated