# inference.kling.txt2vid.v1

Source: https://docs.prodia.com/job-types/inference-kling-txt2vid-v1/

The `inference.kling.txt2vid.v1` job generates a video from a text prompt using Kling.

```json
{
    "type": "inference.kling.txt2vid.v1",
    "config": {
        "prompt": "a red fox trotting through a snowy forest at golden hour"
    }
}
```

Additional configuration:

- `model` (string; one of `kling-v1`, `kling-v1-6`, `kling-v2-master`, `kling-v2-1`, `kling-v2-1-master`, `kling-v3`; default `kling-v1`)
- `negative_prompt` (string)
- `cfg_scale` (number; default `0.5`)
- `mode` (string; one of `std`, `pro`; default `std`)
- `camera_control` (object)
- `aspect_ratio` (string; one of `16:9`, `9:16`, `1:1`; default `16:9`)
- `duration` (string; one of `5`, `10`; default `5`)

This job type is also available under its partner alias `inference.partner.kling.txt2vid.v1`.

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"properties": {
		"type": {
			"type": "string"
		},
		"config": {
			"type": "object",
			"additionalProperties": false,
			"required": [
				"prompt"
			],
			"properties": {
				"model": {
					"type": "string",
					"default": "kling-v1",
					"enum": [
						"kling-v1",
						"kling-v1-6",
						"kling-v2-master",
						"kling-v2-1",
						"kling-v2-1-master",
						"kling-v3"
					]
				},
				"prompt": {
					"type": "string",
					"minLength": 0,
					"maxLength": 2500,
					"examples": [
						"puppies in a cloud, 4k"
					]
				},
				"negative_prompt": {
					"type": "string",
					"minLength": 0,
					"maxLength": 2500,
					"examples": [
						"puppies in a cloud, 4k"
					]
				},
				"cfg_scale": {
					"type": "number",
					"default": 0.5,
					"minimum": 0,
					"maximum": 1
				},
				"mode": {
					"type": "string",
					"default": "std",
					"enum": [
						"std",
						"pro"
					]
				},
				"camera_control": {
					"type": "object",
					"additionalProperties": false,
					"properties": {
						"type": {
							"type": "string",
							"enum": [
								"simple",
								"down_back",
								"forward_up",
								"right_turn_forward",
								"left_turn_forward"
							]
						},
						"config": {
							"type": "object",
							"additionalProperties": false,
							"properties": {
								"horizontal": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								},
								"vertical": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								},
								"pan": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								},
								"tilt": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								},
								"roll": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								},
								"zoom": {
									"type": "number",
									"minimum": -10,
									"maximum": 10
								}
							}
						}
					}
				},
				"aspect_ratio": {
					"type": "string",
					"default": "16:9",
					"enum": [
						"16:9",
						"9:16",
						"1:1"
					]
				},
				"duration": {
					"type": "string",
					"default": "5",
					"enum": [
						"5",
						"10"
					]
				}
			}
		}
	},
	"$schema": "https://json-schema.org/draft/2020-12/schema"
}
```
