> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Image to Video

### Single image

Most video models can generate a video from an image. As with image-to-image generation, include the image URL in your request:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "model":"kling-v1-6",
    "prompt":"Animate the painting Dwelling in the Fuchun Mountains",
    "image":"https://static.geekai.co/image/2025/04/02/79b4256e75137022ddd80f3fc21b5d35.png",
    "async": true
}'
```

> [!NOTE]
>
> Image-to-video models include Veo (Veo 3 requires the high-availability channel or higher), Jimeng 3, Kling, Stable Video, and CogVideoX.

Image-to-video takes longer than text-to-video. Set `async` to `true` to run asynchronously. Insert the returned `task_id` into the URL below and poll until the status is `succeed` and the response includes the video URL:

```bash theme={null}
curl --location --request GET 'https://geekai.co/api/v1/video/{task_id}/result' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}'
```

### First and last frames

Some models let you specify how the video starts and ends. Pass URLs for both frame images:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "model":"veo-2.0-generate-001",
    "prompt":"Using these first and last frames, show Bumblebee transforming from a car into a robot",
    "image":"https://static.geekai.co/storage/2025/07/04/ec7eae8d6f4540a6b02b027ff8bc7a70.jpeg",
    "image_tail":"https://static.geekai.co/storage/2025/07/04/20250704145107.jpg",
    "async": true
}'
```

> [!NOTE]
>
> Models supporting first and last frames include `veo-2.0-generate-001`, `MiniMax-Hailuo-02`, and Kling video models.

### Multiple images

To generate a video from several images, pass a list of image URLs in `image`:

```bash curl theme={null}
curl --location 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "model":"veo-2.0-generate-001",
    "prompt":"Show the cat from image 1 catching the butterfly from image 2",
    "image":["https://static.geekai.co/image/2025/07/02/2d915923d2904e1e816c684d99abdc17.jpg","https://static.geekai.co/image/2025/07/03/9c020196e343992413ffe120bf120438.png"],
    "async": true
}'
```

> [!NOTE]
>
> Check the model's official parameter reference for multi-image support.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.