
AIメディア作成ツール
1つのワークスペースでAI画像と動画を作成
Best Image AI の Seedance 2.0 Mini API で 4~15 秒の動画を作成できます。参照画像やクリップで動きを指定し、音声を加えて 480p または 720p で出力します。
Seedance V2.0 Mini Reference-to-Video は、画像、動画、音声の参照素材から動画を生成できる、ByteDance のコストパフォーマンスに優れたモデルです。マルチモーダルなガイダンスと柔軟な出力制御を組み合わせており、標準の Seedance V2.0 モデルが提供する高解像度出力を必要とせず、一貫したビジュアルの方向性を求めるクリエイターや開発者に適しています。
参照動画を 1 本以上アップロードすると、生成料金は一律で 2 倍になります。アップロードした参照動画の本数や長さにかかわらず、倍率は同じです。
注:すべてのリクエストに、画像または動画の参照素材を 1 つ以上含める必要があります。アップロードする各動画と音声クリップの長さは 2~15 秒でなければなりません。音声のみのリクエストには対応していません。
ブラウザで画像や動画をすばやく制作できる複数のAIクリエイティブツールを試し、成功したアイデアをBest Image AIの本番運用対応モデルAPIでスケールできます。Best Image AIはすべてのモデルに対応する統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できるようにします。
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'seedance-v2.0-mini-reference-to-video',
prompt:
'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
images: ['https://example.com/character-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/audio-reference.mp3'],
resolution: '720p',
: ,
: ,
: ,
}),
});
{ data } = response.();
taskId = data.;
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'model_name': 'seedance-v2.0-mini-reference-to-video',
'prompt': 'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
'images': ['https://example.com/character-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/audio-reference.mp3'],
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': ,
},
)
result = response.json()
task_id = result[][]
curl -X POST 'https://api.flaq.ai/api/v1/video/task' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model_name": "seedance-v2.0-mini-reference-to-video",
"prompt": "Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.",
"images": ["https://example.com/character-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/audio-reference.mp3"],
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true
}'
# 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"
// 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 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)