# Image to Video I/O

### Intro

The Image to Video API allows you to turn a simple product photo into an animated visual asset.

#### Cost

* 35 credits per 5 second video.
* 70 credits per 10 second video.

#### Rate limits

* 1 generation per 1 second.
* 15 generations per 1 minute.

#### Limitations

* Only one input image can be processed per request.
* Only one video can be generated per request.
* Each side of the input image should be greater than or equal to 300px.
* Input image format should be JPG, PNG, WEBP, HEIC or HEIF.

### Input

URL of the input image should be from 1 to 512 characters. The image must be accessible by our system.

```json
{
    "input": "https://letsenhance.io/docs/assets/samples/burger.jpg"
}
```

#### Connected storage

You can connect [Cloud Storage](https://docs.claid.ai/storage-connectors) and use it as a source for images. Currently, our API supports AWS S3 and Google Cloud Storage.

After connecting your Cloud Storage, you can refer the storage name as an input.

```json
{
    "input": "storage://storage-name/input-path/input.png"
}
```

### Output

Configuring output is optional. By default, you may omit the output option from the request payload. In this case, our system stores the result in a temporary bucket with a lifespan of 24 hours and provides a public URL to the video.

Alternatively, you can use a connected [Cloud Storage](https://docs.claid.ai/storage-connectors): just configure the path to the folder where you want to store results.

```json
{
    "output": "storage://storage-name/output-path/output.mp4"
}
```

You can also specify a folder output, in this case a unique filename will be generated for the output.

```json
{
    "output": "storage://storage-name/output-path/"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.claid.ai/image-to-video-api/image-to-video-i-o.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
