Readme
Kling AI v2 Master - Professional Image-to-Video Generation
Transform static images into dynamic, fluid video content with Kling AI v2 Master. Built by Kuaishou and optimized for professional creative workflows, this advanced AI model generates high-quality video animations from single images with unprecedented control and natural motion.
Overview
Kling AI v2 Master excels at creating smooth, realistic video animations from still images. Whether you're a content creator, marketing professional, or developer building video applications, this model delivers production-ready results through an intuitive API. As the premium tier offering, it provides superior motion fluidity and cinematic quality for professional-grade video creation.
Key Capabilities
Transform any still image into fluid video content with:
- Natural motion patterns that respect physics and object relationships
- Precise control over animation duration (5 or 10 seconds)
- Consistent quality across diverse image types
- Professional-grade cinematic output
- Enhanced visual aesthetics and motion dynamics
Getting Started
Getting up and running with Kling AI is straightforward. First, install your preferred SDK:
JavaScript/TypeScript:
npm install --save @fal-ai/client
Python:
Authentication
Configure your API credentials:
import { fal } from "@fal-ai/client";
fal.config({
credentials: "YOUR_FAL_KEY_HERE"
});
Basic Usage
Here's a simple example of generating a video from an image:
const result = await fal.subscribe("fal-ai/kling-video/v2/master/image-to-video", {
input: {
prompt: "slow-motion sequence captures the catastrophic implosion of a skyscraper",
image_url: "https://example.com/source-image.jpg",
duration: "5",
aspect_ratio: "16:9",
negative_prompt: "blur, distort, and low quality",
cfg_scale: 0.5
}
});
console.log(result.video.url);
API Parameters
prompt (required): Text description of the desired motion and scene
image_url (required): URL of the input image
duration: Video duration - "5" or "10" seconds
aspect_ratio: Output aspect ratio (e.g., "16:9", "9:16", "1:1")
negative_prompt: Elements to avoid in the generation
cfg_scale: Classifier Free Guidance scale (default: 0.5)
static_mask_url: URL for static motion brush mask
dynamic_mask_url: URL for dynamic motion brush mask
special_fx: Special effects options
input_image_urls: Array of up to 4 images for multi-image generation
Advanced Features
The v2 Master model provides sophisticated controls for professional applications:
Motion Control
Adjust motion intensity and patterns through intuitive parameters. Fine-tune the balance between dramatic movement and natural flow to match your creative vision using cfg_scale and motion masks.
Quality Settings
Master tier delivers the highest quality output with enhanced detail and smoother motion, ideal for professional productions and cinematic content.
Export to multiple video formats with control over resolution and aspect ratio to optimize for different distribution channels.
Queue Management
For asynchronous processing:
// Submit request
const { request_id } = await fal.queue.submit("fal-ai/kling-video/v2/master/image-to-video", {
input: {
prompt: "Your cinematic description",
image_url: "your-image-url",
duration: "10"
}
});
// Check status
const status = await fal.queue.status("fal-ai/kling-video/v2/master/image-to-video", {
requestId: request_id,
logs: true
});
// Get result
const result = await fal.queue.result("fal-ai/kling-video/v2/master/image-to-video", {
requestId: request_id
});
Best Practices
For optimal results:
Start with high-quality source images. The model performs best with clear, well-lit images at high resolution.
Test different cfg_scale values. Begin with moderate settings (0.5) and adjust based on your content needs.
Consider your target platform. Adjust aspect ratio and duration settings to match your distribution requirements while maintaining quality.
Technical Support
Our comprehensive documentation covers advanced usage scenarios, parameter tuning, and troubleshooting. For additional support:
- Visit our documentation portal for detailed guides
- Join our developer community for peer support
- Contact our technical team for enterprise assistance
Pricing and Usage
Premium pricing for professional quality:
- 5-second video: $1.40
- Additional seconds: $0.28 per second
- 10-second video: $2.80
View detailed pricing or contact sales for enterprise solutions.
Model Variants
Kling offers multiple quality tiers:
- Master: This model - Premium quality for professional use
- Standard:
fal-ai/kling-video/v2/standard/image-to-video - Cost-efficient option
- v2.1 Versions: Latest iteration with additional improvements
Support and Resources
Ready to Create Cinematic Videos?
Get started with Kling AI v2 Master today and experience professional-grade video generation capabilities. Create your API key at fal.ai and transform your images into stunning, cinematic videos.