How do you turn a creator clip into a UGC ad with a hook and an end card?
Use the UGC ad template. Send a creator clip, a hook line, a product photo and a call to action. Coco returns a 12 second vertical ad, with the clip's own sound levelled to -16 LUFS.
Free plan, 10 render minutes, no card.
What does the sample video show?
Who is this template for?
Do you test five hooks on the same creator clip and rebuild the ad in an editor for each one? This template is for brands and agencies that run UGC-style ads on TikTok and Reels. The hook is a variable, so the same clip with a new hook is a new ad variant. A 12 second ad uses a fifth of a render minute. Starter costs $19 a month for 300 minutes.
What does the template do?
What happens in the 12 seconds of the ad? The canvas is 1080 by 1920 at 30 frames a second. From 0 to 5 seconds the creator clip plays from its start at gain 1, with normalize on. The hook fades in at the top in 96 px text and leaves at 3 seconds. From 5 to 9 seconds the product photo fills the frame and zooms in. At 9 seconds a card in brand_color fades in, and the call to action slides up at the bottom in 96 px text. The optional logo sits at the bottom left for the whole ad. The template has no music track, so the sound comes from the clip and stops at 5 seconds.
Template JSON
The full template. Save it with the API, or paste it into the Coco editor.
{
"template": "tpl_galleryUgc",
"name": "UGC ad",
"version": 1,
"canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 12},
"variables": {
"hook": {"type": "text", "max": 40},
"clip": {"type": "video", "required": true},
"photo": {"type": "image", "required": true},
"cta": {"type": "text", "max": 24},
"brand_color": {"type": "color"},
"logo": {"type": "image", "required": false}
},
"tracks": [
{"id": "V1", "kind": "video", "clips": [
{"id": "clip", "kind": "video", "src": "{{clip}}", "start": 0, "dur": 5, "gain": 1, "normalize": true},
{"id": "photo", "kind": "image", "src": "{{photo}}", "start": 5, "dur": 4, "move": "zoom_in"},
{"id": "card", "kind": "color", "src": "{{brand_color}}", "start": 9, "dur": 3, "anim": "fade_in"}
]},
{"id": "T1", "kind": "text", "clips": [
{"id": "hook", "kind": "text", "src": "{{hook}}", "start": 0, "dur": 3, "size": 96, "edge": "top", "anim": "fade_in"},
{"id": "cta", "kind": "text", "src": "{{cta}}", "start": 9.3, "dur": 2.6, "size": 96, "edge": "bottom", "anim": "slide_up"}
]},
{"id": "O1", "kind": "overlay", "clips": [
{"id": "logo", "kind": "overlay", "src": "{{logo}}", "start": 0, "dur": 12, "anim": "fade_in"}
]}
]
}
Variables
Each row is one value a render fills. A list field fills once per item.
| Name | Type | Required | Notes |
|---|---|---|---|
hook | text | Yes | Up to 40 characters. |
clip | video | Yes | A video: a library asset or a URL value. |
photo | image | Yes | An image: a library asset or a URL value. |
cta | text | Yes | Up to 24 characters. |
brand_color | color | Yes | A hex colour, for example #1D3557. |
logo | image | No | An image: 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 hooks live in a sheet, one row per variant? Read the rows, then add one HTTP Request node that posts to https://api.compositor.video/v1/renders with your Header Auth credential. Map each row's hook into vars.hook and keep the same clip URL in every request. Leave Execute Once off, so each row becomes one ad. The n8n snippet below holds one variant with the sample values.
Make
Does your Make scenario loop over hook ideas from a sheet or an AI module? Add one HTTP "Make a request" module after it. Set its method to POST and its body to raw application/json. Map the bundle's hook into the body and keep the clip and photo links fixed. Make runs the module once per bundle, so ten hooks make ten ads.
REST API
Testing ad variants from your own code? Save the template once with POST /v1/templates. Then send one POST /v1/renders per hook, with its own Idempotency-Key, so a retry returns the first render. Coco fetches a URL clip once and keeps the file for 24 hours, so later variants reuse it. If you add webhook_url, Coco posts each finished ad to it.
MCP
Want an agent to write the hooks and render every variant? Connect it to the Coco MCP server at https://api.compositor.video/mcp with a Google sign-in or your API key. Ask for ten hooks of up to 40 characters each. The agent calls render_template once per hook, with a new request_id each time. Then it calls wait_for_render and hands back the links.
Render it with curl
Two commands with your API key. The first saves the template, and the second renders it with the sample media.
TPL=$(curl -s https://compositor.video/templates/ugc-ad.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",
"clip": {
"url": "https://compositor.video/templates/media/clip_crossing.mp4"
},
"cta": "Shop the jacket",
"hook": "30 days in one jacket",
"logo": {
"url": "https://compositor.video/templates/media/a_logo.png"
},
"photo": {
"url": "https://compositor.video/templates/media/f01.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.
{
"connections": {},
"nodes": [
{
"name": "Render UGC ad",
"parameters": {
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"jsonBody": "{\n \"template\": \"tpl_YOUR_TEMPLATE_ID\",\n \"vars\": {\n \"brand_color\": \"#1D3557\",\n \"clip\": {\n \"url\": \"https://compositor.video/templates/media/clip_crossing.mp4\"\n },\n \"cta\": \"Shop the jacket\",\n \"hook\": \"30 days in one jacket\",\n \"logo\": {\n \"url\": \"https://compositor.video/templates/media/a_logo.png\"\n },\n \"photo\": {\n \"url\": \"https://compositor.video/templates/media/f01.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?
- Press Use this template and sign in with Google to open UGC ad.
- Replace the sample clip with your creator clip.
- Type the hook and the call to action.
- Pick your product photo and set the end card colour.
- Press Render and download the ad within 7 days.
What are the limits?
- The ad always lasts 12 seconds, and the clip plays its first 5 seconds. A
trimon the clip value picks another span. - A clip shorter than 5 seconds holds its last frame.
- The hook holds 40 characters and the call to action 24.
- The template has no music, so the ad is silent from 5 seconds to the end.
- The MP4 link works for 7 days after the render.
Questions about this template
How do I test several hooks on one clip?
Send one render per hook with the same clip value. Coco keeps a fetched URL file for 24 hours, so later renders in that window fetch nothing.
Why does the clip sound louder or quieter than my file?
The clip uses normalize, which levels its sound to -16 LUFS with a true peak of at most -1.5 dBTP. Coco measures only the 5 seconds that play.
Can I add music under the ad?
This template has no music variable. To add one, open the template in the Coco editor and put an audio clip on a new track. Then save the template.
Want your creator clip in this ad?
Free plan, 10 render minutes, no card.

