# inference.sora-2.txt2vid.v1

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

The `inference.sora-2.txt2vid.v1` job generates a video from a text prompt using Sora 2.

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

Additional configuration:

- `aspect_ratio` (string; one of `9:16`, `16:9`; default `16:9`)
- `duration` (integer; one of `4`, `8`, `12`; default `4`)
- `seed` (integer)

This job type is also available under its partner alias `inference.partner.sora-2.txt2vid.v1`.

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"type": "string"
		},
		"config": {
			"type": "object",
			"required": [
				"prompt"
			],
			"additionalProperties": false,
			"properties": {
				"prompt": {
					"type": "string",
					"minLength": 3,
					"maxLength": 4096,
					"description": "Text description of the video to generate."
				},
				"aspect_ratio": {
					"type": "string",
					"enum": [
						"9:16",
						"16:9"
					],
					"default": "16:9",
					"description": "Output video aspect ratio."
				},
				"duration": {
					"type": "integer",
					"enum": [
						4,
						8,
						12
					],
					"default": 4,
					"description": "Video duration in seconds."
				},
				"seed": {
					"type": "integer",
					"minimum": 1,
					"maximum": 2147483647,
					"description": "A randomness initializer for video reproducibility."
				}
			}
		}
	},
	"$schema": "https://json-schema.org/draft/2020-12/schema"
}
```
