Skip to main content
POST
Kling 2.6 Pro - Create video from text or image

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json
prompt
string
required

Text prompt describing the desired video to generate, cannot exceed 2500 characters

Maximum string length: 2500
duration
enum<string>
required

Duration of the generated video in seconds

Available options:
5,
10
webhook_url
string<uri>

Webhook URL to notify the user when the task is completed

negative_prompt
string

Text prompt describing what to avoid in the generated video, cannot exceed 2500 characters

Maximum string length: 2500
cfg_scale
number<float>
default:0.5

Flexibility in generation; The higher the value, the lower the model's degree of flexibility, and the stronger the relevance to the user's prompt.

Required range: 0 <= x <= 1
aspect_ratio
enum<string>
default:widescreen_16_9

Aspect ratio for the generated video

Available options:
widescreen_16_9,
social_story_9_16,
square_1_1
generate_audio
boolean

Whether to generate audio for the video

Response

OK

data
object
required
Example: