GET

/v1/schemas/openai/video/videos

kind inputactivity videohash c148987eextracted Jul 6, 2026version currentsource upstream spec ↗

Request body

5 properties · 1 required · 4 $defs
propertytypedescriptionconstraints
prompt*stringText prompt that describes the video to generate.length ≥ 1 · length ≤ 32000
modelstring | enumThe video generation model to use (allowed values: sora-2, sora-2-pro). Defaults to `sora-2`.
input_referenceImageRefParam-2Optional reference object that guides generation. Provide exactly one of `image_url` or `file_id`.
secondsenumClip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds.4 | 8 | 12
sizeenumOutput resolution formatted as width x height (allowed values: 720x1280, 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280.720x1280 | 1280x720 | 1024x1792 | 1792x1024

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"openai","endpointId":"videos","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}