curl --request POST \
--url https://api.weryai.com/v1/generation/podcast/generate/text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What are the breakthrough applications of artificial intelligence in healthcare",
"speakers": [
"travel-girl-english",
"leo-9328b6d2"
],
"language": "en",
"mode": "quick"
}
'import requests
url = "https://api.weryai.com/v1/generation/podcast/generate/text"
payload = {
"query": "What are the breakthrough applications of artificial intelligence in healthcare",
"speakers": ["travel-girl-english", "leo-9328b6d2"],
"language": "en",
"mode": "quick"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'What are the breakthrough applications of artificial intelligence in healthcare',
speakers: ['travel-girl-english', 'leo-9328b6d2'],
language: 'en',
mode: 'quick'
})
};
fetch('https://api.weryai.com/v1/generation/podcast/generate/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weryai.com/v1/generation/podcast/generate/text",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'What are the breakthrough applications of artificial intelligence in healthcare',
'speakers' => [
'travel-girl-english',
'leo-9328b6d2'
],
'language' => 'en',
'mode' => 'quick'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.weryai.com/v1/generation/podcast/generate/text"
payload := strings.NewReader("{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.weryai.com/v1/generation/podcast/generate/text")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/podcast/generate/text")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"desc": "Success",
"message": "Success",
"data": {
"task_id": "FdYwEeQIFzc",
"task_status": "waiting"
},
"success": true
}{
"status": 1001,
"desc": "Parameter error",
"message": "Prompt cannot be empty"
}{
"status": 1002,
"desc": "Authentication failed",
"message": "Invalid API Key"
}Submit Podcast Text Generation Task
Generate podcast content based on a query and selected speakers.
Important: When using mode: debate, you must provide exactly 2 speakers.
curl --request POST \
--url https://api.weryai.com/v1/generation/podcast/generate/text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "What are the breakthrough applications of artificial intelligence in healthcare",
"speakers": [
"travel-girl-english",
"leo-9328b6d2"
],
"language": "en",
"mode": "quick"
}
'import requests
url = "https://api.weryai.com/v1/generation/podcast/generate/text"
payload = {
"query": "What are the breakthrough applications of artificial intelligence in healthcare",
"speakers": ["travel-girl-english", "leo-9328b6d2"],
"language": "en",
"mode": "quick"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'What are the breakthrough applications of artificial intelligence in healthcare',
speakers: ['travel-girl-english', 'leo-9328b6d2'],
language: 'en',
mode: 'quick'
})
};
fetch('https://api.weryai.com/v1/generation/podcast/generate/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weryai.com/v1/generation/podcast/generate/text",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'What are the breakthrough applications of artificial intelligence in healthcare',
'speakers' => [
'travel-girl-english',
'leo-9328b6d2'
],
'language' => 'en',
'mode' => 'quick'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.weryai.com/v1/generation/podcast/generate/text"
payload := strings.NewReader("{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.weryai.com/v1/generation/podcast/generate/text")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/podcast/generate/text")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"What are the breakthrough applications of artificial intelligence in healthcare\",\n \"speakers\": [\n \"travel-girl-english\",\n \"leo-9328b6d2\"\n ],\n \"language\": \"en\",\n \"mode\": \"quick\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"desc": "Success",
"message": "Success",
"data": {
"task_id": "FdYwEeQIFzc",
"task_status": "waiting"
},
"success": true
}{
"status": 1001,
"desc": "Parameter error",
"message": "Prompt cannot be empty"
}{
"status": 1002,
"desc": "Authentication failed",
"message": "Invalid API Key"
}Authorizations
Authenticate using Bearer token. Get your API Key from the WeryAI Console.
Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx
Body
The question or topic for podcast generation
1 - 2000"What are the breakthrough applications of artificial intelligence in healthcare"
List of speaker IDs to use in the podcast (get from speakers/list endpoint). Note: When mode is 'debate', exactly 2 speakers are required.
1 - 2 elements["travel-girl-english", "leo-9328b6d2"]
Language code (e.g., en, zh, ja). Must match the language of the selected speakers.
"en"
Generation mode. Supported values: quick, debate, deep. Important: When using 'debate' mode, you must provide exactly 2 speakers.
"quick"
Callback URL for task completion notification
Caller ID
