> ## Documentation Index
> Fetch the complete documentation index at: https://docs.varg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Minimax

> Versatile video generation with good motion quality at moderate cost

## Overview

Minimax is an alternative video generation model offering solid quality at a moderate price point. It supports both text-to-video and image-to-video generation.

| Model ID | Credits | \~Cost |
| - | - | - |
| `minimax` | 80 | \$0.80 |

## Quick start

```typescript SDK theme={null}
import { createVarg } from "vargai/ai"

const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })

const result = await varg.videoModel("minimax").generate({
  prompt: "a butterfly landing on a flower, macro shot, soft focus background",
  duration: 5,
  aspectRatio: "16:9",
})

console.log(result.video.url)
```

```bash cURL theme={null}
curl -X POST https://api.varg.ai/v2/video \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax",
    "prompt": "a butterfly landing on a flower, macro shot, soft focus background",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'
```

## Parameters

**prompt** `string` *required*

Text description of the video to generate.

**duration** `number` (default: 5)

Video duration in seconds. Typical range: 5-10 seconds.

**aspect\_ratio** `string` (default: 16:9)

Output aspect ratio.

**files** `array`

Array of `{ url: string }` objects for image-to-video.

## Pricing

| Model | Credits | USD |
| - | - | - |
| `minimax` | 80 | \$0.80 |

## Tips

* **Good middle ground** between quality and cost — cheaper than Kling V3 but higher quality than LTX.
* **Works well for nature and product shots** where smooth, gentle motion is needed.

## Related models

> [card] [Wan 2.5](https://docs.varg.ai/models/video/wan-2.md)
>
> Similar price. Better for character animation.

> [card] [LTX](https://docs.varg.ai/models/video/ltx.md)
>
> Cheapest option at 50 credits. Fastest generation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.