black-forest-labs/flux-3/start-end-to-video(首尾图生视频)
black-forest-labs/flux-3/start-end-to-video
FLUX 3 Start-End-to-Video 可根据指定的起始图和结束图生成 5-20 秒的过渡视频,并通过提示词控制动作、镜头运动、视觉风格、运动连贯性,以及可选的同步音频,支持 720P / 1080P 输出。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于描述你想生成的视频内容的文本提示词。 |
| start_image *起始图片 | image_upload | — | image/* · 1–1 items | 必填首帧图片。 |
| end_image *结束图片 | image_upload | — | image/* · 1–1 items | 必填尾帧图片。 |
| aspect_ratio宽高比 | select | — | 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/start-end-to-video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A cinematic transition from a quiet sunrise over a misty mountain lake to a vibrant golden-hour scene at the same location. The camera slowly glides forward across the water as fog lifts, light intensifies, birds begin to circle overhead, and the environment becomes warmer and more alive. Natural motion, smooth continuity between the start and end frames, realistic water ripples, subtle lens movement, and atmospheric detail.",
"start_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/4c7f8c3d8f45.jpeg"
],
"end_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/40dcae8c87c3.jpeg"
],
"aspect_ratio": "16:9",
"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/start-end-to-video",
headers=HEADERS,
json={
"input": {
"prompt": "A cinematic transition from a quiet sunrise over a misty mountain lake to a vibrant golden-hour scene at the same location. The camera slowly glides forward across the water as fog lifts, light intensifies, birds begin to circle overhead, and the environment becomes warmer and more alive. Natural motion, smooth continuity between the start and end frames, realistic water ripples, subtle lens movement, and atmospheric detail.",
"start_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/4c7f8c3d8f45.jpeg"
],
"end_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/40dcae8c87c3.jpeg"
],
"aspect_ratio": "16:9",
"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/start-end-to-video", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A cinematic transition from a quiet sunrise over a misty mountain lake to a vibrant golden-hour scene at the same location. The camera slowly glides forward across the water as fog lifts, light intensifies, birds begin to circle overhead, and the environment becomes warmer and more alive. Natural motion, smooth continuity between the start and end frames, realistic water ripples, subtle lens movement, and atmospheric detail.",
"start_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/4c7f8c3d8f45.jpeg"
],
"end_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/40dcae8c87c3.jpeg"
],
"aspect_ratio": "16:9",
"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/start-end-to-video(首尾图生视频)
black-forest-labs/flux-3/start-end-to-video
FLUX 3 Start-End-to-Video 可根据指定的起始图和结束图生成 5-20 秒的过渡视频,并通过提示词控制动作、镜头运动、视觉风格、运动连贯性,以及可选的同步音频,支持 720P / 1080P 输出。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
参数
| 参数 | 类型 | 必填 | 默认值 | 范围/说明 |
|---|---|---|---|---|
prompt | string | 是 | — | max 5000 chars; 用于描述你想生成的视频内容的文本提示词。 |
start_image | array | 是 | — | 1–1 URLs; 必填首帧图片。 |
end_image | array | 是 | — | 1–1 URLs; 必填尾帧图片。 |
aspect_ratio | string | 否 | — | 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 | 是否为视频生成音频。 |
Nami 图片参数使用 URL 数组,包括单图字段;多图编辑支持 1~3 张图片。
价格
| 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/start-end-to-video \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"prompt": "A cinematic transition from a quiet sunrise over a misty mountain lake to a vibrant golden-hour scene at the same location. The camera slowly glides forward across the water as fog lifts, light intensifies, birds begin to circle overhead, and the environment becomes warmer and more alive. Natural motion, smooth continuity between the start and end frames, realistic water ripples, subtle lens movement, and atmospheric detail.",
"start_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/4c7f8c3d8f45.jpeg"
],
"end_image": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/10/08/40dcae8c87c3.jpeg"
],
"aspect_ratio": "16:9",
"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。
Vidu Q4 Preview 图生视频
根据提示词和单张图片生成 3~16 秒视频,支持可选音频和提示词扩展,以及 540p、720p、1080p、2k、4k 分辨率。
vidu/q3/image-to-video-spicy 图片转视频
Vidu Q3 Image-to-Video Spicy 可从图片生成不限量的高质量视频,动画流畅、运动表现丰富,并针对大规模内容生成进行了优化。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Vidu Q3 图片转视频
Vidu Q3 图片转视频将文本提示词转化为高质量视频,具有卓越的视觉保真度和多样的运动。即用型 REST 推理 API,最佳性能,无冷启动,价格实惠。

MiniMax H3 Spicy 图片转视频
通过首帧图片生成视频,支持可选提示词和末帧引导。可选 480p、540p、768p、1080p 分辨率,时长为 3–15 秒。
MiniMax H3 图片转视频
MiniMax H3 图片转视频可将首帧图片动画化为连贯的 2K 视频,支持自然语言运动指令,并可选用末帧控制,以实现一致的运动、场景连贯性和电影感视频生成。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
ltx-2.5/image-to-video 图片转视频
LTX 2.5 图片转视频可将首帧图片动画化,生成高保真、音视频同步的内容,并支持可选的末帧引导以及 720P / 1080P / 2K / 4K 输出,适用于电影感视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
ai/ltx-2.3-spicy/image-to-video-lora 图片转视频
LTX 2.3 Spicy LoRA 图片转视频 API 可将参考图片和提示词转换为富有表现力的 AI 视频,并支持选择 LoRA 预设、可选的 LoRA 强度覆盖、时长和分辨率控制。在 MaaS 上可快速进行 REST 推理,无冷启动,价格实惠。