promptstringrequerido
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.
Probar el modelo
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el 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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
promptstringrequeridoThe text prompt describing the video you want to generate.
durationintegerVideo duration in seconds (5-20).
Valor predeterminado: 5
Valores posibles: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
resolutionstringResolution of the generated video.
Valor predeterminado: "720p"
Valores posibles: "720p", "1080p"
aspect_ratiostringOutput aspect ratio.
Valor predeterminado: "16:9"
Valores posibles: "21:9", "2:1", "16:9", "4:3", "1:1", "3:4", "9:16"
generate_audiobooleanWhether to generate audio for the video.
Valor predeterminado: 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
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"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"
}
]