
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 層,讓你的工作流程更容易使用和擴展。