AI video generation API

Video ads from a prompt, made by your backend.

A text-to-video and image-to-video API for ads and social. Send a prompt, get a 9:16, 4:5, 1:1 or 16:9 video with sound. Pay per second, only for videos that are ready.

Prices in EURFree test keyWebhooks included
Sample videos · choose a format
Sample9:16 · 720p · sound0:10

Samples, shown as examples of each format.

€0.10per second of video at 1080p
€1.00about one 10-second scene
4 formats9:16, 4:5, 1:1 and 16:9, with sound
30 daysyour files stay ready to download
Try the API

Build a request, see what comes back

Pick a format, a length and sound. The request is exactly what your server sends, and the answer is what it gets back.

Preview, nothing is sent
Format
Length
Sound

This video costs €1.00: reserved while it is made, charged only if it succeeds.

Steps
  1. Queued: waiting for a free slot
  2. Making: the video is being made
  3. Ready: the file link works for 30 days
RequestPOST /v1/videos/generations
{
  "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"
}
Response
// Run the preview to see the steps and the answer.
How it works

Prompt in. Video out.

Two calls, or one call and a webhook. Your server stays in charge.

1
POST /v1/videos/generations "prompt": "Sneaker drop at night" "aspect_ratio": "9:16"

Send a prompt

Text, plus up to three reference images if you want to start from a product photo.

2
queuedrunningsucceeded

We make it

Your request waits for a free slot, then the video is made. Usually 2 to 4 minutes for 10 seconds.

3
webhook
Sample1:1 · 720p · sound0:10

Get the video

Poll for the status or get a signed webhook. Download the MP4 from our link within 30 days.

Formats

One prompt, every placement.

Pick the aspect ratio per request: 9:16, 4:5, 1:1 or 16:9. Sound is on by default.

Sample9:16 · 720p · sound0:10
9:16Reels, Stories, Shorts and TikTok ads
Sample4:5 · 720p · sound0:10
4:5Feed posts on Instagram and Facebook
Sample1:1 · 720p · sound0:10
1:1Feed posts and carousel cards
Sample16:9 · 720p · sound0:10
16:9YouTube, landing pages and display
Built for ads and social

A video ads API for the jobs you run every week.

Product drops

Product drops

"White high-tops on a wet street at night, slow orbit, bass hit on the reveal."

  • 9:16 full screen
  • Bass hit on the reveal
  • Space for your headline
Local promos

Local promos

"Barista pours latte art in morning light, steam rising, warm tones."

  • 1:1 for the feed
  • Warm, natural light
  • Made from a short brief
Seasonal sales

Seasonal sales

"Beach towels and sunglasses on bright sand, space for text at the top."

  • 16:9 for YouTube and the web
  • Room for a price badge
  • Ready in minutes
Talk-to-camera

Talk-to-camera ads

"A person in a bright kitchen tells the camera about a new morning routine, handheld, natural light."

  • 4:5 for Instagram and Facebook feeds
  • A script you control
  • Casual phone-camera look
Text-to-video API

Ten lines from your backend.

Same key and base URL as our LLM gateway. Create returns at once with an id; the video arrives by polling or webhook.

  • Idempotency keys, so a retry never makes a second video
  • Signed webhooks for ready, failed and refused
  • Test keys return a sample clip, never charged
  • Make five versions of one scene, run them all, keep the winner. Each costs about €1.00.
What happens after the call
queuedrunningsucceeded

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.

# Create a 10-second 9:16 video with sound
curl https://withconflux.com/api/v1/videos/generations \
  -H "Authorization: Bearer $CONFLUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "VIDEO_MODEL_ID",
    "prompt": "Summer sale: beach towels and sunglasses on bright sand, upbeat track",
    "duration": 10,
    "aspect_ratio": "9:16",
    "audio": true
  }'

# 202 { "id": "vgen_7Rt3Hn8Ls5", "status": "queued", "reserved_eur": 1.00 }
# Then GET /v1/videos/generations/vgen_7Rt3Hn8Ls5, or wait for the webhook.
Pricing

Pay per second. Only for videos that are ready.

Video generation
€0.10 per second, 1080p

About €1.00 for a 10-second scene. €0.06 per second at 720p.

  • Reserved while your video is made, charged only if it succeeds
  • Failed or refused videos cost nothing
  • No monthly fee. Prepaid credits in EUR
  • Test keys: free sample clips
720p€0.60per 10-second scene
1080p€1.00per 10-second scene
Scene720p1080p
5 seconds€0.30€0.50
10 seconds€0.60€1.00
20 ads of 10 seconds€12.00€20.00
Your campaign

Work out a budget before you write a line of code.

Length
Resolution
Total€20.00

Reserved while each video is made, charged only for videos that are ready.

Real people need consent

Reference images of real people need consent confirmed in the request.

Clear content rules

A refused prompt comes back with a plain reason, and is free.

Your files for 30 days

Download the MP4 or copy it to your storage any time in that window.

FAQ

Questions

What is an AI video generation API?

An API that makes a short video from a text prompt, and optionally from images. You call it from your own code, so you can make videos for many products or customers without editing each one by hand.

Can I start from a product photo?

Yes. Send up to three reference images with your prompt. This is image-to-video: the video follows the look of your product. If an image shows a real person, confirm you have their consent in the request.

How long does a video take?

Usually 2 to 4 minutes for 10 seconds. Your account makes up to 5 videos at once; more requests wait in line and start on their own.

What do I pay if a video fails?

Nothing. The cost is reserved when we accept your request and charged only when the video is ready. If it fails or is refused, the amount goes back to your balance.

How long can I download my videos?

30 days. Every video shows the date in the dashboard and in the API as available_until. Copy the file to your own storage before then.

Can I try it without paying?

Yes. Test keys return a short sample clip, labelled as a test and never charged, so you can build your integration first.

Is this the same as AI video detection?

No. This page is about making videos. Checking whether a video was made by AI is our AI detection product, a separate API.

What do I get back?

An MP4 with sound at 1080p, with no watermark and no text added by withConflux. You also get a still frame, the duration and the cost, and a link that works for 30 days.

Looking to check if a video is AI-made? That is AI detection, a separate product. AI detection

Make your first video today.

Free test key. Same key works for text and video.

We use a single analytics cookie to understand traffic to this site. Nothing loads until you choose. See our Privacy Policy.