Generate any audio content via API
requests
library (pip install requests
)
'YOUR_API_KEY'
in the examples below with your actual API key.
You can get an API key by logging into Wondercraft or creating an account (click “Go to studio” above) if you don’t already have one.
Please note, you’ll need to be on a paid plan to access the API.
You can create a new key by clicking on the user avater in the bottom left corner and selecting “API Keys”. There, you will be able to create a new key which you can use to authenticate your requests.
The API key should be passed in the header of your requests as X-API-KEY
.
/podcast
endpoint with a POST request.
Wondercraft AI will start a job that will generate a script for your podcast based on the provided prompt.
/podcast/{job_id}
endpoint with a GET request.
/podcast/scripted
endpoint instead. The payload for that request
looks slightly different. You will provide script segemnts, where each segment contains the text and the voice id for the
speaker.