curl --request POST \
--url https://api.slidevid.ai/v1/project/create/script-to-video \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"script": "Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.",
"voiceId": "confident_voice_id",
"presetSettings": {
"mediaType": "ai-images",
"preset": "realistic",
"quality": "pro"
},
"musicId": "2",
"aspectRatio": "ratio_9_16",
"caption": {
"preset": "beast",
"alignment": "bottom",
"disabled": false
},
"language": "en",
"addStickers": true,
"audio": {
"speed": 1,
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0,
"useSpeakerBoost": true
},
"webhook": "https://yoursite.com/webhook",
"metadata": {
"contentType": "educational",
"topic": "artificial-intelligence"
}
}
'import requests
url = "https://api.slidevid.ai/v1/project/create/script-to-video"
payload = {
"script": "Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.",
"voiceId": "confident_voice_id",
"presetSettings": {
"mediaType": "ai-images",
"preset": "realistic",
"quality": "pro"
},
"musicId": "2",
"aspectRatio": "ratio_9_16",
"caption": {
"preset": "beast",
"alignment": "bottom",
"disabled": False
},
"language": "en",
"addStickers": True,
"audio": {
"speed": 1,
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0,
"useSpeakerBoost": True
},
"webhook": "https://yoursite.com/webhook",
"metadata": {
"contentType": "educational",
"topic": "artificial-intelligence"
}
}
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({
script: 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.',
voiceId: 'confident_voice_id',
presetSettings: {mediaType: 'ai-images', preset: 'realistic', quality: 'pro'},
musicId: '2',
aspectRatio: 'ratio_9_16',
caption: {preset: 'beast', alignment: 'bottom', disabled: false},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {contentType: 'educational', topic: 'artificial-intelligence'}
})
};
fetch('https://api.slidevid.ai/v1/project/create/script-to-video', 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.slidevid.ai/v1/project/create/script-to-video",
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([
'script' => 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.',
'voiceId' => 'confident_voice_id',
'presetSettings' => [
'mediaType' => 'ai-images',
'preset' => 'realistic',
'quality' => 'pro'
],
'musicId' => '2',
'aspectRatio' => 'ratio_9_16',
'caption' => [
'preset' => 'beast',
'alignment' => 'bottom',
'disabled' => false
],
'language' => 'en',
'addStickers' => true,
'audio' => [
'speed' => 1,
'stability' => 0.5,
'similarityBoost' => 0.75,
'style' => 0,
'useSpeakerBoost' => true
],
'webhook' => 'https://yoursite.com/webhook',
'metadata' => [
'contentType' => 'educational',
'topic' => 'artificial-intelligence'
]
]),
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.slidevid.ai/v1/project/create/script-to-video"
payload := strings.NewReader("{\n \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\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.slidevid.ai/v1/project/create/script-to-video")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.slidevid.ai/v1/project/create/script-to-video")
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 \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"videoId": "vid_s2v_abc123xyz",
"projectId": "proj_s2v_abc123xyz",
"status": "STARTED"
},
"message": "Script to Video successfully created"
}
{
"success": false,
"message": "script: Script is required"
}
{
"success": false,
"message": "voiceId: Voice not found"
}
Script to Video
Create videos from scripts with AI-generated or custom media
curl --request POST \
--url https://api.slidevid.ai/v1/project/create/script-to-video \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"script": "Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.",
"voiceId": "confident_voice_id",
"presetSettings": {
"mediaType": "ai-images",
"preset": "realistic",
"quality": "pro"
},
"musicId": "2",
"aspectRatio": "ratio_9_16",
"caption": {
"preset": "beast",
"alignment": "bottom",
"disabled": false
},
"language": "en",
"addStickers": true,
"audio": {
"speed": 1,
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0,
"useSpeakerBoost": true
},
"webhook": "https://yoursite.com/webhook",
"metadata": {
"contentType": "educational",
"topic": "artificial-intelligence"
}
}
'import requests
url = "https://api.slidevid.ai/v1/project/create/script-to-video"
payload = {
"script": "Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.",
"voiceId": "confident_voice_id",
"presetSettings": {
"mediaType": "ai-images",
"preset": "realistic",
"quality": "pro"
},
"musicId": "2",
"aspectRatio": "ratio_9_16",
"caption": {
"preset": "beast",
"alignment": "bottom",
"disabled": False
},
"language": "en",
"addStickers": True,
"audio": {
"speed": 1,
"stability": 0.5,
"similarityBoost": 0.75,
"style": 0,
"useSpeakerBoost": True
},
"webhook": "https://yoursite.com/webhook",
"metadata": {
"contentType": "educational",
"topic": "artificial-intelligence"
}
}
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({
script: 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.',
voiceId: 'confident_voice_id',
presetSettings: {mediaType: 'ai-images', preset: 'realistic', quality: 'pro'},
musicId: '2',
aspectRatio: 'ratio_9_16',
caption: {preset: 'beast', alignment: 'bottom', disabled: false},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {contentType: 'educational', topic: 'artificial-intelligence'}
})
};
fetch('https://api.slidevid.ai/v1/project/create/script-to-video', 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.slidevid.ai/v1/project/create/script-to-video",
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([
'script' => 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.',
'voiceId' => 'confident_voice_id',
'presetSettings' => [
'mediaType' => 'ai-images',
'preset' => 'realistic',
'quality' => 'pro'
],
'musicId' => '2',
'aspectRatio' => 'ratio_9_16',
'caption' => [
'preset' => 'beast',
'alignment' => 'bottom',
'disabled' => false
],
'language' => 'en',
'addStickers' => true,
'audio' => [
'speed' => 1,
'stability' => 0.5,
'similarityBoost' => 0.75,
'style' => 0,
'useSpeakerBoost' => true
],
'webhook' => 'https://yoursite.com/webhook',
'metadata' => [
'contentType' => 'educational',
'topic' => 'artificial-intelligence'
]
]),
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.slidevid.ai/v1/project/create/script-to-video"
payload := strings.NewReader("{\n \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\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.slidevid.ai/v1/project/create/script-to-video")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.slidevid.ai/v1/project/create/script-to-video")
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 \"script\": \"Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.\",\n \"voiceId\": \"confident_voice_id\",\n \"presetSettings\": {\n \"mediaType\": \"ai-images\",\n \"preset\": \"realistic\",\n \"quality\": \"pro\"\n },\n \"musicId\": \"2\",\n \"aspectRatio\": \"ratio_9_16\",\n \"caption\": {\n \"preset\": \"beast\",\n \"alignment\": \"bottom\",\n \"disabled\": false\n },\n \"language\": \"en\",\n \"addStickers\": true,\n \"audio\": {\n \"speed\": 1,\n \"stability\": 0.5,\n \"similarityBoost\": 0.75,\n \"style\": 0,\n \"useSpeakerBoost\": true\n },\n \"webhook\": \"https://yoursite.com/webhook\",\n \"metadata\": {\n \"contentType\": \"educational\",\n \"topic\": \"artificial-intelligence\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"videoId": "vid_s2v_abc123xyz",
"projectId": "proj_s2v_abc123xyz",
"status": "STARTED"
},
"message": "Script to Video successfully created"
}
{
"success": false,
"message": "script: Script is required"
}
{
"success": false,
"message": "voiceId: Voice not found"
}
Overview
Script to Video transforms your written scripts into engaging videos with voice narration and auto-generated or custom media. This format is ideal for:- Educational content and tutorials
- Social media content creation
- Marketing videos
- Storytelling and narrative content
- News-style videos
Endpoint
POST /v1/project/create/script-to-video
Required Fields
/v1/voice/list. The voice used for narrating the script.media is not provided)Show Preset Settings Object
Show Preset Settings Object
ai-images: AI-generated images based on scriptai-videos: AI-generated video clipsmedia: Use stock mediagameplay: Use gameplay footage
cinematic, anime, realistic, cartoonbase, pro, or ultraShow Caption Object
Show Caption Object
default, beast, umi, tiktok, wrap1, wrap2, ariel, slidevid, classic, active, bubble, glass, comic, glow, pastel, neon, retroTV, red, marker, modern, blue, vivid.top, middle, or bottomtrue to hide captions on the videoratio_9_16: Vertical (TikTok, Reels, Shorts) - Recommendedratio_16_9: Horizontal (YouTube)ratio_1_1: Square (Instagram)
en, esOptional Fields
/v1/music/list for background music.presetSettings.Show Media Object
Show Media Object
video or imagepresetSettings.mediaType is gameplay)Show Gameplay Settings Object
Show Gameplay Settings Object
minecraft, subway-s, temple-run, gta- Minecraft:
minecraft-1throughminecraft-8 - Subway S:
subway-s-1throughsubway-s-11 - Temple Run:
temple-run-1throughtemple-run-8 - GTA:
gta-1throughgta-12
Show Audio Settings Object
Show Audio Settings Object
{
"campaignId": "summer2024",
"contentType": "educational"
}
Request Examples
With AI-Generated Images
const response = await fetch('https://api.slidevid.ai/v1/project/create/script-to-video', {
method: 'POST',
headers: {
'x-api-key': process.env.SLIDEVID_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
script: 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere.',
voiceId: 'confident_voice_id',
presetSettings: {
mediaType: "ai-images",
preset: "realistic",
quality: "pro"
},
musicId: "2",
aspectRatio: 'ratio_9_16',
caption: {
preset: 'beast',
alignment: 'bottom',
disabled: false
},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {
contentType: 'educational',
topic: 'artificial-intelligence'
}
})
});
const data = await response.json();
console.log('Video ID:', data.data.videoId);
console.log('Project ID:', data.data.projectId);
With AI-Generated Videos
const createAIImageVideo = async () => {
const response = await fetch('https://api.slidevid.ai/v1/project/create/script-to-video', {
method: 'POST',
headers: {
'x-api-key': process.env.SLIDEVID_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'AI Technology Explainer',
script: 'Artificial intelligence is transforming the way we work and live. From smart assistants to self-driving cars, AI is everywhere. Let\'s explore how this technology is shaping our future.',
voiceId: 'confident_voice_id',
presetSettings: {
mediaType: 'ai-videos',
preset: 'anime',
quality: 'base'
},
musicId: 'music_ambient_01',
aspectRatio: 'ratio_9_16',
caption: {
preset: 'modern',
alignment: 'bottom',
disabled: false
},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {
contentType: 'educational',
topic: 'artificial-intelligence'
}
})
});
return await response.json();
};
With Custom Media
const createCustomMediaVideo = async () => {
const response = await fetch('https://api.slidevid.ai/v1/project/create/script-to-video', {
method: 'POST',
headers: {
'x-api-key': process.env.SLIDEVID_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Product Showcase',
script: 'Introducing our revolutionary new product. It\'s designed to make your life easier and more productive. Watch as we demonstrate its incredible features.',
voiceId: 'enthusiastic_voice_id',
media: [
{
id: 'intro_shot',
type: 'video',
title: 'Product Intro',
url: 'https://your-cdn.com/intro.mp4',
durationInFrames: 150,
isAIGenerated: true
},
{
id: 'demo_shot',
type: 'video',
title: 'Product Demo',
url: 'https://your-cdn.com/demo.mp4',
durationInFrames: 200,
isAIGenerated: false
},
{
id: 'feature_image',
type: 'image',
title: 'Feature Highlight',
url: 'https://your-cdn.com/feature.jpg',
durationInFrames: 75,
isAIGenerated: false
}
],
musicId: 'music_upbeat_01',
aspectRatio: 'ratio_9_16',
caption: {
preset: 'wrap1',
alignment: 'bottom',
disabled: false
},
presetSettings: {
mediaType: 'media'
},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {
contentType: 'educational',
topic: 'artificial-intelligence'
}
})
});
return await response.json();
};
With Gameplay
const createGamingVideo = async () => {
const response = await fetch('https://api.slidevid.ai/v1/project/create/script-to-video', {
method: 'POST',
headers: {
'x-api-key': process.env.SLIDEVID_API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Gaming Tips Video',
script: 'Want to level up your gaming skills? Here are three pro tips that will help you dominate your opponents. Tip one: always check your surroundings...',
voiceId: 'energetic_voice_id',
presetSettings: {
mediaType: 'gameplay'
},
gameplaySettings: {
selectedGame: 'minecraft',
selectedVideo: 'minecraft-1'
},
musicId: 'music_upbeat_01',
aspectRatio: 'ratio_9_16',
caption: {
preset: 'beast',
alignment: 'top',
disabled: false
},
language: 'en',
addStickers: true,
audio: {
speed: 1,
stability: 0.5,
similarityBoost: 0.75,
style: 0,
useSpeakerBoost: true
},
webhook: 'https://yoursite.com/webhook',
metadata: {
contentType: 'educational',
topic: 'artificial-intelligence'
}
})
});
return await response.json();
};
Response
{
"success": true,
"data": {
"videoId": "vid_s2v_abc123xyz",
"projectId": "proj_s2v_abc123xyz",
"status": "STARTED"
},
"message": "Script to Video successfully created"
}
{
"success": false,
"message": "script: Script is required"
}
{
"success": false,
"message": "voiceId: Voice not found"
}
Webhook Notification
When your video is ready, we’ll POST to your webhook URL:{
"status": "COMPLETED",
"data": {
"videoId": "vid_s2v_abc123xyz",
"status": "COMPLETED",
"url": "https://cdn.slidevid.ai/videos/abc123xyz.mp4",
"shareUrl": "https://cdn.slidevid.ai/shared/abc123xyz.mp4",
"metadata": {
"projectId": "proj_s2v_abc123xyz",
"productId": "PROD-001"
}
},
"message": "Video completed"
}
200 status code. We’ll retry up to 3 times if the request fails.Media Types
Available media types forpresetSettings.mediaType:
| Type | Description |
|---|---|
ai-images | AI-generated images based on your script content |
ai-videos | AI-generated video clips synchronized with narration |
media | Stock media automatically selected based on script |
gameplay | Gameplay footage from popular games |
Caption Presets
Available caption presets for thecaption.preset field:
| Preset | Description |
|---|---|
default | Default caption style with bold text and shadow effects |
beast | Bold uppercase style with Komika font |
umi | Yellow glowing text style |
tiktok | Viral & trendy style, perfect for social media |
wrap1 | Wrapped style with red background highlight |
wrap2 | Wrapped style with blue background highlight (uppercase) |
ariel | Bold uppercase style with purple highlight |
slidevid | Brand style with purple background |
classic | Clean, simple captions with black background |
active | Green background with bold text |
bubble | White background bubble style |
glass | Glassmorphic transparency effect |
comic | Comic Sans font with colorful style |
glow | Pink and orange glow effects |
pastel | Soft pastel pink background |
neon | Green neon glow effect |
retroTV | Retro TV style with cyan glow |
red | Red glow effect with white text |
marker | Yellow marker/highlighter style |
modern | Contemporary white background style |
blue | Blue background style |
vivid | Vibrant pink background with uppercase text |
Best Practices
Write Clear Scripts
Choose the Right Media Type
Match Voice to Content
Use Webhooks
Error Handling
| Error | Description | Solution |
|---|---|---|
script: Script is required | Missing or empty script | Add the script field with your content |
voiceId: Voice not found | Invalid voice ID | Use a valid voice ID from /v1/voice/list |
presetSettings.preset: Preset is required | Missing preset when using auto-generated media | Add the preset field in presetSettings |
webhook: Must be a valid HTTPS URL | Invalid webhook URL | Ensure webhook URL starts with https:// |
media: Cannot have more than 50 media items | Too many media items | Reduce media array to 50 items or fewer |
Not enough credits | Insufficient credits | Top up your account credits |
Next Steps
List Voices
List Music
List Videos
Webhooks Guide
Authorizations
Body
The script for the video narration (1-10,000 characters)
1 - 10000Voice ID from /v1/voice/list
30Settings for auto-generated media
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Video aspect ratio
ratio_9_16, ratio_16_9, ratio_1_1 Language code (2 characters)
en, es 2Video name (max 100 characters)
100Music ID from /v1/music/list for background music
30Custom media items (max 50). If not provided, media will be auto-generated.
50Show child attributes
Show child attributes
Settings for gameplay footage
Show child attributes
Show child attributes
Voice audio settings
Show child attributes
Show child attributes
Enable automatic sticker generation for the video
HTTPS URL to receive completion notification
500Custom metadata object (max 5KB)