Generate Slides
curl --request POST \
--url https://api.supapost.so/generate/slides \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>"
}
'import requests
url = "https://api.supapost.so/generate/slides"
payload = { "prompt": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>'})
};
fetch('https://api.supapost.so/generate/slides', 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.supapost.so/generate/slides",
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([
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.supapost.so/generate/slides"
payload := strings.NewReader("{\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.supapost.so/generate/slides")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.supapost.so/generate/slides")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"slides": [
{
"name": "Intro",
"background": {
"type": "gradient",
"gradientFrom": "#1a1a2e",
"gradientTo": "#16213e",
"gradientAngle": 135
}
}
],
"texts": [
{
"slide_index": 0,
"text": {
"content": "Rise & Grind",
"fontSize": 96,
"fontWeight": 800,
"x": 90,
"y": 800,
"width": 900,
"color": "#ffffff",
"textAlign": "center",
"lineHeight": 1.2,
"letterSpacing": 0,
"textTransform": "none",
"textShadow": {
"enabled": true,
"color": "#000000",
"offsetX": 2,
"offsetY": 2,
"blur": 4
},
"textBackground": {
"enabled": true,
"color": "#000000",
"paddingX": 12,
"paddingY": 6
},
"textStroke": {
"enabled": false,
"color": "#000000",
"width": 2
}
}
}
],
"images": [
{
"slide_index": 0,
"image_url": "https://cdn.supapost.so/assets/team123/1712000000-bg-slide-1.jpg"
}
]
}
Generation
Generate Slides
Generate a TikTok slideshow with AI-created backgrounds and text overlays
POST
/
generate
/
slides
Generate Slides
curl --request POST \
--url https://api.supapost.so/generate/slides \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>"
}
'import requests
url = "https://api.supapost.so/generate/slides"
payload = { "prompt": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>'})
};
fetch('https://api.supapost.so/generate/slides', 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.supapost.so/generate/slides",
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([
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.supapost.so/generate/slides"
payload := strings.NewReader("{\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.supapost.so/generate/slides")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.supapost.so/generate/slides")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"slides": [
{
"name": "Intro",
"background": {
"type": "gradient",
"gradientFrom": "#1a1a2e",
"gradientTo": "#16213e",
"gradientAngle": 135
}
}
],
"texts": [
{
"slide_index": 0,
"text": {
"content": "Rise & Grind",
"fontSize": 96,
"fontWeight": 800,
"x": 90,
"y": 800,
"width": 900,
"color": "#ffffff",
"textAlign": "center",
"lineHeight": 1.2,
"letterSpacing": 0,
"textTransform": "none",
"textShadow": {
"enabled": true,
"color": "#000000",
"offsetX": 2,
"offsetY": 2,
"blur": 4
},
"textBackground": {
"enabled": true,
"color": "#000000",
"paddingX": 12,
"paddingY": 6
},
"textStroke": {
"enabled": false,
"color": "#000000",
"width": 2
}
}
}
],
"images": [
{
"slide_index": 0,
"image_url": "https://cdn.supapost.so/assets/team123/1712000000-bg-slide-1.jpg"
}
]
}
An AI agent creates a multi-slide carousel from a text prompt. The agent generates gradient backgrounds, AI background images (via FLUX), and positioned text elements for each slide on a 1080x1920 canvas.
Authentication
string
Bearer token.
Bearer <supabase-jwt>.Body
string
required
Description of the slideshow you want to create. For example: “5-slide motivational carousel about morning routines”.
{
"slides": [
{
"name": "Intro",
"background": {
"type": "gradient",
"gradientFrom": "#1a1a2e",
"gradientTo": "#16213e",
"gradientAngle": 135
}
}
],
"texts": [
{
"slide_index": 0,
"text": {
"content": "Rise & Grind",
"fontSize": 96,
"fontWeight": 800,
"x": 90,
"y": 800,
"width": 900,
"color": "#ffffff",
"textAlign": "center",
"lineHeight": 1.2,
"letterSpacing": 0,
"textTransform": "none",
"textShadow": {
"enabled": true,
"color": "#000000",
"offsetX": 2,
"offsetY": 2,
"blur": 4
},
"textBackground": {
"enabled": true,
"color": "#000000",
"paddingX": 12,
"paddingY": 6
},
"textStroke": {
"enabled": false,
"color": "#000000",
"width": 2
}
}
}
],
"images": [
{
"slide_index": 0,
"image_url": "https://cdn.supapost.so/assets/team123/1712000000-bg-slide-1.jpg"
}
]
}
⌘I