black-forest-labs/flux-3/text-to-video 文生视频
black-forest-labs/flux-3/text-to-video
FLUX 3 Text-to-Video 可根据文本提示词生成 5-20 秒电影感视频,具备连贯运动、电影级构图、可选同步音频,以及 720P / 1080P 输出,适用于创意视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 描述你想生成的视频内容的文本提示词。 |
| aspect_ratio宽高比 | select | 9:16 | 21:9 | 2:1 | 16:9 | 4:3 | 1:1 | 3:4 | 9:16 | 生成内容的宽高比。 |
| resolution分辨率 | select | 720p | 720p | 1080p | 生成视频的分辨率。 |
| duration时长 | slider | 5 | 5 ~ 20 · step 1 | 视频时长(5-20 秒)。 |
| generate_audio生成音频 | boolean | true | — | 是否为视频生成音频。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| videos | array<string> |
API
通过统一 REST API 调用本模型;在 API Keys 页获取密钥。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/black-forest-labs/flux-3/text-to-video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A cinematic tracking shot of a neon-lit street market in Tokyo at night during light rain, reflections shimmering on the pavement, pedestrians with transparent umbrellas moving naturally through the scene, steam rising from food stalls, subtle camera dolly forward, realistic motion, atmospheric lighting, high detail, immersive urban ambience",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 5,
"generate_audio": true
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/black-forest-labs/flux-3/text-to-video",
headers=HEADERS,
json={
"input": {
"prompt": "A cinematic tracking shot of a neon-lit street market in Tokyo at night during light rain, reflections shimmering on the pavement, pedestrians with transparent umbrellas moving naturally through the scene, steam rising from food stalls, subtle camera dolly forward, realistic motion, atmospheric lighting, high detail, immersive urban ambience",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 5,
"generate_audio": True
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 1800s server-side.
deadline = time.time() + 1860
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/black-forest-labs/flux-3/text-to-video", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A cinematic tracking shot of a neon-lit street market in Tokyo at night during light rain, reflections shimmering on the pavement, pedestrians with transparent umbrellas moving naturally through the scene, steam rising from food stalls, subtle camera dolly forward, realistic motion, atmospheric lighting, high detail, immersive urban ambience",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 5,
"generate_audio": true
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 1800s server-side.
const deadline = Date.now() + 1860 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);文档
black-forest-labs/flux-3/text-to-video 文生视频
black-forest-labs/flux-3/text-to-video
FLUX 3 Text-to-Video 可根据文本提示词生成 5-20 秒电影感视频,具备连贯运动、电影级构图、可选同步音频,以及 720P / 1080P 输出,适用于创意视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
参数
| 参数 | 类型 | 必填 | 默认值 | 范围/说明 |
|---|---|---|---|---|
prompt | string | 是 | — | max 5000 chars; 描述你想生成的视频内容的文本提示词。 |
aspect_ratio | string | 否 | "9:16" | 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16; 生成内容的宽高比。 |
resolution | string | 否 | "720p" | 720p, 1080p; 生成视频的分辨率。 |
duration | integer | 否 | 5 | 5–20; step 1; 视频时长(5-20 秒)。 |
generate_audio | boolean | 否 | true | 是否为视频生成音频。 |
价格
| Mode | USD / second | Credits / second | USD / 5 seconds |
|---|---|---|---|
| 720p | $0.17 | 17 | $0.85 |
| 1080p | $0.29 | 29 | $1.45 |
费用=单价 × min(ceil(duration), 20)。duration 为 5~20 的整数秒,默认 5 秒。generate_audio 不改变价格。
与 WaveSpeed 官方标准标价一致;1 美元 = 100 积分。账户折扣另行计算。
API
curl -X POST https://www.namifusion.com/api/v1/marketplace/run/black-forest-labs/flux-3/text-to-video \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"prompt": "A cinematic tracking shot of a neon-lit street market in Tokyo at night during light rain, reflections shimmering on the pavement, pedestrians with transparent umbrellas moving naturally through the scene, steam rising from food stalls, subtle camera dolly forward, realistic motion, atmospheric lighting, high detail, immersive urban ambience",
"aspect_ratio": "9:16",
"resolution": "720p",
"duration": 5,
"generate_audio": true
}
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
-H "Authorization: Bearer $API_KEY"
提交后返回 task_uuid;轮询至 completed 或 failed。成功输出字段:output.videos(URL 数组)。本 API 使用异步任务并返回 URL。
相关模型
xAI Grok Imagine Video v1.5 文生视频
根据文本提示词生成 1-15 秒视频,支持 480p、720p 和 1080p。
MiniMax H3 文生视频
MiniMax H3 文生视频可根据提示词生成连贯的 2K 视频,支持 4–15 秒灵活时长,以及六种可选宽高比,适用于电影感场景、创意视频和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
ltx-2.5/text-to-video(文生视频)
LTX 2.5 文生视频可根据文本提示词生成高保真、音画同步的视频内容,支持灵活时长以及 720P / 1080P / 2K / 4K 输出,适用于电影感视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Kling Omni Video O3 文本生成视频
Kling Omni Video O3 是快手的先进统一多模态视频模型,采用MVL(多模态视觉语言)技术。文本生成视频模式可通过提示词生成具有主体一致性、自然物理模拟和精准语义理解的电影级视频。支持音频生成。即用型REST API,性能卓越,无冷启动,价格实惠。
Kling 3.0 Standard
Kling 3.0 标准版提供高质量的文本生成视频功能,具有流畅的运动效果、电影级视觉效果、精准的提示词匹配以及原生音频,适合直接分享的短片。支持即用型 REST 推理 API,性能卓越,无冷启动,价格实惠。
Kling V2.6 文本生成视频 API
Kling 2.6 提供顶级的文本生成视频功能,具有流畅的运动效果、电影级视觉效果、强大的提示词匹配能力,以及原生音频支持,可直接分享视频片段。即用型 REST 推理 API,性能卓越,无冷启动,价格实惠。
Gemini Omni Flash 文生视频 API
Gemini Omni Flash Text to Video 可根据文本提示词生成带同步音频的短篇 AI 视频,结合视觉生成与音频输出,实现快速多模态视频创作。即开即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Seedance 2.0 Mini 文本生成视频
Seedance 2.0 Mini 文本生成视频是字节跳动推出的更快、更低成本的视频生成模型,适合制作电影感多镜头视频。它可根据文本提示词生成叙事视频序列,支持 AI 镜头控制、跨场景角色一致性、480P / 720P / 1080P / 4K 输出、4-15 秒时长以及灵活的宽高比。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。