
テキストから画像
テキストプロンプトからAI画像を作成
Alibaba Wan 3.0の参照素材動画生成APIを無料で試し、画像、動画、音声、文書、Webページを使ってFlaq AIで動画生成の方向性を指定できます。柔軟な制作にも役立ちます。
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-3.0-reference-to-video',
prompt: 'Use the references to create a cinematic product launch with coordinated motion and sound',
duration: 12,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/product-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/sound-reference.mp3'],
files: ['https://example.com/creative-brief.pdf'],
seed: 42
})
});
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-3.0-reference-to-video',
'prompt': 'Use the references to create a cinematic product launch with coordinated motion and sound',
'duration': 12,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/product-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/sound-reference.mp3'],
'files': ['https://example.com/creative-brief.pdf'],
'seed': 42
}
)
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-3.0-reference-to-video",
"prompt": "Use the references to create a cinematic product launch with coordinated motion and sound",
"duration": 12,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/product-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/sound-reference.mp3"],
"files": ["https://example.com/creative-brief.pdf"],
"seed": 42
}'
# 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 3.0 Reference-to-Video API は、プロンプトと、オプションの画像、動画、音声、ドキュメント、公開 Web ページの参照素材から動画を生成します。開発者は、対応する入力を使用して視覚的アイデンティティ、動き、サウンド、コンテキスト、シーン演出を導きながら、時間、解像度、アスペクト比、サウンド、シードを設定できます。Flaq AI は、マルチモーダルなリクエストの送信と完成動画の取得に対応するタスクベースのワークフローを提供します。
注記 参照入力は任意ですが、指定するすべての素材が形式と制限の要件を満たす必要があります。参照ファイルと Web ページのリンクを同じリクエストで使用することはできません。海外の Web ページ URL は海外向けサービスでは対応していますが、中国国内向けサービスでは解析できません。
Wan 3.0 と Wan 2.7 Reference-to-Video の比較
Wan 2.7 は、画像、動画、音声の参照素材に重点を置き、視覚参照には合算上限があります。Wan 3.0 は、メディアごとの個別上限に加え、ドキュメントと公開 Web ページのコンテキストによってワークフローを拡張します。
Wan 3.0 と MiniMax H3 Reference-to-Video の比較
MiniMax H3 は、視覚および音声参照によるマルチモーダルな動画演出をサポートします。Wan 3.0 は、より幅広いクリエイティブ素材を扱うチーム向けに、ドキュメントと Web ページの入力オプションを追加します。
Wan 3.0 と Seedance 2.5 Reference-to-Video の比較
Seedance 2.5 は、映像と音声の生成ワークフローで画像、動画、音声の参照素材を使用します。Wan 3.0 は、オプションのドキュメントまたは公開リンクのコンテキストを備えた Wan ファミリーの代替手段を提供します。
Wan 3.0 と Kling Video O3 Reference-to-Video の比較
Kling Video O3 は、参照素材による生成と動画編集の各バリエーションに対応しています。Wan 3.0 は、柔軟な出力とサウンド制御を備えた、Alibaba 系のマルチモーダルリクエスト形式を提供します。
Wan 3.0 と Runway References の比較
Runway は、幅広いクリエイティブワークスペースに参照機能を統合しています。Wan 3.0 は、参照素材に基づく生成を独自の製品や自動化ワークフローへ直接組み込む開発者に適しています。
ブラウザで画像と動画のクイックワークフロー向けAI制作ツールを複数試し、成功したアイデアをFlaq AIの本番対応モデルAPIで拡張できます。Flaq AIはすべてのモデルに統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できます。