---
title: "Image To Video"
method: POST
path: "/v1/video/image2video"
tags: ["AI Video"]
---

# Image To Video

`POST /v1/video/image2video`

## Request

- Base URL: `https://api.domoai.com`
- URL: `https://api.domoai.com/v1/video/image2video`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/domoai/apis/domoai-enterprise-api/docs/v1/video/image2video/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CreateImage2VideoTaskIn
  - `callback_url` string, uri, nullable: Callback notification URL for task results. If configured, the server will actively send notifications when the task status changes. The message schema of the notification can be found in the [Callback Protocol](/api-reference/callback/callback-protocol) section.
  - `prompt` string
  - `model` 'animate-2.4-faster' | 'animate-2.4-advanced', required
  - `image` ImageInput, required
    - `domoai_uri` string, nullable
    - `bytes_base64_encoded` string, nullable
  - `seconds` integer, required: Output video duration in seconds.
  - `aspect_ratio` '16:9' | '9:16' | '1:1' | '4:3' | '3:4'

## Response `200`

Successful Response

- DomoOutTaskOut
  - `code` integer
  - `data` TaskOut, required
    - `task_id` string, uuid, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/domoai/apis/domoai-enterprise-api.md) - [All operations](https://skmtc.dev/domoai/apis/domoai-enterprise-api/llms.txt) - [OpenAPI document](https://skmtc.dev/domoai/apis/domoai-enterprise-api/revisions/287d41982970?raw)
