9:16 for Stories and Reels
Full-screen vertical for Stories, Reels, Shorts and TikTok placements. Keep the top third clear for your headline.
Generate the vertical, feed and wide cuts of an ad from one brief, test variants side by side and get a signed webhook when each one is ready. Your ad stack stays in your code.
Samples, shown as examples of each format.
Pick a format, a length and sound. The request is exactly what your server sends, and the answer is what it gets back.
This video costs €1.00: reserved while it is made, charged only if it succeeds.
{
"model": "VIDEO_MODEL_ID",
"prompt": "Sneaker drop: white high-tops on a wet city street at night, neon reflections, slow orbit, bass hit on the reveal",
"duration": 10,
"aspect_ratio": "9:16",
"resolution": "1080p",
"audio": true,
"idempotency_key": "demo-9x16-10s"
}// Run the preview to see the steps and the answer.
Full-screen vertical for Stories, Reels, Shorts and TikTok placements. Keep the top third clear for your headline.
4:5 fills more of the screen in Instagram and Facebook feeds; 1:1 suits carousel cards and older placements.
Wide clips for YouTube pre-roll, landing page heroes and display networks that accept video.
Change one line of the prompt (setting, colour, music) and make five versions. Run them all and keep the winner.
Send the same prompt with a different aspect_ratio for each placement. An idempotency_key per ad and format makes retries safe: a repeat never makes a second video.
Each video moves from queued to running to succeeded, usually in 2 to 4 minutes for 10 seconds. Poll the id or get a signed webhook.
const BASE = "https://withconflux.com/api/v1";
const formats = ["9:16", "4:5", "1:1", "16:9"];
for (const aspect_ratio of formats) {
await fetch(`${BASE}/videos/generations`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CONFLUX_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: process.env.CONFLUX_VIDEO_MODEL, // VIDEO_MODEL_ID
prompt: "Running shoes splash through a puddle at dusk, slow motion, punchy beat",
duration: 10,
aspect_ratio,
// one key per ad and format: a retry never makes a second video
idempotency_key: `ad-7731-${aspect_ratio.replace(":", "x")}`,
}),
});
}
// Each video sends its own signed webhook when it is ready.Add one HTTPS endpoint and we send video.succeeded, video.failed or video.refused, signed with your secret. Failed deliveries are retried with backoff.
Your account makes several videos at once. Extra requests wait in line and start on their own, so a campaign of 50 cuts needs no queue of your own.
Two calls, or one call and a webhook. Your server stays in charge.
Text, plus up to three reference images if you want to start from a product photo.
Your request waits for a free slot, then the video is made. Usually 2 to 4 minutes for 10 seconds.
Poll for the status or get a signed webhook. Download the MP4 from our link within 30 days.
About €1.00 for a 10-second scene. €0.06 per second at 720p.
| Scene | 720p | 1080p |
|---|---|---|
| 5 seconds | €0.30 | €0.50 |
| 10 seconds | €0.60 | €1.00 |
| 20 ads of 10 seconds | €12.00 | €20.00 |
Work out a budget before you write a line of code.
Reserved while each video is made, charged only for videos that are ready.
Reference images of real people need consent confirmed in the request.
A refused prompt comes back with a plain reason, and is free.
Download the MP4 or copy it to your storage any time in that window.
An API that produces ad videos from a brief, so your platform can create creatives for many products or clients without manual editing.
9:16 for Stories, Reels and Shorts, 4:5 or 1:1 for feeds, 16:9 for YouTube and display. You choose it per request.
The video comes back without text from us. Add headlines, prices and logos in your own editor or template so they stay sharp and on brand.
Each video triggers its own webhook. Count the events per campaign on your side, or poll the ids you created.
Looking to check if a video is AI-made? That is AI detection, a separate product. AI detection
Free test key. Same key works for text and video.