# inference.minimax.h3.img2vid.v1

Source: https://docs.prodia.com/job-types/inference-minimax-h3-img2vid-v1/

The `inference.minimax.h3.img2vid.v1` job animates an input image into a video guided by a text prompt using MiniMax Hailuo 03.

```json
{
    "type": "inference.minimax.h3.img2vid.v1",
    "config": {
        "prompt": "a red fox trotting through a snowy forest at golden hour",
        "first_frame": "reference.png"
    }
}
```

Additional configuration:

- `last_frame` (string)
- `content_moderation` (boolean; default `True`)
- `resolution` (string; one of `768P`, `2K`; default `768P`)
- `duration` (integer; default `6`)

This job type is also available under its partner alias `inference.partner.minimax.h3.img2vid.v1`.

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"type": "string"
		},
		"config": {
			"type": "object",
			"required": [
				"prompt"
			],
			"additionalProperties": false,
			"properties": {
				"first_frame": {
					"type": "string",
					"format": "filename",
					"example": "first_frame.png",
					"description": "Set the starting frame for the video."
				},
				"last_frame": {
					"type": "string",
					"format": "filename",
					"example": "last_frame.png",
					"description": "Set the ending frame for the video."
				},
				"prompt": {
					"type": "string",
					"minLength": 3,
					"maxLength": 7000,
					"default": "a dancing cat under moonlight",
					"description": "Description of desired output."
				},
				"content_moderation": {
					"type": "boolean",
					"default": true,
					"description": "Filter NSFW content using MiniMax's content moderation."
				},
				"resolution": {
					"type": "string",
					"enum": [
						"768P",
						"2K"
					],
					"default": "768P",
					"description": "This controls the general quality level of the output. Exact width and height will vary depending on the aspect ratio of the input image."
				},
				"duration": {
					"type": "integer",
					"minimum": 4,
					"maximum": 15,
					"default": 6,
					"description": "Duration of the video in seconds."
				}
			}
		}
	},
	"$schema": "https://json-schema.org/draft/2020-12/schema"
}
```
