# inference.partner.seedance-2.mini.img2vid.v1

Source: https://docs.prodia.com/job-types/inference-partner-seedance-2-mini-img2vid-v1/

The `inference.partner.seedance-2.mini.img2vid.v1` job uses Dreamina Seedance 2.0 Mini.

```json
{
  "type": "inference.partner.seedance-2.mini.img2vid.v1",
  "config": {
    "first_frame": "reference.png",
    "prompt": "A fox in a snowy forest"
  }
}
```

Supports resolution (480p/720p), duration (4–15 or -1 for automatic), aspect ratio, seed, audio generation, first-frame and optional last-frame inputs.

For image, video, or audio references, use `inference.partner.seedance-2.mini.ref2vid.v1`.

Set `duration` to `-1` for automatic duration. Automatic duration is determined from the prompt and reference content.

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"type": "string"
		},
		"config": {
			"type": "object",
			"required": [
				"prompt"
			],
			"additionalProperties": false,
			"properties": {
				"first_frame": {
					"description": "Set the starting frame for the video. Use alone for first-frame mode, or pair with last_frame for first-and-last-frame mode.",
					"type": "string",
					"format": "filename",
					"example": "first_frame.png"
				},
				"last_frame": {
					"description": "Set the ending frame for the video. Must be used together with first_frame.",
					"type": "string",
					"format": "filename",
					"example": "last_frame.png"
				},
				"prompt": {
					"description": "Description of desired output.",
					"type": "string",
					"default": "a flying dragon over mountains",
					"minLength": 3,
					"maxLength": 4096
				},
				"resolution": {
					"description": "This controls the general quality level of the output. Exact width and height will vary depending on the selected aspect ratio. For a video with approximately 480 or 720 pixel height use a 16:9 aspect ratio.",
					"type": "string",
					"default": "720p",
					"enum": [
						"480p",
						"720p"
					]
				},
				"aspect_ratio": {
					"description": "Controls the approximate aspect ratio of the resulting video. Use \"adaptive\" to let the model pick automatically based on the prompt.",
					"type": "string",
					"default": "adaptive",
					"enum": [
						"16:9",
						"4:3",
						"1:1",
						"3:4",
						"9:16",
						"21:9",
						"adaptive"
					]
				},
				"duration": {
					"description": "Output duration in seconds: 4–15, or -1 for automatic duration. Automatic duration is determined from the prompt and reference content.",
					"type": "integer",
					"default": 5,
					"maximum": 15,
					"anyOf": [
						{
							"const": -1
						},
						{
							"minimum": 4,
							"maximum": 15
						}
					]
				},
				"watermark": {
					"description": "When set to true a watermark is added indicating the output is AI generated.",
					"type": "boolean",
					"default": false
				},
				"generate_audio": {
					"description": "When true the output video includes synchronized audio. When false a silent video is produced.",
					"type": "boolean",
					"default": true
				},
				"return_last_frame": {
					"description": "When true the last frame of the generated video is also returned as a PNG (last_frame.png) alongside the video.",
					"type": "boolean",
					"default": false
				},
				"seed": {
					"description": "A randomness initializer for image reproducability.",
					"type": "integer",
					"minimum": -1,
					"maximum": 2147483647
				}
			}
		}
	},
	"$schema": "https://json-schema.org/draft/2020-12/schema"
}
```
