
AI Text to Image Generator
Create polished images from prompts with leading AI image models, flexible settings, and a fast browser-based workflow.
Generate reference-guided videos with Seedance 2.0 Mini using images, videos, and audio, optional sound, flexible duration, and affordable ByteDance output.
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',
duration: 8,
aspect_ratio: '16:9',
sound: true,
}),
});
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={
'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': True,
},
)
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 '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"
Seedance V2.0 Mini Reference-to-Video is ByteDance's cost-effective model for generating videos from image, video, and audio references. It combines multimodal guidance with flexible output controls, making it suitable for creators and developers who need consistent visual direction without the higher-resolution output of the standard Seedance V2.0 model.
When one or more reference videos are uploaded, the generation charge is doubled once. The multiplier is the same regardless of the number or duration of the uploaded reference videos.
Note: Every request must include at least one image or video reference. Each uploaded video and audio clip must be between 2 and 15 seconds long. Audio-only requests are not supported.
Explore several AI creation tools for quick image and video workflows in your browser, then scale successful ideas with Flaq AI's production-ready model APIs. Flaq AI provides a unified API layer for all models, making it easy to use and scale your workflows.

Create polished images from prompts with leading AI image models, flexible settings, and a fast browser-based workflow.

Upload a reference image, guide edits with prompts, and transform visuals for design, marketing, and creative production.

Turn written scene ideas into short AI videos with model selection, motion prompts, and practical generation controls.

Animate reference images into smooth AI video clips for products, portraits, social posts, and creative concepts.