generate image background
curl --request POST \
--url https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"detail": "<string>",
"model": "nano-banana-pro",
"reference_images": [
{
"key": "<string>",
"url": "<string>"
}
],
"resolution": "2K"
}
'import requests
url = "https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate"
payload = {
"detail": "<string>",
"model": "nano-banana-pro",
"reference_images": [
{
"key": "<string>",
"url": "<string>"
}
],
"resolution": "2K"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
detail: '<string>',
model: 'nano-banana-pro',
reference_images: [{key: '<string>', url: '<string>'}],
resolution: '2K'
})
};
fetch('https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate', 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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate",
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([
'detail' => '<string>',
'model' => 'nano-banana-pro',
'reference_images' => [
[
'key' => '<string>',
'url' => '<string>'
]
],
'resolution' => '2K'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate"
payload := strings.NewReader("{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}"
response = http.request(request)
puts response.read_body{
"cause": "<string>",
"code": 123,
"data": "<string>",
"details": "<unknown>",
"msg": "<string>",
"rid": "<string>"
}{
"code": 123,
"msg": "<string>",
"retry_after": 2
}Media assets
Generate image background
Generate one image Podcast background. The endpoint fixes the asset destination; poll get_image_task with the returned ID.
POST
/
open
/
podcast
/
v1
/
image_backgrounds
/
generate
generate image background
curl --request POST \
--url https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"detail": "<string>",
"model": "nano-banana-pro",
"reference_images": [
{
"key": "<string>",
"url": "<string>"
}
],
"resolution": "2K"
}
'import requests
url = "https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate"
payload = {
"detail": "<string>",
"model": "nano-banana-pro",
"reference_images": [
{
"key": "<string>",
"url": "<string>"
}
],
"resolution": "2K"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
detail: '<string>',
model: 'nano-banana-pro',
reference_images: [{key: '<string>', url: '<string>'}],
resolution: '2K'
})
};
fetch('https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate', 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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate",
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([
'detail' => '<string>',
'model' => 'nano-banana-pro',
'reference_images' => [
[
'key' => '<string>',
'url' => '<string>'
]
],
'resolution' => '2K'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate"
payload := strings.NewReader("{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-services.podcastor.ai/open/podcast/v1/image_backgrounds/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"detail\": \"<string>\",\n \"model\": \"nano-banana-pro\",\n \"reference_images\": [\n {\n \"key\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"resolution\": \"2K\"\n}"
response = http.request(request)
puts response.read_body{
"cause": "<string>",
"code": 123,
"data": "<string>",
"details": "<unknown>",
"msg": "<string>",
"rid": "<string>"
}{
"code": 123,
"msg": "<string>",
"retry_after": 2
}MCP tool:
podcast_generate_image_background. OAuth scope: podcast.generate.Authorizations
Headers
Replay a completed identical request without repeating side effects.
Maximum string length:
128Body
application/json
One image Podcast background
Image prompt, up to 16000 characters.
Maximum string length:
160000: 9:16, 1: 16:9, 2: 1:1; covers also accept 3: 3:4 and 4: 4:3.
Available options:
0, 1, 2, 3, 4 Required range:
0 <= x <= 4Public model name, mapped to the existing Web model.
Available options:
nano-banana, nano-banana-pro, gpt-image-2 Optional GPT Image 2 quality.
Available options:
low, medium, high Optional reference images.
Show child attributes
Show child attributes
Output resolution; uses the existing Web price for the selected model.
Available options:
1K, 2K, 4K