# Hailuo 02 API

> MiniMax's Hailuo 02: text to video, image to video and first and last frames, up to 1080p. By MiniMax, on Revana from $0.02 per second of video.

- Model id: `hailuo-02`
- Kind: video
- Maker: MiniMax
- Tasks: Text to video, Image to video, First + last frame
- Resolutions: 512p, 768p, 1080p
- Durations: 5 s, 10 s
- Audio: silent only
- Routes: 1
- Status: live on the API
- Page: https://revana.si/models/hailuo-02

## Price (per second of video, USD)

| Resolution | Price | Credits |
|---|---|---|
| 512p | $0.02 | 2 |
| 768p | $0.05 | 5 |
| 1080p | $0.10 | 10 |

100 credits = $1. Charged once, only for the route that succeeds; failed generations cost nothing.

## Request

POST https://api.revana.si/v1/generations with `Authorization: Bearer $REVANA_API_KEY`:

```json
{
  "model": "hailuo-02",
  "input": {
    "prompt": "A slow dolly shot through a neon-lit night market in the rain, steam rising from food stalls",
    "resolution": "1080p",
    "duration": 5
  }
}
```

Poll `GET /v1/generations/{id}` until `status` is `succeeded` or `failed`, then download `GET /v1/generations/{id}/content`. Full API: https://revana.si/llms.txt

## Similar models

- [Hailuo 2.3](https://revana.si/models/hailuo-2.3.md): from $0.06 per second of video
- [Hailuo 02 Pro](https://revana.si/models/hailuo-02-pro.md): from $0.06 per second of video
- [Hailuo 02 Standard](https://revana.si/models/hailuo-02-std.md): from $0.02 per second of video
- [Hailuo 2.3 Fast](https://revana.si/models/hailuo-2.3-fast.md): from $0.04 per second of video
- [Hailuo 2.3 Standard](https://revana.si/models/hailuo-2.3-std.md): from $0.04 per second of video
- [MiniMax H3](https://revana.si/models/minimax-h3.md): from $0.03 per second of video

