
Text to Image
Create AI images from text prompts
Video generation by Grok Imagine API with strong motion consistency. High-availability API with competitive pricing for scalable video animation workflows. Built for free testing and stable API workflows.
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: 'grok-imagine-image-to-video',
prompt: 'Subtle camera motion, subject holds pose',
images: ['https://example.com/reference.jpg'],
duration: 6,
resolution: '720p'
})
});
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': 'grok-imagine-image-to-video',
'prompt': 'Subtle camera motion, subject holds pose',
'images': ['https://example.com/reference.jpg'],
'duration': 6,
'resolution': '720p'
}
)
task_id = response.json()['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": "grok-imagine-image-to-video",
"prompt": "Subtle camera motion, subject holds pose",
"images": ["https://example.com/reference.jpg"],
"duration": 6,
"resolution": "720p"
}'
# 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"
| Parameters | Price | Original Price | Discount |
|---|
xAI Grok Imagine Image-to-Video API delivers cost-effective, high-speed AI video animation for developers and creative teams. This Aurora-powered image-to-video API integration enables you to transform static images into professional video clips at competitive pricing. Built on xAI's Aurora video synthesis engine, Grok Imagine animates existing visuals with realistic motion while preserving visual style and scene coherence for high-volume production workflows on Flaq AI.
Note Please ensure your prompts comply with xAI's safety guidelines. If an error occurs, review your prompt for restricted content, adjust it, and try again.
Grok Imagine Image-to-Video vs. Grok Imagine Text-to-Video Grok Imagine Text-to-Video generates entirely new video scenes from text descriptions. Grok Imagine Image-to-Video animates existing static images into video clips—ideal for bringing existing visual assets to life while preserving their original style, with both sharing Aurora-powered synthesis.
Grok Imagine Image-to-Video vs. Runway Gen-3 Image-to-Video Runway Gen-3 offers strong creative flexibility and artistic controls. Grok Imagine Image-to-Video API differentiates through competitive pricing and seamless integration into xAI's unified creative workflow—making it accessible for budget-conscious developers.
Grok Imagine Image-to-Video vs. Pika Image-to-Video Pika excels at stylized animations and user-friendly interface. Grok Imagine Image-to-Video API offers programmatic access, predictable pricing, and seamless integration into production workflows.
Grok Imagine Image-to-Video vs. Kling Video O3 Image-to-Video (Kuaishou) Kling Video O3 delivers extended 3–15 second durations with optional audio effects and reference video support. Grok Imagine Image-to-Video API counters with xAI's Aurora engine and multi-image input support.
Grok Imagine Image-to-Video vs. Vidu Q3 Image-to-Video (Vidu) Vidu Q3 excels at Smart Cuts multi-shot storytelling, flexible sound controls, and up to 15-second durations. Grok Imagine Image-to-Video API differentiates through xAI's Aurora engine, style-preserving animation, and seamless integration into xAI's broader creative API ecosystem.
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 AI images from text prompts

Create AI images from images and text prompts

Create AI videos from text prompts

Animate images into AI videos

Create AI images and videos in one unified workspace

Create consistent videos from reference media