promptstringwajib
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.
Coba model ini
Apa yang ingin Anda lakukan selanjutnya?
Pilih contoh untuk memuat input dan hasilnya ke 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.
Mulai membangun
Kirim model ini melalui 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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
promptstringwajibThe text prompt describing the video you want to generate.
durationintegerVideo duration in seconds (5-20).
Default: 5
Nilai yang mungkin: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
resolutionstringResolution of the generated video.
Default: "720p"
Nilai yang mungkin: "720p", "1080p"
aspect_ratiostringOutput aspect ratio.
Default: "16:9"
Nilai yang mungkin: "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
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"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"
}
]