Grok video model

Access the Grok video model according to the actual model and channel configuration of this site.

Which creation, editing and extension actions supported by Grok video depend on the xAI plug-in model enabled on this site. Verify the generation first, and then use the extended action with pre-material.

Path comparison

Action Plugin native endpoint
Generate POST /xai/v1/videos/generations
Editor POST /xai/v1/videos/edits
Extend POST /xai/v1/videos/extensions
Query GET /xai/v1/videos/{id}

The set of edited and extended models may be narrower and not available by default just because the build was successful.

Step one: Minimal generation

curl --fail-with-body https://dunduntoken.com/xai/v1/videos/generations   -H "Authorization: Bearer $DUNDUN_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"GROK_VIDEO_MODEL_ID","prompt":"缓慢移动的白云,固定镜头"}'

ID uses actual available values, duration, frame and quality options are supplemented per model.

Step 2: Query and download

Save the gateway request ID returned by creation, and use the native query path to read the status and results; if it is not completed yet, a pending response may be returned, and it will not be parsed directly as a finished product. Save the video after success. See also Video Generation for the unified video method.

Step 3: Edit and extend

First confirm the supported models, input video source, length and output restrictions, and submit according to the corresponding action schema. Video materials cannot be replaced by picture parameters, and the generated task number does not automatically equal editable resources.

Troubleshooting

Check action and model match, material readability and final state. After the network is disconnected, check the task first and do not generate it repeatedly through automatic switching actions. Downloading external results does not forward the site key.