How do you make a product slideshow video from any number of photos?

Use the Product slideshow template. Send a list of product photos with a caption each. Coco shows each photo for 3 seconds between an intro and an outro in your brand colour. Four photos make a 16 second vertical MP4.

Use this template

Free plan, 10 render minutes, no card.

What does the sample video show?

Media in the sample Photos: Coco's starter photos, made for Coco with fal (Coco-owned). Logo: the AMBER & OAK wordmark of a made-up brand, drawn for Coco (Coco-owned). Music: Coco's music bed, made with ElevenLabs (Coco-owned).

Who is this template for?

Do you have 4 photos for one product and 11 for the next, and a template that takes a fixed number? This template is for shops and automation builders who turn each product's photo set into one short video. The photos go in as one slides list, so the same template takes 1 photo or 20. One request carries the whole list, and no loop runs in your workflow. Each photo brings its own caption, which you can leave out.

What does the template do?

How does a list of photos become one timed video? The canvas is 1080 by 1920 at 30 frames a second. The first 2 seconds are a card in brand_color, with the title fading in at the top in 110 px text. Then each item in slides gets a 3 second scene. Its photo zooms in, and its caption slides up at the bottom in 80 px text, 0.3 seconds into the scene. After the last photo comes a 2 second outro in the brand colour that fades in. The call to action slides up on it in 96 px text. The optional logo sits at the bottom left for the whole video. The optional music plays at gain 0.6 and fades out. The video lasts 7 seconds plus 3 seconds for each photo after the first.

Template JSON

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

product-slideshow.json Download the JSON
{
  "template": "tpl_gallerySlideshow",
  "name": "Product slideshow",
  "version": 1,
  "canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 7},
  "variables": {
    "title": {"type": "text", "max": 40},
    "slides": {
      "type": "list",
      "min": 1,
      "max": 20,
      "section": {"start": 2, "dur": 3},
      "fields": {
        "photo": {"type": "image", "required": true},
        "caption": {"type": "text", "max": 40, "required": false}
      }
    },
    "cta": {"type": "text", "max": 24},
    "brand_color": {"type": "color"},
    "logo": {"type": "image", "required": false},
    "music": {"type": "audio", "required": false}
  },
  "tracks": [
    {"id": "V1", "kind": "video", "clips": [
      {"id": "intro", "kind": "color", "src": "{{brand_color}}", "start": 0, "dur": 2},
      {"id": "shot", "kind": "image", "src": "{{slides.photo}}", "start": 2, "dur": 3, "move": "zoom_in"},
      {"id": "outro", "kind": "color", "src": "{{brand_color}}", "start": 5, "dur": 2, "anim": "fade_in"}
    ]},
    {"id": "T1", "kind": "text", "clips": [
      {"id": "title", "kind": "text", "src": "{{title}}", "start": 0.2, "dur": 1.7, "size": 110, "edge": "top", "anim": "fade_in"},
      {"id": "cap", "kind": "text", "src": "{{slides.caption}}", "start": 2.3, "dur": 2.6, "size": 80, "edge": "bottom", "anim": "slide_up"},
      {"id": "cta", "kind": "text", "src": "{{cta}}", "start": 5.3, "dur": 1.6, "size": 96, "edge": "bottom", "anim": "slide_up"}
    ]},
    {"id": "O1", "kind": "overlay", "clips": [
      {"id": "logo", "kind": "overlay", "src": "{{logo}}", "start": 0, "dur": 7, "anim": "fade_in"}
    ]},
    {"id": "A1", "kind": "audio", "clips": [
      {"id": "music", "kind": "audio", "src": "{{music}}", "start": 0, "dur": 7, "gain": 0.6, "anim": "fade_out"}
    ]}
  ]
}

Variables

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

NameTypeRequiredNotes
titletextYesUp to 40 characters.
slideslistYes1 to 20 items. Each item plays a 3 s section.
slides[].photoimageYesAn image: a library asset or a URL value.
slides[].captiontextNoUp to 40 characters. Leave it out to skip it.
ctatextYesUp to 24 characters.
brand_colorcolorYesA hex colour, for example #1D3557.
logoimageNoAn image: a library asset or a URL value. Leave it out to skip it.
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 product photos arrive in n8n as one item per photo? Add an HTTP Request node that posts to https://api.compositor.video/v1/renders with your Header Auth credential. In the JSON body, build slides from $input.all(), with a photo URL value and a caption for each item. Turn on Execute Once in the node settings. Without it the node sends one request per photo and makes one video per photo.

Make

Does your Make scenario hand you one bundle per photo? Add an array aggregator whose target structure is one item with photo and caption. A JSON Transform to JSON module turns the aggregator's array into text. One HTTP "Make a request" module then posts the render, with that text mapped to vars.slides. Use the module numbers of your own scenario in the mapping.

REST API

Building slideshows from your product database? Save the template once, then send one POST /v1/renders per product with every photo in the slides array. Item order is the film order. If one item is wrong, the 422 reply names it, for example vars.slides[3].photo. Coco checks every value as the call arrives, and a failed render costs nothing.

MCP

Want an agent to pick the photos and write the captions? Connect it to the Coco MCP server at https://api.compositor.video/mcp with a Google sign-in or your API key. The agent finds your photo ids with list_assets and writes a caption of up to 40 characters per photo. It calls render_template with the slides array, then wait_for_render for 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/product-slideshow.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": {
    "brand_color": "#1D3557",
    "cta": "Shop the drop",
    "logo": {
      "url": "https://compositor.video/templates/media/a_logo.png"
    },
    "music": {
      "url": "https://compositor.video/templates/media/a_music.m4a"
    },
    "slides": [
      {
        "caption": "Field jacket",
        "photo": {
          "url": "https://compositor.video/templates/media/f01.jpg"
        }
      },
      {
        "caption": "Brick lane",
        "photo": {
          "url": "https://compositor.video/templates/media/f03.jpg"
        }
      },
      {
        "caption": "Crosswalk",
        "photo": {
          "url": "https://compositor.video/templates/media/f04.jpg"
        }
      },
      {
        "caption": "Trio on steps",
        "photo": {
          "url": "https://compositor.video/templates/media/f10.jpg"
        }
      }
    ],
    "title": "Autumn drop"
  }
}
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 Product slideshow",
      "parameters": {
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "jsonBody": "{\n  \"template\": \"tpl_YOUR_TEMPLATE_ID\",\n  \"vars\": {\n    \"brand_color\": \"#1D3557\",\n    \"cta\": \"Shop the drop\",\n    \"logo\": {\n      \"url\": \"https://compositor.video/templates/media/a_logo.png\"\n    },\n    \"music\": {\n      \"url\": \"https://compositor.video/templates/media/a_music.m4a\"\n    },\n    \"slides\": [\n      {\n        \"caption\": \"Field jacket\",\n        \"photo\": {\n          \"url\": \"https://compositor.video/templates/media/f01.jpg\"\n        }\n      },\n      {\n        \"caption\": \"Brick lane\",\n        \"photo\": {\n          \"url\": \"https://compositor.video/templates/media/f03.jpg\"\n        }\n      },\n      {\n        \"caption\": \"Crosswalk\",\n        \"photo\": {\n          \"url\": \"https://compositor.video/templates/media/f04.jpg\"\n        }\n      },\n      {\n        \"caption\": \"Trio on steps\",\n        \"photo\": {\n          \"url\": \"https://compositor.video/templates/media/f10.jpg\"\n        }\n      }\n    ],\n    \"title\": \"Autumn drop\"\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 Product slideshow.
  2. Put your product photos in the slides list, in the order they show.
  3. Type a caption for each photo, or leave a caption empty.
  4. Type the title and the call to action, then set the brand colour.
  5. Press Render and download the slideshow within 7 days.

What are the limits?

Questions about this template

How long is the video for my photo count?

It lasts 7 seconds plus 3 seconds for each photo after the first. 4 photos make 16 seconds and 20 photos make 64 seconds.

Can a photo have no caption?

Yes. caption is optional on each slide. If you leave it out, that scene shows the photo with no text.

Do I need an iterator in Make or a loop in n8n?

No. One request carries the whole slides array. In n8n, turn on Execute Once. In Make, collect the bundles with an array aggregator before the HTTP module.

Want your product photos in this slideshow?

Free plan, 10 render minutes, no card.