{
"timeline": {
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "text",
"text": "{{ HEADLINE }}",
"alignment": {
"horizontal": "center",
"vertical": "center"
},
"font": {
"color": "#000000",
"family": "Montserrat ExtraBold",
"size": 72,
"lineHeight": 1
},
"width": 467,
"height": 229
},
"start": 0,
"length": "auto",
"fit": "none",
"scale": 1,
"offset": {
"x": 0,
"y": 0.317
},
"position": "center",
"transition": {
"in": "wipeLeft",
"out": "wipeLeft"
}
}
]
},
{
"clips": [
{
"length": "auto",
"asset": {
"type": "image",
"src": "https://templates.shotstack.io/automated-tiktok-video-scary-story/44e93eda-067e-43d4-8949-24ba3eeda33d.png"
},
"start": 0,
"scale": 0.2,
"offset": {
"x": 0,
"y": 0.317
},
"position": "center",
"transition": {
"out": "wipeLeft",
"in": "wipeLeft"
}
}
]
},
{
"clips": [
{
"length": "auto",
"asset": {
"voice": "Amy",
"text": "{{ VOICEOVER }}",
"type": "text-to-speech"
},
"start": 0,
"alias": "VOICEOVER"
}
]
},
{
"clips": [
{
"length": "end",
"asset": {
"type": "caption",
"src": "alias://VOICEOVER",
"background": {
"color": "#ffffff",
"padding": 20,
"borderRadius": 8
},
"font": {
"color": "#000000",
"size": "36",
"family": "Montserrat SemiBold"
}
},
"start": 0
}
]
},
{
"clips": [
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_2_PROMPT }}"
},
"start": 4,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "zoomOut"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_4_PROMPT }}"
},
"start": 12,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideRight"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_6_PROMPT }}"
},
"start": 20,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideDown"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_8_PROMPT }}"
},
"start": 28,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "zoomOut"
},
{
"fit": "none",
"scale": 1,
"length": "end",
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_10_PROMPT }}"
},
"start": 36,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideRight"
}
]
},
{
"clips": [
{
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_1_PROMPT }}"
},
"start": 0,
"transition": {
"out": "fade"
},
"effect": "zoomIn",
"position": "center"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_3_PROMPT }}"
},
"start": 8,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideLeft",
"offset": {
"x": 0.021,
"y": 0
},
"position": "center"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_5_PROMPT }}"
},
"start": 16,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideUp"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_7_PROMPT }}"
},
"start": 24,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "zoomIn"
},
{
"fit": "none",
"scale": 1,
"length": 5,
"asset": {
"width": "768",
"height": "1280",
"type": "text-to-image",
"prompt": "{{ IMAGE_9_PROMPT }}"
},
"start": 32,
"transition": {
"out": "fade",
"in": "fade"
},
"effect": "slideLeft"
}
]
}
]
},
"output": {
"format": "mp4",
"fps": 25,
"size": {
"width": 720,
"height": 1280
}
},
"merge": [
{
"find": "HEADLINE",
"replace": "Gripped by Darkness"
},
{
"find": "VOICEOVER",
"replace": "Late one stormy night, Mira heard a knock coming from the old cellar door, the one that had been locked for years. She crept down the stairs, her heart racing as the knocking grew louder. When she reached the door, her breath caught. The air felt cold and heavy. With shaking hands, she unlocked it, revealing a pitch-black void. A cold, clawed hand suddenly reached out, gripping her wrist tightly. She screamed, but before she could pull away, it yanked her into the darkness. The door slammed shut, and the house fell into eerie silence."
},
{
"find": "IMAGE_1_PROMPT",
"replace": "A black and white painting of a dark, old house interior at night. The walls are lined with decaying wallpaper, and shadows loom in every corner. A small, dusty staircase leads down to an old, weathered door in the cellar. The atmosphere is eerie, filled with silence and a sense of dread. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism."
},
{
"find": "IMAGE_2_PROMPT",
"replace": "A black and white painting of a young woman, Mira, with long, dark hair and wide, fearful eyes. She is standing at the top of the stairs, looking nervously down toward the cellar door. Her hands are gripping the railing tightly, her face lit with dim light. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark illustration, dark fantasy illustration, grimdark art, dark surrealism."
},
{
"find": "IMAGE_3_PROMPT",
"replace": "A black and white painting of Mira slowly descending the stairs, each step creaking under her weight. The shadows seem to stretch unnaturally across the walls as she approaches the cellar door. Her face is filled with apprehension. The room is dimly lit, but the door itself is cloaked in shadow. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark illustration, dark fantasy art, dark surrealism."
},
{
"find": "IMAGE_4_PROMPT",
"replace": "A black and white painting of Mira standing directly in front of the old cellar door. Her hand is extended, trembling, as she reaches for the rusted key in the lock. The door looks ancient, with deep cracks running along its wooden surface. Shadows behind her swirl ominously. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark art style, dark fantasy illustration, grimdark art."
},
{
"find": "IMAGE_5_PROMPT",
"replace": "A black and white painting of the moment when Mira unlocks the door. As the door cracks open slightly, pure darkness spills out, and a cold, unnatural breeze escapes. The room behind her is almost swallowed by the thick shadows. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark fantasy illustration, grimdark art, dark surrealism."
},
{
"find": "IMAGE_6_PROMPT",
"replace": "A black and white painting of Mira standing frozen in terror as she peers into the pitch-black void beyond the door. There is nothing but endless darkness on the other side. The room around her is dimly lit by a single flickering light, casting eerie, long shadows. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark art style, grimdark art, dark surrealism."
},
{
"find": "IMAGE_7_PROMPT",
"replace": "A black and white painting of a cold, shadowy hand emerging from the void, reaching out to grab Mira\u2019s wrist. The hand is gaunt and unnaturally long, its fingers sharp and claw-like. Mira\u2019s face is frozen in horror as she tries to pull away. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism."
},
{
"find": "IMAGE_8_PROMPT",
"replace": "A black and white painting of Mira being pulled towards the dark void by the cold, shadowy hand. Her body is tilted backward as she resists, but the hand is too strong. The room around her warps and distorts as she\u2019s dragged into the darkness. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark fantasy illustration, grimdark art, dark surrealism."
},
{
"find": "IMAGE_9_PROMPT",
"replace": "A black and white painting of Mira halfway into the dark void, her figure partially swallowed by the darkness. The shadowy hand grips her tightly as she is pulled further in. The cellar door hangs wide open, revealing nothing but pure darkness beyond. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, grimdark art, dark surrealism."
},
{
"find": "IMAGE_10_PROMPT",
"replace": "A black and white painting of the cellar door slamming shut with an ominous force. The room is now silent and empty, with only faint shadows lingering where Mira once stood. The house feels abandoned and eerie. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism."
}
]
}Create engaging TikTok videos with this automated template that combines historical facts with AI-generated images and voiceovers. This template allows you to easily generate videos by replacing its merge fields with fascinating insights, and accompany this with a voiceover and AI generated images. This template simplifies the process with AI-powered text-to-image and text-to-speech through Shotstack Workflows. Perfect for content creators looking to help with content creation.
No account needed until you render.
Render with your AI assistant
Add the Shotstack MCP server to your editor, then paste the prompt
| Output | MP4 |
|---|---|
| Size | 720 × 1280 (9:16) |
| Length | 37s |
| Frame rate | 25 fps |
| Tracks / clips | 6 / 14 |
| Assets used | 1 caption, 1 image, 1 text, 10 text-to-image, 1 text-to-speech |
| Soundtrack | no |
| Merge fields | 12 |
Send a merge array with your values for these fields:
| Field | Default value |
|---|---|
{{ HEADLINE }} | Gripped by Darkness |
{{ VOICEOVER }} | Late one stormy night, Mira heard a knock coming from the old cellar door, the one that had been locked for years. She crept down the stairs, her heart racing as the knocking grew louder. When she reached the door, her breath caught. The air felt cold and heavy. With shaking hands, she unlocked it, revealing a pitch-black void. A cold, clawed hand suddenly reached out, gripping her wrist tightly. She screamed, but before she could pull away, it yanked her into the darkness. The door slammed shut, and the house fell into eerie silence. |
{{ IMAGE_1_PROMPT }} | A black and white painting of a dark, old house interior at night. The walls are lined with decaying wallpaper, and shadows loom in every corner. A small, dusty staircase leads down to an old, weathered door in the cellar. The atmosphere is eerie, filled with silence and a sense of dread. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism. |
{{ IMAGE_2_PROMPT }} | A black and white painting of a young woman, Mira, with long, dark hair and wide, fearful eyes. She is standing at the top of the stairs, looking nervously down toward the cellar door. Her hands are gripping the railing tightly, her face lit with dim light. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark illustration, dark fantasy illustration, grimdark art, dark surrealism. |
{{ IMAGE_3_PROMPT }} | A black and white painting of Mira slowly descending the stairs, each step creaking under her weight. The shadows seem to stretch unnaturally across the walls as she approaches the cellar door. Her face is filled with apprehension. The room is dimly lit, but the door itself is cloaked in shadow. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark illustration, dark fantasy art, dark surrealism. |
{{ IMAGE_4_PROMPT }} | A black and white painting of Mira standing directly in front of the old cellar door. Her hand is extended, trembling, as she reaches for the rusted key in the lock. The door looks ancient, with deep cracks running along its wooden surface. Shadows behind her swirl ominously. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark art style, dark fantasy illustration, grimdark art. |
{{ IMAGE_5_PROMPT }} | A black and white painting of the moment when Mira unlocks the door. As the door cracks open slightly, pure darkness spills out, and a cold, unnatural breeze escapes. The room behind her is almost swallowed by the thick shadows. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark fantasy illustration, grimdark art, dark surrealism. |
{{ IMAGE_6_PROMPT }} | A black and white painting of Mira standing frozen in terror as she peers into the pitch-black void beyond the door. There is nothing but endless darkness on the other side. The room around her is dimly lit by a single flickering light, casting eerie, long shadows. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark art style, grimdark art, dark surrealism. |
{{ IMAGE_7_PROMPT }} | A black and white painting of a cold, shadowy hand emerging from the void, reaching out to grab Mira’s wrist. The hand is gaunt and unnaturally long, its fingers sharp and claw-like. Mira’s face is frozen in horror as she tries to pull away. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism. |
{{ IMAGE_8_PROMPT }} | A black and white painting of Mira being pulled towards the dark void by the cold, shadowy hand. Her body is tilted backward as she resists, but the hand is too strong. The room around her warps and distorts as she’s dragged into the darkness. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, dark fantasy illustration, grimdark art, dark surrealism. |
{{ IMAGE_9_PROMPT }} | A black and white painting of Mira halfway into the dark void, her figure partially swallowed by the darkness. The shadowy hand grips her tightly as she is pulled further in. The cellar door hangs wide open, revealing nothing but pure darkness beyond. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, dark surreal art, grimdark art, dark surrealism. |
{{ IMAGE_10_PROMPT }} | A black and white painting of the cellar door slamming shut with an ominous force. The room is now silent and empty, with only faint shadows lingering where Mira once stood. The house feels abandoned and eerie. Highly detailed dark art, an ominous fantasy illustration, beksinski and dan mumford, surreal dark art, dark art style, grimdark art, dark surrealism. |
Save the JSON above as template.json, then render in the free sandbox:
# Save the JSON above as template.json, then:
curl -X POST https://api.shotstack.io/edit/stage/render \
-H "x-api-key: $SHOTSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d @template.json
# Poll until status is "done", then download response.url
curl https://api.shotstack.io/edit/stage/render/RENDER_ID -H "x-api-key: $SHOTSTACK_API_KEY"import { readFileSync } from 'node:fs';
const headers = { 'x-api-key': process.env.SHOTSTACK_API_KEY, 'Content-Type': 'application/json' };
const edit = JSON.parse(readFileSync('template.json', 'utf8'));
const { response } = await fetch('https://api.shotstack.io/edit/stage/render', {
method: 'POST', headers, body: JSON.stringify(edit)
}).then((r) => r.json());
let render;
do {
await new Promise((r) => setTimeout(r, 3000));
render = (await fetch(`https://api.shotstack.io/edit/stage/render/${response.id}`, { headers }).then((r) => r.json())).response;
} while (!['done', 'failed'].includes(render.status));
console.log(render.status, render.url);import json, os, time, requests
headers = {"x-api-key": os.environ["SHOTSTACK_API_KEY"]}
with open("template.json") as f:
edit = json.load(f)
render_id = requests.post("https://api.shotstack.io/edit/stage/render", json=edit, headers=headers).json()["response"]["id"]
while True:
render = requests.get(f"https://api.shotstack.io/edit/stage/render/{render_id}", headers=headers).json()["response"]
if render["status"] in ("done", "failed"):
break
time.sleep(3)
print(render["status"], render.get("url"))npm install -g @shotstack/cli
export SHOTSTACK_API_KEY=your_sandbox_key
shotstack validate template.json # offline schema check, free
shotstack render template.json --env stage --watchSandbox renders are free and watermarked. Production: the v1 endpoint and key. SDKs
Schedule it against a topic list or feed and post a fresh short every day.
Paste into Claude, ChatGPT or Cursor — your AI assistant builds the workflow around your data.
Node.js, one render per CSV row, wired to this template's 12 merge fields. Setup steps in the header.
Guides: Bulk-create from a CSV · Webhooks · Templates endpoint · Render your first video
AI assistants: Markdown () · · · CLI skill: SKILL.md () · MCP server
Use the 12 merge fields listed above. Send a merge array with your own values for each field and the API swaps them in at render time, so one template can produce thousands of unique videos.
Yes. It renders vertical 720×1280 (9:16), the format those platforms expect. Change output.size or output.aspectRatio in the JSON if you also need a square or landscape cut.
Yes. The template uses 1 image; replace each image asset's src with a public URL of your own file (JPG, PNG or WebP). Keep the timing and effects, or adjust them per clip.
Edit the text on each text asset in the JSON. Fonts come from the timeline fonts list or the asset's font family; add your own font file URL to timeline.fonts to use a brand typeface.