Kling Image Expansion
[Core Function] Kling Image Expansion is an outpainting model. [Strengths] It intelligently extends the borders of an image (horizontal, vertical, or asymmetric) while matching the original style and context. [Best For] Highly recommended for: changing aspect ratios, extending landscapes, and filling out cropped photos. [Limitations] Do NOT use this model for inpainting or style transfer. [Routing] Use this specifically when the user asks to ‘expand’, ‘extend’, or ‘uncrop’ an image.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Note: All four expansion ratio parameters are required. Set to 0.0 for directions that do not need expansion. This model does NOT support: negative_prompt, aspect_ratio, resolution, image_fidelity, image_reference, or human_fidelity parameters.
Original image (URL or Base64 encoded, do not include 'data:' prefix for Base64). Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB. Minimum dimensions: 300x300px
1"https://example.com/original.jpg"
Upward expansion ratio, based on original image height. Range: 0.0-2.0
0 <= x <= 20.5
Downward expansion ratio, based on original image height. Range: 0.0-2.0
0 <= x <= 20.5
Leftward expansion ratio, based on original image width. Range: 0.0-2.0
0 <= x <= 20.5
Rightward expansion ratio, based on original image width. Range: 0.0-2.0
0 <= x <= 20.5
Positive prompt to guide content generation in expanded areas
2500"Extend with natural landscape elements"
Number of images to generate per request
1 <= x <= 91