GET
/v1/schemas/grok/video/v1%2Fvideos%2Fextensions
Accept:
Request body
6 properties · 2 required · 5 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Prompt describing what should happen next in the video. | |
| video* | VideoUrl | Input video to extend. The extension continues from the end of this video. Input video must be between 2 and 15 seconds long. | |
| duration | any | Duration of the extension segment to generate in seconds (2-10). Defaults to 6 seconds if not specified. | format: int32 |
| model | any | Model to be used. | |
| output | VideoOutput | Optional output destination for generated video. | nullable |
| storage_options | StorageOptions | Optional output storage configuration. When present, the generated video is stored in the Files API and a `file_output` reference is returned in the response alongside the ephemeral URL. | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"grok","endpointId":"v1/videos/extensions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}