
Text to Image
Create AI images from text prompts
Reference video generation by Kling O3 Pro API. Delivers superior subject consistency and stable performance at competitive pricing for demanding 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: 'kling-video-o3-pro-reference-to-video',
prompt: 'Follow reference motion, consistent lighting',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/ref1.jpg'],
duration: 5
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
const mediaReferenceResponse = 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: 'kling-video-o3-pro-reference-to-video',
prompt: 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
videos: ['https://example.com/action-reference.mp4'],
aspect_ratio: '16:9',
duration: 5,
sound: false
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.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': 'kling-video-o3-pro-reference-to-video',
'prompt': 'Follow reference motion, consistent lighting',
'video_url': 'https://example.com/source.mp4',
'images': ['https://example.com/ref1.jpg'],
'duration': 5
}
)
task_id = response.json()['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
media_reference_response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'kling-video-o3-pro-reference-to-video',
'prompt': 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
'images': [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
'videos': ['https://example.com/action-reference.mp4'],
'aspect_ratio': '16:9',
'duration': 5,
'sound': False
}
)
media_reference_task_id = media_reference_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": "kling-video-o3-pro-reference-to-video",
"prompt": "Follow reference motion, consistent lighting",
"video_url": "https://example.com/source.mp4",
"images": ["https://example.com/ref1.jpg"],
"duration": 5
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
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": "kling-video-o3-pro-reference-to-video",
"prompt": "Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/cinematic-setting-reference.jpg"
],
"videos": ["https://example.com/action-reference.mp4"],
"aspect_ratio": "16:9",
"duration": 5,
"sound": false
}'
# 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 |
|---|
Kuaishou Kling Video O3 Pro Reference-to-Video API delivers premium, production-grade AI video generation for developers and creative teams. This high-fidelity reference-to-video API integration enables you to generate professional video clips guided by reference videos across 3–15 second durations with optional audio effects. Built on Kuaishou's Multimodal Visual Language (MVL) architecture, the Kling Video O3 Pro model delivers maximum quality and motion realism when using reference video inputs to guide generation for demanding commercial applications on Flaq AI.
Note Please ensure your prompts comply with Kuaishou's content safety guidelines. If an error occurs, review your prompt for restricted content, adjust it, and try again.
Kling Video O3 Pro vs. Kling Video O3 Standard Reference-to-Video Kling Video O3 Standard provides strong MVL-powered reference-guided generation at a lower price point. Kling Video O3 Pro delivers enhanced motion fidelity, superior detail rendering, and premium quality at higher pricing—making it the preferred choice for demanding commercial applications where maximum quality is essential.
Kling Video O3 Pro vs. Kling Video O3 Pro Image-to-Video Kling Video O3 Pro Image-to-Video animates static images into video clips. Kling Video O3 Pro Reference-to-Video uses existing video clips as motion and style guides—ideal for applications requiring precise control over motion patterns and camera behavior from reference footage with premium quality output.
Kling Video O3 Pro vs. Runway Gen-3 Reference Generation Runway Gen-3 offers strong creative controls and artistic flexibility. Kling Video O3 Pro Reference-to-Video API differentiates through enhanced motion fidelity, optional audio effects, flexible 3–15 second duration control, and MVL-powered motion reasoning—making it superior for premium commercial reference-guided generation.
Kling Video O3 Pro vs. Pika Reference-to-Video Pika excels at stylized animations and user-friendly interface. Kling Video O3 Pro provides programmatic API access, enhanced motion fidelity, extended duration up to 15 seconds, and optional audio effects—ideal for developers building premium reference-guided video pipelines.
Kling Video O3 Pro vs. Vidu Q3 Pro (Vidu) Vidu Q3 Pro excels at Smart Cuts multi-shot storytelling and flexible sound controls. Kling Video O3 Pro Reference-to-Video API differentiates through reference video-guided generation, enhanced MVL-powered motion transfer, and premium per-second billing—making it a strong choice for applications requiring precise motion style control at premium quality.
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