promptstringrequired
The text prompt describing the video you want to generate.
bfl/flux-3/text-to-videoFlux 3 by BFL - generate cinematic videos from text descriptions with AI. Create high-quality video content with natural motion, camera control, and optional audio generation.
Try the model
Customize your input with more control.
What would you like to do next?
Select an example to load its inputs and result into the playground.
{
"prompt": "a red panda walking along a mossy log"
}FLUX 3 text-to-video: 5–20 second clips with optional native audio at 720p or 1080p.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
aspect_ratio | 21:9 / 2:1 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 | 16:9 | Output frame shape. |
resolution | 720p / 1080p | 720p | Sets the per-second rate. |
duration | 5–20 | 5 | Output length in seconds. |
generate_audio | boolean | true | Native audio. Same price on or off. |
You pay for output seconds: $0.17 at 720p and $0.29 at 1080p.
| Output | 720p | 1080p |
|---|---|---|
| 5s (default) | $0.85 | $1.45 |
| 10s | $1.70 | $2.90 |
| 20s | $3.40 | $5.80 |
Failed runs are not charged.
Other FLUX 3 endpoints: bfl/flux-3/text-to-image, bfl/flux-3/edit, bfl/flux-3/image-to-video.
Start building
Submit this model through the SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bfl/flux-3/text-to-video",
"prompt": "A red panda walks along a mossy log in a sunlit forest, one continuous unbroken shot. Ambient birdsong and rustling leaves.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
promptstringrequiredThe text prompt describing the video you want to generate.
durationintegerVideo duration in seconds (5-20).
Default: 5
Possible values: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
resolutionstringResolution of the generated video.
Default: "720p"
Possible values: "720p", "1080p"
aspect_ratiostringOutput aspect ratio.
Default: "16:9"
Possible values: "21:9", "2:1", "16:9", "4:3", "1:1", "3:4", "9:16"
generate_audiobooleanWhether to generate audio for the video.
Default: true
{
"model": "bfl/flux-3/text-to-video",
"prompt": "A red panda walks along a mossy log in a sunlit forest, one continuous unbroken shot. Ambient birdsong and rustling leaves.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
[
{
"poster": "https://static.sandbase.ai/examples/posters/9e5d080aa43b7eab4c45.jpg",
"source": "Completed user prediction (visual safety screened)",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/722372c8-5a4e-4d41-9f81-0667138088a9/output/d25eb1eb-c0ff-4836-9abc-cdadd16a7d15.mp4"
}
]