OpenAI Format

Video Extensions

Use `POST /v1/videos/extensions` to extend a segment of a specified Grok video task.

POSThttps://zx1.deepwl.net/v1/videos/extensions
Request
curl -X POST https://zx1.deepwl.net/v1/videos/extensions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '
{
  "model": "grok-video-3",
  "prompt": "play with another white cat",
  "duration": 6,
  "start_time": 4,
  "video": {
    "url": "grok:f673ba58-b053-4d8d-8938-c0b429de4d7f"
  }
}'
Response
{
  "id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
  "status": "processing",
  "status_update_time": 1762685256
}

The OpenAI format shares the POST /v1/videos/extensions path with Unified Video. For an explanation of the Unified Video flow, see Video Extensions (Unified Video).

Use POST /v1/videos/extensions to extend a specified segment of an existing video task; pass the original task ID in video.url in the Body.

  • The route entry is POST /v1/videos/extensions.
  • Required fields: model, prompt, video, start_time.
  • Set video.url to the original video task ID, for example grok:f673ba58-b053-4d8d-8938-c0b429de4d7f.

Request Headers

Authorizationstring必填

Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.

Content-Typestring必填

Request content type, must be application/json.

Request Body

modelstring必填

Model name, for example grok-video-3.

promptstring必填

Prompt for the extension segment.

videoobject必填

Reference to the original video. Currently requires the url field.

urlstring必填

Original video task ID (not a playable HTTP link), for example grok:f673ba58-b053-4d8d-8938-c0b429de4d7f.

start_timeinteger必填

Segment start time (seconds); extend from this timestamp in the original video.

durationinteger

Target duration after extension (seconds). Default is 10; supports 6, 10, and 15.

Request Examples

Response Examples

Response Fields

idstring

New extensions task ID.

statusstring

Task status; common values include processing, completed, and failed.

status_update_timeinteger

Most recent status update time (Unix timestamp).

Difference Between Extend and Extensions

ItemVideo ExtendVideo Extensions
PathPOST /v1/videos/{video_id}/extendPOST /v1/videos/extensions
Original task IDPath parameter video_idBody video.url
Typical scenarioExtend based on the path-bound original taskIndependent entry point, suitable for batch or orchestration calls