# inference.minimax.h3.img2vid.v1

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

The `inference.minimax.h3.img2vid.v1` job generates a video based on the text
prompt and input image(s) provided using the MiniMax H3 (Hailuo-03) model.
Input images must be set explicitly by referencing input filenames.

The starting and ending frames can be controlled with `first_frame` and
`last_frame`:

```json
{
    "type": "inference.minimax.h3.img2vid.v1",
    "config": {
        "prompt": "a smooth morph from start to finish",
        "first_frame": "first_frame.png",
        "last_frame": "last_frame.png",
        "duration": 8
    }
}
```

When only one frame is provided it takes its named position: `first_frame`
alone sets the starting frame and `last_frame` alone sets the ending frame.

The output aspect ratio is always adaptive (derived from the input image).

Content moderation is enabled by default and filters NSFW content. Set
`content_moderation` to `false` to disable it.

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"type": "string",
			"enum": [
				"inference.minimax.h3.img2vid.v1"
			]
		},
		"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."
				}
			}
		}
	}
}
```
