
AI 文本转图像生成器
使用领先 AI 图像模型、灵活设置和快速浏览器工作流,从提示词创建精致图像。
试用 MiniMax H3 参考素材生成视频 API,支持最多九张图片、三个视频和三个音频参考,以及 2K 输出和灵活的 5–15 秒时长,适合多素材和可扩展的视频制作工作流。
// Step 1: Submit generation request with image, video, and audio references
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'minimax-h3-reference-to-video',
prompt: 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
resolution: '2k',
duration: 8,
aspect_ratio: '16:9',
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/atmosphere-reference.mp3']
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1]
// <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
const mediaReferenceResponse = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'minimax-h3-reference-to-video',
prompt: 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
resolution: '2k',
duration: 10,
aspect_ratio: '16:9',
images: [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.jpg'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3']
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.task_id;
// Step 2: Poll for results
const taskId = data.task_id;
const pollResult = async (taskId) => {
const res = await fetch(`https://api.flaq.ai/api/v1/video/${taskId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return res.json();
};
while (true) {
const pollResultData = await pollResult(taskId);
const status = pollResultData.data.task_status;
if (status === 'succeed') {
console.log(pollResultData.data.task_result.videos[0].url);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
# Step 1: Submit generation request with image, video, and audio references
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'minimax-h3-reference-to-video',
'prompt': 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
'resolution': '2k',
'duration': 8,
'aspect_ratio': '16:9',
'images': ['https://example.com/subject-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/atmosphere-reference.mp3']
}
)
result = response.json()
task_id = result['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
media_reference_response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'minimax-h3-reference-to-video',
'prompt': 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
'resolution': '2k',
'duration': 10,
'aspect_ratio': '16:9',
'images': [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.jpg'
],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3']
}
)
media_reference_result = media_reference_response.json()
media_reference_task_id = media_reference_result['data']['task_id']
# Step 2: Poll for results
task_id = response.json()['data']['task_id']
poll_url = f"https://api.flaq.ai/api/v1/video/{task_id}"
while True:
poll_result = requests.get(poll_url, headers={'Authorization': 'Bearer YOUR_API_KEY'}).json()
status = poll_result['data']['task_status']
if status == 'succeed':
print(poll_result['data']['task_result']['videos'][0]['url'])
break
if status == 'failed':
print(poll_result['data']['task_status_msg'])
break
time.sleep(10)
# Step 1: Submit generation request with image, video, and audio references
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "minimax-h3-reference-to-video",
"prompt": "Use image one for the subject, video one for the movement, and audio one for the atmosphere",
"resolution": "2k",
"duration": 8,
"aspect_ratio": "16:9",
"images": ["https://example.com/subject-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/atmosphere-reference.mp3"]
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "minimax-h3-reference-to-video",
"prompt": "Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>",
"resolution": "2k",
"duration": 10,
"aspect_ratio": "16:9",
"images": [
"https://example.com/explorer-reference.jpg",
"https://example.com/environment-reference.jpg"
],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"]
}'
# Step 2: Poll for results
# Replace {task_id} with the task_id returned from the submit response
curl -X GET "https://api.flaq.ai/api/v1/video/{task_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
| 参数 | 价格 | 原价 | 折扣 |
|---|
MiniMax H3 参考生成视频 API 可根据提示词以及一组视觉或音频参考创建视频序列。应用可通过图像、视频和音频输入指导主体特征、风格、场景方向和动作,同时保持工作流适用于 Flaq AI 上结构化的创意制作。
多模态参考输入: 结合图像、视频和音频参考,为生成任务提供更丰富的创意上下文。
参考作用控制: 说明每项参考应如何影响所需序列中的主体、环境、风格、声音或动作。
主体与风格一致性: 使用参考素材,让生成片段中的可识别主体、视觉语言和广告活动方向保持一致。
提示词引导的场景开发: 添加自然语言指令,描述动作、镜头运动、构图、节奏和氛围。
灵活的参考工作流: 构建可组合多项参考素材,同时保留应用可控任务流程的创意工具。
制作审核支持: 跟踪生成任务,并检查生成片段的视觉一致性、意外瑕疵和参考遵循程度。
输入: 一项或多项受支持的图像、视频或音频参考,以及自然语言生成提示词。
参考映射: 描述每项输入的作用,并明确其应指导哪个主体或哪种风格、动作或声音特征。
输出: 通过 Flaq AI 任务工作流返回生成的视频序列,供审核和下游处理。
任务处理: 保存任务标识符,轮询直至任务完成,并在发布或进一步编辑前检查视频片段。
创意控制: 根据目标工作流使用可用的时长、分辨率、宽高比和参考设置。
角色与主体连贯性: 让可识别的角色、产品或视觉主体在新场景中保持一致。
品牌广告活动制作: 结合风格参考、广告活动素材和音频指导,探索协调统一的创意变体。
故事板与镜头开发: 使用多项参考指导场景构图、镜头运动和视觉连贯性。
多模态创意工具: 构建允许用户通过图像、视频和音频,而非仅通过文本来指导生成的应用。
素材变体工作流: 在保留现有创意来源视觉语言的同时,生成可控的替代方案。
注意 参考素材的质量、提示词的清晰度以及为每项输入指定的作用都会影响最终结果。将生成媒体用于制作前,请检查视觉和音频的一致性。
MiniMax H3 与 Kling 3.0 Reference-to-Video: Kling 提供出色的参考引导视频创作能力。MiniMax H3 的差异化优势在于多模态工作流,可将图像、视频和音频参考组合到同一创意方向中。
MiniMax H3 与 Seedance 2.0 Reference-to-Video: Seedance 2.0 支持多种视听生成模式。MiniMax H3 是专为需要参考引导的场景构建和任务控制的应用打造的方案。
MiniMax H3 与 Vidu Q3 Reference-to-Video: Vidu Q3 专为保持一致性的参考视频生成而设计。MiniMax H3 强调在不同参考媒体类型之间灵活映射提示词。
MiniMax H3 与 Wan 2.7 Reference-to-Video: Wan 2.7 支持在多模态工作流中使用图像、视频和音频参考。MiniMax H3 提供类似的参考驱动概念,同时拥有独特的 MiniMax 集成路径。
MiniMax H3 与 Runway Gen-4 References: Runway 围绕参考素材提供广泛的视觉工作区。MiniMax H3 适合希望通过自有 API 产品或内容管线提供参考驱动生成功能的团队。
在浏览器中探索多种 AI 创作工具,用于快速图像和视频工作流,然后通过 Flaq AI 可用于生产的模型 API 扩展成功创意。Flaq AI 为所有模型提供统一 API 层,让你的工作流更容易使用和扩展。