How do you make a narrated story video from AI images and a voice-over?

Use the Story narration template. Send your scene images and a voice-over. Coco zooms into each image for 4 seconds and burns in captions from the voice-over, four words at a time. Three scenes make a 12 second vertical MP4.

Use this template

Free plan, 10 render minutes, no card.

What does the sample video show?

Media in the sample Images: Coco's starter photos, made for Coco with fal (Coco-owned). Voice-over: 11 seconds of John F. Kennedy's inaugural address, 20 January 1961, public domain as a US government work. Music: Coco's music bed, made with ElevenLabs (Coco-owned).

Who is this template for?

Do your story videos start as AI images and a voice-over file, then stall at the captions? This template is for faceless story channels that make the images and the voice-over with AI tools. Coco writes the captions from the voice-over at render time, so you send no subtitle file. The number of scenes sets the length, at 4 seconds each, up to 20 scenes.

What does the template do?

How do the captions line up with the voice-over? The canvas is 1080 by 1920 at 30 frames a second. Each item in scenes gets a 4 second scene, and its image fills the frame and zooms in. The voice-over starts at 0 seconds at gain 1 with normalize on, levelled to -16 LUFS. Captions sit at the bottom in 84 px white text, up to four words on at most two lines. The spoken word turns amber (#FFB224), and a pause of 600 ms starts a new caption page. The optional music plays under the voice at gain 0.25 and fades out over the last second. The voice-over and the captions cover every scene, with the music under them. The video lasts 4 seconds per scene.

Template JSON

The full template. Save it with the API, or paste it into the Coco editor.

story-narration.json Download the JSON
{
  "template": "tpl_galleryStory",
  "name": "Story narration",
  "version": 1,
  "canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 4},
  "variables": {
    "scenes": {
      "type": "list",
      "min": 1,
      "max": 20,
      "section": {"start": 0, "dur": 4},
      "fields": {
        "image": {"type": "image", "required": true}
      }
    },
    "voice": {"type": "audio", "required": true},
    "music": {"type": "audio", "required": false}
  },
  "tracks": [
    {"id": "V1", "kind": "video", "clips": [
      {"id": "scene", "kind": "image", "src": "{{scenes.image}}", "start": 0, "dur": 4, "move": "zoom_in"}
    ]},
    {"id": "C1", "kind": "caption", "clips": [
      {"id": "words", "kind": "caption", "src": "{{voice}}", "start": 0, "dur": 4, "size": 84, "edge": "bottom",
       "color": "#FFFFFF", "highlight": "#FFB224", "max_words": 4, "max_lines": 2}
    ]},
    {"id": "A1", "kind": "audio", "clips": [
      {"id": "voice", "kind": "audio", "src": "{{voice}}", "start": 0, "dur": 4, "gain": 1, "normalize": true},
      {"id": "music", "kind": "audio", "src": "{{music}}", "start": 0, "dur": 4, "gain": 0.25, "anim": "fade_out"}
    ]}
  ]
}

Variables

Each row is one value a render fills. A list field fills once per item.

NameTypeRequiredNotes
sceneslistYes1 to 20 items. Each item plays a 4 s section.
scenes[].imageimageYesAn image: a library asset or a URL value.
voiceaudioYesAn audio file: a library asset or a URL value.
musicaudioNoAn audio file: a library asset or a URL value. Leave it out to skip it.

How do you render it from n8n, Make, REST or MCP?

n8n

Do your images come from one AI node and the voice-over from a text-to-speech node? Merge both into one HTTP Request node that posts to https://api.compositor.video/v1/renders with your Header Auth credential. Build scenes from $input.all(), one image URL value per scene, and set voice to the audio link. Turn on Execute Once. Send enough scenes to cover the voice-over, at 4 seconds each.

Make

Does your Make scenario produce the images one bundle at a time? Collect them with an array aggregator whose target structure is one image item with a url. A JSON Transform to JSON module turns the array into text. One HTTP "Make a request" module posts the render, with that text in vars.scenes and the voice-over link in vars.voice.

REST API

Generating stories from your own backend? Save the template once, then send POST /v1/renders with the scenes array and the voice link. The first render of a voice-over waits in queued with step transcribing while Coco writes the captions. If you render the same library voice-over again, Coco uses the stored transcript.

MCP

Want an agent to write the script, then hand you the finished video? Connect it to the Coco MCP server at https://api.compositor.video/mcp with a Google sign-in or your API key. With your voice-over and images in the library, the agent calls render_template with their asset ids. After the render, get_transcript returns the words and their times, so the agent can check the captions. wait_for_render gives it the MP4 link.

Connect the MCP server

Render it with curl

Two commands with your API key. The first saves the template, and the second renders it with the sample media.

curl
TPL=$(curl -s https://compositor.video/templates/story-narration.json \
  | curl -s -X POST https://api.compositor.video/v1/templates \
      -H "Authorization: Bearer $COCO_API_KEY" \
      -H "Content-Type: application/json" \
      --data-binary @- \
  | jq -r .template)

jq --arg tpl "$TPL" '.template = $tpl' <<'JSON' \
  | curl -s -X POST https://api.compositor.video/v1/renders \
      -H "Authorization: Bearer $COCO_API_KEY" \
      -H "Content-Type: application/json" \
      --data-binary @-
{
  "vars": {
    "music": {
      "url": "https://compositor.video/templates/media/a_music.m4a"
    },
    "scenes": [
      {
        "image": {
          "url": "https://compositor.video/templates/media/f10.jpg"
        }
      },
      {
        "image": {
          "url": "https://compositor.video/templates/media/f03.jpg"
        }
      },
      {
        "image": {
          "url": "https://compositor.video/templates/media/f04.jpg"
        }
      }
    ],
    "voice": {
      "url": "https://compositor.video/templates/media/jfk_inaugural.mp3"
    }
  }
}
JSON

Render it from n8n

Paste this HTTP Request node into n8n. Replace tpl_YOUR_TEMPLATE_ID with the id of your saved template.

n8n
{
  "connections": {},
  "nodes": [
    {
      "name": "Render Story narration",
      "parameters": {
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "jsonBody": "{\n  \"template\": \"tpl_YOUR_TEMPLATE_ID\",\n  \"vars\": {\n    \"music\": {\n      \"url\": \"https://compositor.video/templates/media/a_music.m4a\"\n    },\n    \"scenes\": [\n      {\n        \"image\": {\n          \"url\": \"https://compositor.video/templates/media/f10.jpg\"\n        }\n      },\n      {\n        \"image\": {\n          \"url\": \"https://compositor.video/templates/media/f03.jpg\"\n        }\n      },\n      {\n        \"image\": {\n          \"url\": \"https://compositor.video/templates/media/f04.jpg\"\n        }\n      }\n    ],\n    \"voice\": {\n      \"url\": \"https://compositor.video/templates/media/jfk_inaugural.mp3\"\n    }\n  }\n}",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "specifyBody": "json",
        "url": "https://api.compositor.video/v1/renders"
      },
      "position": [
        0,
        0
      ],
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2
    }
  ]
}

How do you make your first video?

  1. Press Use this template and sign in with Google to open Story narration.
  2. Put your scene images in the scenes list, in story order.
  3. Replace the sample voice-over with your own voice-over file.
  4. Add one scene for every 4 seconds of voice-over.
  5. Press Render and download the story within 7 days.

What are the limits?

Questions about this template

How many scenes do I need for my voice-over?

Divide the voice-over length by 4 and round up. A 30 second voice-over needs 8 scenes, which make a 32 second video. The music plays alone for the last 2 seconds.

Which voice-over files work?

MP3, M4A, AAC, WAV and Ogg files work. Coco does not read FLAC. The voice-over can be a library asset or a public https:// link.

Does the transcription cost extra?

No. Every plan includes 60 minutes of new transcription a month. A voice-over in your library is transcribed once, so a second render of it uses none.

Want your story told over your own images?

Free plan, 10 render minutes, no card.