
テキストから画像
テキストプロンプトから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-video-edit',
prompt: 'Turn the daytime scene into a rainy evening while preserving the subject and camera movement',
video_url: 'https://example.com/source-video.mp4',
duration: 10,
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-video-edit',
'prompt': 'Turn the daytime scene into a rainy evening while preserving the subject and camera movement',
'video_url': 'https://example.com/source-video.mp4',
'duration': 10,
'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-video-edit",
"prompt": "Turn the daytime scene into a rainy evening while preserving the subject and camera movement",
"video_url": "https://example.com/source-video.mp4",
"duration": 10,
"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 は、ソース映像の送信、編集状況の追跡、変換後の動画の取得に対応するタスクベースの API ワークフローを提供します。
注記 ソース動画は、対応する形式、時間、サイズの制限を満たす必要があります。ソース動画の時間と必要な出力時間の合計は上限を超えられないため、送信前に時間を検証してください。
Wan 3.0 と Wan 2.7 Video Edit の比較
Wan 2.7 は、独自の参照制御を備えたプロンプト指示によるソース動画編集を提供します。Wan 3.0 は、時間、解像度、比率、サウンド、シードを明示的に設定できる、ソース動画に特化したワークフローを採用しています。
Wan 3.0 と Kling Video O3 Video Edit の比較
Kling Video O3 は、編集と追加の動画生成モードに対応しています。Wan 3.0 は、アップロード映像を変換するための Wan ファミリーの直接的な手段を必要とするチームに適しています。
Wan 3.0 と Runway Aleph の比較
Runway Aleph は、より広範なクリエイティブ編集環境の一部です。Wan 3.0 は、独自のアプリケーションとタスクフローを通じてソース動画変換をオーケストレーションしたい開発者を支援します。
Wan 3.0 と Adobe Firefly Video の比較
Adobe Firefly Video は、動画生成と編集を Adobe のクリエイティブエコシステムに接続します。Wan 3.0 は、カスタム製品内でのプロンプト指示による編集に、Alibaba 系の API オプションを提供します。
Wan 3.0 と Pika の比較
Pika は、利用しやすいクリエイティブエフェクトと変換を重視しています。Wan 3.0 は、構造化されたリクエスト、設定可能な出力、プログラムによるタスク処理向けに設計されています。
ブラウザで画像と動画のクイックワークフロー向けAI制作ツールを複数試し、成功したアイデアをFlaq AIの本番対応モデルAPIで拡張できます。Flaq AIはすべてのモデルに統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できます。