Guides & Tutorials
1. Creating a Quiz Video from an Existing Script
1
"Water is essential for all living organisms. Humans should drink about 2 liters a day..."2
curl --request POST \
--url "https://shortgenius.com/api/v1/videos/drafts/script" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"script": "Water is essential for all living organisms. Humans should drink about 2 liters a day..."
}'3
curl --request POST \
--url "https://shortgenius.com/api/v1/videos/drafts/quiz" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"topic": "Hydration Best Practices",
"locale": "en-US"
}'{
"title": "Test Your Water Knowledge",
"caption": "Are you a water expert?",
"quiz": {
"questions": [...],
"results": {...}
}
}4
curl --request POST \
--url "https://shortgenius.com/api/v1/videos" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"content_type": "Quiz",
"locale": "en-US",
"connection_ids": ["<CONNECTION-ID>"],
"aspect_ratio": "9:16",
"title": "Test Your Water Knowledge",
"caption": "Are you a water expert?",
"quiz": {
"questions": [...],
"results": {...}
}
}'2. Summarizing News
1
curl --request POST \
--url "https://shortgenius.com/api/v1/videos/drafts/news" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"topic": "Latest Tech News",
"locale": "en-US"
}'2
3
curl --request POST \
--url "https://shortgenius.com/api/v1/videos" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"content_type": "News",
"locale": "en-US",
"connection_ids": ["<CONNECTION-ID>"],
"title": "Weekly Tech Recap",
"caption": "Your quick update on the latest in technology",
"scenes": [
{
"title": "Apple Releases New Device",
"caption": "Apple announces new product line..."
},
...
]
}'3. Bulk Video Creation
1
curl --request POST \
--url "https://shortgenius.com/api/v1/videos/topics" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"parent_topic": "Mental Health",
"locale": "en-US",
"number_of_topics": 10,
"content_type": "Custom"
}'2
const topics = [
/* from the /videos/topics response */
]
for (const t of topics) {
const draft = await fetch('https://shortgenius.com/api/v1/videos/drafts', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
topic: t,
duration: '90',
locale: 'en-US'
})
})
// handle the returned draft
}3
4. Creating AI Images & Adding Them to Video Scenes
1
2
3
Conclusion
Last updated