# Turn photos into videos with AI (MiniMax Hailuo)

**Use case:** 

Send a list of photo URLs and one motion prompt, and each photo becomes a short mp4 clip animated by MiniMax Hailuo, as its own dataset item with the video URL and duration. From $0.05 per second of delivered video, failed clips free.

## Input

```json
{
  "prompts": [],
  "imageUrls": [
    "https://api.apify.com/v2/key-value-stores/MnVYERh4Bm47trebR/records/lake",
    "https://api.apify.com/v2/key-value-stores/MnVYERh4Bm47trebR/records/flower"
  ],
  "prompt": "gentle camera push-in, soft natural motion, cinematic",
  "duration": 5,
  "resolution": "768P",
  "promptExpansion": "balanced",
  "maxVideos": 20
}
```

## Output

```json
{
  "outputUrl": {
    "label": "Video",
    "format": "string"
  },
  "prompt": {
    "label": "Prompt",
    "format": "string"
  },
  "imageUrl": {
    "label": "Image",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Duration (s)",
    "format": "number"
  },
  "billedSeconds": {
    "label": "Billed (s)",
    "format": "integer"
  },
  "resolution": {
    "label": "Resolution",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Image to Video API — MiniMax Hailuo, Batch, Pay per Second Actor is ready to run with the inputs already set for "Turn photos into videos with AI (MiniMax Hailuo)". [Sign up or log in](https://console.apify.com/create-task-from-example/l2B8zl8dzvBowBRuE) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Turn photos into videos with AI (MiniMax Hailuo)" task

The Image to Video API — MiniMax Hailuo, Batch, Pay per Second Actor will start running based on the input automatically. You can also change all the input fields, like prompts, images (first frame), and more, to match your specific use case.

### 3. Receive the "Turn photos into videos with AI (MiniMax Hailuo)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video, prompt, image, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Turn photos into videos with AI (MiniMax Hailuo)" task via API](https://apify.com/sherwood/video-generator-batch.md).

## FAQ

### How does this task turn a photo into a video?

This photo-to-video task gives each photo to MiniMax Hailuo (h3-max-turbo) as the first frame and generates the motion described in the prompt. One shared prompt animates every photo of the list.

### What does a batch of photo-to-video clips cost?

This photo-to-video task bills per second of delivered video: $0.05 on the free plan, $0.06 on Starter, $0.055 on Scale. A 5-second clip costs $0.25 to $0.30; failed clips are free.

### What does each photo-to-video item return?

Each clip of this photo-to-video task returns the mp4 URL, its exact duration read from the file, the billed seconds, resolution and file size. A dead link or refused content returns an error item.

### Which photos are too small for this video task?

This photo-to-video task needs images of at least 256×256 pixels. Smaller ones come back as a free error item; enlarge them first with the Image Upscaler API.

## About this Actor

This example demonstrates how to use [Image to Video API — MiniMax Hailuo, Batch, Pay per Second](https://apify.com/sherwood/video-generator-batch.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sherwood/video-generator-batch.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sherwood/video-generator-batch.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
