---
title: "Kling Elements Pro - Create video from image"
method: POST
path: "/v1/ai/image-to-video/kling-elements-pro"
tags: ["image-to-video"]
---

# Kling Elements Pro - Create video from image

`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`

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

## Request body

- ItvkeRequestContent
  - `images` string[], 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
  - `prompt` string: Positive text prompt
  - `negative_prompt` string: 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_url` string, 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.

## Response `200`

OK - Get the status of the kling-elements-pro task

- CreateImageFromTextFlux200Response
  - `data` Task, required
    - `task_id` string, uuid, required: Task identifier
    - `status` 'CREATED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED', required: Task status

## Other responses

- `400`: Bad Request - The server could not understand the request due to invalid syntax.
- `401`: Unauthorized - The client must authenticate itself to get the requested response.
- `500`: Internal Server Error - The server has encountered a situation it doesn't know how to handle.
- `503`: Service Unavailable

---

[API](https://skmtc.dev/magnific/apis/magnific-api.md) · [All operations](https://skmtc.dev/magnific/apis/magnific-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magnific/apis/magnific-api/revisions/60711fb082c7?raw)
