A visual template for music releases: cover art, track title and artist name animated over a full-length audio bed. Render one per track to give every release a video for YouTube, Spotify Canvas cut-downs or social teasers.
{
"timeline": {
"fonts": [
{
"src": "https://templates.shotstack.io/music-video/1d2176e7-cb3d-4182-bafa-d131ea8b60bb/3Jn5SD_00GqwlBnWc1TUJG0CduA.ttf"
},
{
"src": "https://fonts.gstatic.com/s/gowundodum/v12/3Jn5SD_00GqwlBnWc1TUJF0FfORL0fNy.ttf"
}
],
"background": "#FFFFFF",
"tracks": [
{
"clips": [
{
"asset": {
"type": "rich-text",
"text": "{{TEXT_VAR_455}}",
"font": {
"family": "Gowun Dodum",
"size": 65,
"weight": 400,
"color": "#ffffff",
"opacity": 1
},
"style": {
"letterSpacing": 0,
"wordSpacing": 0,
"lineHeight": 1,
"textTransform": "none",
"textDecoration": "none"
},
"align": {
"horizontal": "left",
"vertical": "middle"
},
"animation": {
"preset": "slideIn",
"style": "word",
"direction": "left"
}
},
"start": 0,
"length": "end",
"offset": {
"x": -0.042,
"y": -0.387
},
"position": "center",
"width": 800,
"height": 124
}
]
},
{
"clips": [
{
"asset": {
"type": "rich-text",
"text": "{{TEXT_VAR_512}}",
"font": {
"family": "Gowun Dodum",
"size": 100,
"weight": 400,
"color": "#ffffff",
"opacity": 1
},
"style": {
"letterSpacing": 0,
"wordSpacing": 0,
"lineHeight": 1,
"textTransform": "none",
"textDecoration": "none"
},
"align": {
"horizontal": "left",
"vertical": "middle"
},
"animation": {
"preset": "slideIn",
"direction": "left",
"style": "word"
}
},
"start": 0,
"length": "end",
"offset": {
"x": -0.042,
"y": -0.299
},
"position": "center",
"width": 800,
"height": 124
}
]
},
{
"clips": [
{
"length": "auto",
"asset": {
"type": "audio",
"src": "{{ AUDIO_SRC }}",
"volume": 1
},
"start": 0
}
]
},
{
"clips": [
{
"length": "end",
"asset": {
"type": "image",
"src": "{{ IMAGE_SRC }}"
},
"start": 0,
"fit": "contain",
"width": 1080,
"height": 1080,
"offset": {
"x": 0,
"y": 0
}
}
]
}
]
},
"output": {
"format": "mp4",
"fps": 25,
"size": {
"width": 1080,
"height": 1080
},
"destinations": [
{
"provider": "shotstack"
}
]
},
"merge": [
{
"find": "IMAGE_SRC",
"replace": "https://templates.shotstack.io/music-video/b07bbc1f-ca0b-4018-aa93-7507cb8d238b/source.jpg"
},
{
"find": "AUDIO_SRC",
"replace": "https://templates.shotstack.io/music-video/bb6151e7-8c5a-4f57-ab40-1298b7933928/source.mp3"
},
{
"find": "TEXT_VAR_512",
"replace": "Luna Raye"
},
{
"find": "TEXT_VAR_455",
"replace": "Echoes of Midnight"
}
]
}Use this template to turn an MP3 and an image into a music video automatically. Enhance it by adding the artist, song title, transitions, and effects. Scale effortlessly with merge fields to generate thousands of music videos via a single API call.
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 | 1080 × 1080 (1:1) |
| Length | set by clips |
| Frame rate | 25 fps |
| Tracks / clips | 4 / 4 |
| Assets used | 1 audio, 1 image, 2 rich-text |
| Soundtrack | no |
| Merge fields | 4 |
Send a merge array with your values for these fields:
| Field | Default value |
|---|---|
{{ IMAGE_SRC }} | https://templates.shotstack.io/music-video/b07bbc1f-ca0b-4018-aa93-7507cb8d238b/source.jpg |
{{ AUDIO_SRC }} | https://templates.shotstack.io/music-video/bb6151e7-8c5a-4f57-ab40-1298b7933928/source.mp3 |
{{ TEXT_VAR_512 }} | Luna Raye |
{{ TEXT_VAR_455 }} | Echoes of Midnight |
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
Render a visual for every release or episode straight from your feed.
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 4 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 4 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 1080×1080 (1:1). Set output.aspectRatio to 9:16 or 16:9 in the JSON to produce vertical or landscape versions from the same timeline.
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 rich-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.