
AI 文字轉圖片生成器
使用領先 AI 圖片模型、彈性設定與快速瀏覽器工作流程,從提示詞建立精緻圖片。
透過阿里巴巴 Wan 2.7 API 實現提示詞驅動的影片編輯,支援多圖參考,高並發任務下性能穩定,定價合理。靈活適配各類影片編輯需求,從細節調整到批量修正皆可輕鬆完成。以超高性價比提升編輯效率與內容品質,是自動化和高要求編輯場景的不二選擇。適合開發者與團隊接入圖片、影片或多模態生成流程。你可以先體驗核心效果,再用於創意設計、行銷素材、批次內容生產與自動化工作流程。
// Step 1: Submit generation request
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: 'wan-2.7-video-edit',
prompt: 'Replace the sky with warm sunset colors, keep subjects natural',
negative_prompt: 'artifacts, flicker',
seed: 42,
video_url: 'https://example.com/source-video.mp4',
images: [
'https://example.com/ref-a.jpg',
'https://example.com/ref-b.jpg'
],
audio_setting: 'auto'
})
});
const { data } = await response.json();
const taskId = data.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));
}
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': 'wan-2.7-video-edit',
'prompt': 'Replace the sky with warm sunset colors, keep subjects natural',
'negative_prompt': 'artifacts, flicker',
'seed': 42,
'video_url': 'https://example.com/source-video.mp4',
'images': [
'https://example.com/ref-a.jpg',
'https://example.com/ref-b.jpg',
],
'audio_setting': 'auto',
}
)
result = response.json()
task_id = 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)
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": "wan-2.7-video-edit",
"prompt": "Replace the sky with warm sunset colors, keep subjects natural",
"negative_prompt": "artifacts, flicker",
"seed": 42,
"video_url": "https://example.com/source-video.mp4",
"images": [
"https://example.com/ref-a.jpg",
"https://example.com/ref-b.jpg"
],
"audio_setting": "auto"
}'
# 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"
| 參數 | 價格 | 原價 | 折扣 |
|---|
阿里巴巴 Wan 2.7 影片編輯 API 為開發者和創意團隊提供可投入生產的 AI 影片編輯服務。這個進階影片編輯 API 整合,讓您能夠使用自然語言文字提示詞,對既有影片進行局部或全局編輯,支援 720p 和 高品質輸出,時長範圍為 2 至 10 秒。基於阿里巴巴 140 億參數的 Wan 2.7 架構,並較前一版本具備超過 5 倍更快的推論速度,Wan 2.7 模型結合了精準的文字引導編輯與可選音訊保留,而 API 則為 Flaq AI 上的專業影片後製工作流程提供穩定整合。
注意 請確保您的輸入影片與編輯提示詞符合平台內容準則。如果發生錯誤,請檢查內容中是否含有受限素材,調整後再重試。
Wan 2.7 影片編輯 vs. Wan 2.7 文字轉影片 Wan 2.7 文字轉影片會從文字描述生成新影片。Wan 2.7 影片編輯 API 則處理既有影片內容,透過文字提示詞實現精準的局部與全局修改,因此更適合後製工作流程、內容精修與不需完全重生的迭代影片編輯。
Wan 2.7 影片編輯 vs. Runway Gen-3 Inpainting Runway Gen-3 Inpainting 提供具創意控制的區域式影片編輯。Wan 2.7 影片編輯 API 則以 140 億參數架構、同時支援局部與全局編輯、可選音訊保留、1080p 輸出,以及超過 5 倍更快的推論脫穎而出,提供更全面的文字引導影片編輯體驗。
Wan 2.7 影片編輯 vs. Pika Effects Pika Effects 透過友善介面提供風格化影片轉換。Wan 2.7 影片編輯 API 則提供程式化存取、透過自然語言進行局部與全局編輯、可選音訊保留、高品質輸出,以及可預測的每秒定價,因此更適合需要可擴展且精準影片編輯的開發者。
Wan 2.7 影片編輯 vs. Kling Video Editing Kling 提供具備良好人體運動保留的影片編輯。Wan 2.7 影片編輯 API 則以更廣的編輯範圍(局部與全局)、可選音訊保留、1080p 輸出、彈性的長寬比支援(5 種格式)與阿里巴巴先進的時空建模作為回應,使其在多樣化編輯場景中更具通用性。
Wan 2.7 影片編輯 vs. Seedance V2.0 文字轉影片 Seedance V2.0 會從文字生成新影片並支援音訊支援。Wan 2.7 影片編輯 API 則聚焦於透過文字引導編輯來修改既有影片內容,在保留原始素材的同時套用針對性或全局變更,因此當您處理的是既有影片資產而非從零生成時,這是更合適的選擇。
在瀏覽器中探索多種 AI 創作工具,快速完成圖片與影片工作流程,然後透過 Flaq AI 的生產級模型 API 擴展成功想法。Flaq AI 為所有模型提供統一 API 層,讓你的工作流程更容易使用和擴展。