image-to-video

Kling 2.5 Pro - Create video from image

Generate a video from an image using the Kling 2.5 Pro model.

post/v1/ai/image-to-video/kling-v2-5-pro

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/image-to-video/kling-v2-5-pro
  • Auth: API key in header x-magnific-api-key

Request body

webhook_urlstring uri

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

imagestring

Reference Image. Supports Base64 encoding or URL (ensure accessibility). For URL, must be publicly accessible. The image file size cannot exceed 10MB, and the resolution should not be less than 300x300px. Aspect ratio should be between 1:2.5 ~ 2.5:1.

promptstring

Text prompt describing the desired motion, cannot exceed 2500 characters

negative_promptstring

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

duration'5' | '10' required

Duration of the generated video in seconds

cfg_scalenumber float

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

Example request

{
  "webhook_url": "https://www.example.com/webhook"
}

Response

OK - Get the status of the kling-v2-5-pro task

Example response

{
  "data": {
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.