YepAPI
AI Models

FLUX 3 Video

Black Forest Labs' FLUX 3 Video. AI video generation up to 4K with audio and keyframe control, 5-20 seconds.

POST/v1/media/queue
from $0.36/second

Overview

Black Forest Labs' FLUX 3 Video — video generation up to 4K with audio and opening/closing keyframe control. Async operation — submit a job, poll for completion.

PropertyValue
Model IDblack-forest-labs/flux-3-video
ProviderBlack Forest Labs
Resolutions720p, 1080p, 2K, 4K
Aspect Ratios21:9, 16:9, 4:3, 1:1, 3:4, 9:16
Duration5–20 seconds
Audio GenerationSupported
BillingDynamic (actual cost per job)
Pricingfrom $0.36/second

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

Text-to-Video

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'black-forest-labs/flux-3-video',
    prompt: 'A cinematic drone shot over a rugged coastline at golden hour',
    options: {
      aspectRatio: '16:9',
      resolution: '720p',
      duration: '5',
      generateAudio: true,
    },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/flux-3-video", "prompt": "A cinematic drone shot over a rugged coastline", "options": {"aspectRatio": "16:9", "resolution": "720p", "duration": "5", "generateAudio": true}}'

Image-to-Video

Pass a reference image via imageData with an imageRole (first_frame or last_frame) to generate a video from a still image.

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'black-forest-labs/flux-3-video',
    prompt: 'Animate this scene — clouds drifting, light changing',
    options: {
      aspectRatio: '16:9',
      resolution: '720p',
      duration: '5',
      generateAudio: true,
      imageRole: 'first_frame',
    },
    imageData: {
      mimeType: 'image/jpeg',
      base64: '...', // Base64-encoded image
    },
  }),
});

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesblack-forest-labs/flux-3-video or alias flux-3-video—
promptstringYesText description of the video to generate—
options.aspectRatiostringNoOne of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:1616:9
options.resolutionstringNo720p, 1080p, 2K, 4K720p
options.durationstringNo5 to 20 (seconds)5
options.generateAudiobooleanNoGenerate an audio track for the videofalse
options.imageRolestringNoHow to use the input image: first_frame or last_framefirst_frame
imageData.mimeTypestringNoMIME type of input image (image/png, image/jpeg, image/webp)—
imageData.base64stringNoBase64-encoded input image for image-to-video generation—

Pricing

TierCost/sec
720p$0.36
1080p$0.61
2K$0.59
4K$0.87

Example: 5-second 720p video ≈ 5 x $0.36 = $1.80. Billing is dynamic — each job is billed from the actual cost of the finished video, so shorter or lower-resolution jobs cost less.

Info

Video jobs can take several minutes to complete. Results retained for 1 hour.

Under the Hood

Powered by Black Forest Labs' FLUX 3 Video via our AI provider.

On this page