---
title: "Generate Image to Video With (Wan2.2 I2V, RTX 5090)"
slug: generate-image-to-video-with-wan
url: https://apyhub.com/mastera-ai/service/generate-image-to-video-with-wan
provider: MasterA AI
auth: api_key
version: v1
service_type: sync
endpoints: 2
atoms: 1-2000
mcp: true
---

# Generate Image to Video With (Wan2.2 I2V, RTX 5090)

What it does Image to Video Generator turns a photo into a short animated MP4 using the Wan2.2-TI2V-5B model. Send a prompt describing the motion and an image (base64-encoded), and optionally quality (fast or best) and resolution (sd or hd). The POST /v1/video/i2v endpoint starts a generation task…

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/video/i2v` | What this endpoint does Image to Video Generator turns a photo into a short animated MP4 using the… | 2000 |
| GET | `https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/i2v/tasks/:task_id` | What this endpoint does Polls the status of a Wan2.2 I2V (photo-to-video) task using the task ident… | 1 |

## Endpoint reference

### Generate a video from photo (Wan2.2 I2V)

`POST https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/video/i2v` · 2000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | body | string | yes | Base64-encoded source image to animate. |
| `prompt` | body | string | yes | The text description of the motion to generate. Example: `the subject slowly turns and smiles at the camera`. |
| `quality` | body | string | no | Generation quality tier. One of: fast, best. Default: `best`. |
| `resolution` | body | string | no | Output resolution tier. One of: sd, hd. Default: `hd`. |

#### Quickstart

Start an image-to-video generation job with a source photo and a motion prompt.

```bash
curl -X POST "https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/video/i2v" \
  -H 'apy-token: $APY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "the subject slowly turns and smiles at the camera",
    "image": "<base64-encoded-image>",
    "quality": "best",
    "resolution": "hd"
  }'
```

#### What you'll get back

Returns a JSON object with `status` (string) and `task_id` (string) fields. No `message` field is included.

```json
{
  "task_id": "d2cf2023f8c7",
  "status": "processing"
}
```

### Poll Wan I2V video status

`GET https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/i2v/tasks/:task_id` · 1 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `task_id` | path | string | yes | The task identifier returned by the submit endpoint. |

#### Quickstart

Check the status of a video-generation task by its `task_id`.

```bash
curl "https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan/v1/i2v/tasks/:task_id" \
  -H 'apy-token: $APY_TOKEN'
```

Replace the `:task_id` segment in the URL above with the `task_id` value returned by the submit endpoint (e.g. `d2cf2023f8c7`).

#### What you'll get back

```json
{
  "task_id": "d2cf2023f8c7",
  "status": "completed",
  "output_url": "https://api.eu.apyhub.com/mastera-ai/generate-image-to-video-with-wan"
}
```

On this completed response, check the `X-Apy-Atoms` response header for the actual total cost of the job.

## About

## What it does

Image to Video Generator turns a photo into a short animated MP4 using the Wan2.2-TI2V-5B model. Send a `prompt` describing the motion and an `image` (base64-encoded), and optionally `quality` (`fast` or `best`) and `resolution` (`sd` or `hd`).

The `POST /v1/video/i2v` endpoint starts a generation task and returns a `task_id`. Use `GET /v1/i2v/tasks/:task_id` to check progress until the job reaches `completed` or `error`. When the video is ready, the response includes an `output_url` to the finished MP4.

Use Image to Video Generator when you want to animate a product photo, portrait, or scene image into a short cinematic clip while keeping the composition of the source photo.

> **Notes**: Image-to-video with Wan2.2-TI2V-5B on a dedicated NVIDIA RTX 5090. Generates a ~5-second clip in roughly 1-3 minutes depending on quality/resolution tier.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/mastera-ai/service/generate-image-to-video-with-wan
