
テキストから画像
テキストプロンプトからAI画像を作成
Alibaba Wan 3.0の画像動画生成APIを無料で試し、開始画像から指定した終了フレームまでを動画化して、狙いどおりのビジュアルストーリーを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-image-to-video',
prompt: 'The camera glides forward as daylight gradually shifts into a warm evening glow',
image_url: 'https://example.com/start-frame.jpg',
image_end_url: 'https://example.com/end-frame.jpg',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
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-image-to-video',
'prompt': 'The camera glides forward as daylight gradually shifts into a warm evening glow',
'image_url': 'https://example.com/start-frame.jpg',
'image_end_url': 'https://example.com/end-frame.jpg',
'duration': 8,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'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-image-to-video",
"prompt": "The camera glides forward as daylight gradually shifts into a warm evening glow",
"image_url": "https://example.com/start-frame.jpg",
"image_end_url": "https://example.com/end-frame.jpg",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"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 画像動画生成 API は、必須の開始フレームと終了フレームの間に動画トランジションを生成します。開発者は、両方の画像を自然言語のモーションプロンプト、柔軟な長さ、複数の解像度とアスペクト比、任意のサウンド、シード制御と組み合わせることができます。Flaq AI は、画像でガイドされた動画結果の作成、監視、取得に対応するタスクベースの統合を提供します。
注記 両方のフレーム画像が必要です。PNG 画像にアルファチャンネルを含めることはできません。両方のフレーム構図を指定のアスペクト比に合わせ、公開前にトランジションの連続性とアーティファクトを確認してください。
Wan 3.0 と Wan 2.7 画像動画生成の比較
Wan 2.7 は、任意の終了フレームによるガイド付きで開始フレームをアニメーション化できます。Wan 3.0 は両方のフレームを必須とし、すべてのリクエストで意図する開始点と終了点を明確にします。
Wan 3.0 と Vidu Q3 画像動画生成の比較
Vidu Q3 は、画像主導の動画ワークフローとトランジションのバリエーションをサポートします。Wan 3.0 は、開始・終了フレームの必須制御を中心とした Wan ファミリーの選択肢を提供します。
Wan 3.0 と PixVerse C1 画像動画生成の比較
PixVerse C1 は、最初のフレームのアニメーションとトランジションのワークフローを分けています。Wan 3.0 は、必須の端点画像を 1 つのプロンプトおよび一貫した動画コントロールセットと組み合わせます。
Wan 3.0 と Kling 3.0 Turbo 画像動画生成の比較
Kling 3.0 Turbo は、高速な画像アニメーションを対象としています。Wan 3.0 は、Alibaba 系の API ワークフローで明示的な最終フレームの方向性を重視するチームにとっての選択肢です。
Wan 3.0 と Veo 3.1 画像動画生成の比較
Veo 3.1 は、Google の画像動画生成統合を提供します。Wan 3.0 は、必須の端点フレームと柔軟な出力設定を備えた、別の本番用オプションを開発者に提供します。
ブラウザで画像と動画のクイックワークフロー向けAI制作ツールを複数試し、成功したアイデアをFlaq AIの本番対応モデルAPIで拡張できます。Flaq AIはすべてのモデルに統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できます。