How do you make a product promo video from a template?

Use the Product promo template. Send a clip, a product photo, a headline and a call to action. Coco returns a 12 second vertical MP4 that ends on a card in your brand colour.

Use this template

Free plan, 10 render minutes, no card.

What does the sample video show?

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

Who is this template for?

Does building a video template from scratch look like a week of learning an editor you will open twice? This template is for shops and marketing teams that need one short promo per product. The timing is already set, from the opening clip to the end card. For each product you swap in the clip and the photo and write two short lines. You set the brand colour and the logo once for the whole catalogue.

What does the template do?

What does the viewer see in those 12 seconds? The canvas is 1080 by 1920 at 30 frames a second. From 0 to 4 seconds your clip plays with its own sound, cut to its first 4 seconds by the trim [0, 4]. The headline fades in at the top at 0.5 seconds in 110 px text and stays for 3 seconds. From 4 to 9 seconds the product photo fills the frame and zooms in. From 9 to 12 seconds a card in brand_color fills the frame. The call to action slides up at the bottom at 9.2 seconds in 84 px text. The optional logo fades in at the bottom left and stays for the whole video. The optional music plays at gain 0.6 and fades out over the last second.

Template JSON

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

product-promo.json Download the JSON
{
  "template": "tpl_galleryPromo",
  "name": "Product promo",
  "version": 1,
  "canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 12},
  "variables": {
    "headline": {"type": "text", "max": 40},
    "clip": {"type": "video", "trim": [0, 4]},
    "photo": {"type": "image", "required": true},
    "cta": {"type": "text", "max": 24},
    "logo": {"type": "image", "required": false},
    "music": {"type": "audio", "required": false},
    "brand_color": {"type": "color"}
  },
  "tracks": [
    {
      "id": "V1",
      "kind": "video",
      "clips": [
        {"id": "v1a", "kind": "video", "src": "{{clip}}", "start": 0, "dur": 4},
        {
          "id": "v1b",
          "kind": "image",
          "src": "{{photo}}",
          "start": 4,
          "dur": 5,
          "move": "zoom_in"
        },
        {
          "id": "v1c",
          "kind": "color",
          "src": "{{brand_color}}",
          "start": 9,
          "dur": 3
        }
      ]
    },
    {
      "id": "T1",
      "kind": "text",
      "clips": [
        {
          "id": "t1a",
          "kind": "text",
          "src": "{{headline}}",
          "start": 0.5,
          "dur": 3,
          "size": 110,
          "edge": "top",
          "anim": "fade_in"
        },
        {
          "id": "t1b",
          "kind": "text",
          "src": "{{cta}}",
          "start": 9.2,
          "dur": 2.5,
          "size": 84,
          "edge": "bottom",
          "anim": "slide_up"
        }
      ]
    },
    {
      "id": "O1",
      "kind": "overlay",
      "clips": [
        {
          "id": "o1",
          "kind": "overlay",
          "src": "{{logo}}",
          "start": 0,
          "dur": 12,
          "anim": "fade_in"
        }
      ]
    },
    {
      "id": "A1",
      "kind": "audio",
      "clips": [
        {
          "id": "a1",
          "kind": "audio",
          "src": "{{music}}",
          "start": 0,
          "dur": 12,
          "gain": 0.6,
          "anim": "fade_out"
        }
      ]
    }
  ]
}

Variables

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

NameTypeRequiredNotes
headlinetextYesUp to 40 characters.
clipvideoYesA video: a library asset or a URL value. Plays seconds 0 to 4 of the file.
photoimageYesAn image: a library asset or a URL value.
ctatextYesUp to 24 characters.
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.
brand_colorcolorYesA hex colour, for example #1D3557.

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

n8n

Does each new product in your store feed need its own promo? Add one HTTP Request node that posts to https://api.compositor.video/v1/renders with your Header Auth credential. Map each product's text and media links into vars with expressions. Leave Execute Once off. This template has no list, so the node sends one request per input item, and each item becomes one MP4. The n8n snippet below holds the sample values.

Make

Does your Make scenario start from a new sheet row or a store webhook? Add one HTTP "Make a request" module after the trigger. Set its method to POST and its body to raw application/json. Put the template id and vars in the body, and map the row's fields into it. Make runs the module once per bundle, so 30 new rows make 30 promos. The photo and the clip go in as URL values, so nothing needs an upload first.

REST API

Making promos for a whole catalogue from a nightly job? Save the template once with POST /v1/templates. Then send one POST /v1/renders per product, with a different Idempotency-Key for each. If a request comes twice within 48 hours with the same key and body, Coco returns the first render. If a value is wrong, the reply is a 422 invalid_value that names the field, for example vars.headline.

MCP

Want an agent to write the headline and render the promo in the same chat? Connect it to the Coco MCP server at https://api.compositor.video/mcp with a Google sign-in or your API key, and give it this template JSON. The agent saves it with save_template and writes a headline of up to 40 characters. Then it calls render_template with your photo and clip links. wait_for_render returns the MP4 link of the finished render.

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-promo.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": "#FFB224",
    "clip": {
      "trim": [
        0,
        4
      ],
      "url": "https://compositor.video/templates/media/a_work.mp4"
    },
    "cta": "Shop the drop",
    "headline": "New season, new look",
    "logo": {
      "url": "https://compositor.video/templates/media/a_logo.png"
    },
    "music": {
      "url": "https://compositor.video/templates/media/a_music.m4a"
    },
    "photo": {
      "url": "https://compositor.video/templates/media/f03.jpg"
    }
  }
}
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 promo",
      "parameters": {
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "jsonBody": "{\n  \"template\": \"tpl_YOUR_TEMPLATE_ID\",\n  \"vars\": {\n    \"brand_color\": \"#FFB224\",\n    \"clip\": {\n      \"trim\": [\n        0,\n        4\n      ],\n      \"url\": \"https://compositor.video/templates/media/a_work.mp4\"\n    },\n    \"cta\": \"Shop the drop\",\n    \"headline\": \"New season, new look\",\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    \"photo\": {\n      \"url\": \"https://compositor.video/templates/media/f03.jpg\"\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 Product promo.
  2. Replace the sample clip and the brick lane photo with your product media.
  3. Type your headline and your call to action.
  4. Set the brand colour and pick your logo, or leave the logo out.
  5. Press Render and download the 12 second promo within 7 days.

What are the limits?

Questions about this template

Does the clip keep its own sound?

Yes. The clip plays its own sound at the level of the file, mixed with the music at gain 0.6. A clip with no sound track plays silent, and the render still succeeds.

Can I leave out the logo or the music?

Both are optional. If you leave one out, the promo drops it and still lasts 12 seconds.

Can I change the timing or the size?

Yes. Open the template in the Coco editor, move the clips on the timeline and save. Each save makes a new version, and a render can name the version it uses, for example tpl_x@v3.

Want this promo with your product in it?

Free plan, 10 render minutes, no card.