image-to-video

Kling Elements Pro - Create video from image

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

post/v1/ai/image-to-video/kling-elements-pro

Request

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

Request body

imagesstring[] required

Array of up to 4 images to use for video generation. Images must be at least 300x300px, aspect ratio between 1:2.5 ~ 2.5:1, and under 10MB

promptstring

Positive text prompt

negative_promptstring

Negative text prompt

duration'5' | '10'

Duration of the generated video in seconds

aspect_ratio'widescreen_16_9' | 'social_story_9_16' | 'square_1_1'

Aspect ratio for the generated video

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.

Example request

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

Response

OK - Get the status of the kling-elements-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.