The 'Grok: Video Edit' workflow is designed to streamline the process of video editing using the Grok API. This workflow allows users to upload a video, specify desired modifications, and generate an edited version with ease. At its core, the workflow utilizes three primary nodes: LoadVideo, GrokVideoEditNode, and SaveVideo. The LoadVideo node is responsible for importing the video file into the workflow, ensuring that the video is in a compatible format for processing. Once the video is loaded, the GrokVideoEditNode comes into play. This node interfaces with the Grok API, allowing users to input specific editing instructions, such as trimming, adding effects, or adjusting colors. The API processes these instructions and applies the changes to the video. Finally, the SaveVideo node outputs the edited video, saving it in the desired format and location.

This workflow is particularly useful for content creators, marketers, and video editors who need to make quick edits without delving into complex software. By leveraging the power of the Grok API, users can achieve professional-quality edits with minimal effort. The integration of these nodes ensures a seamless transition from raw footage to a polished final product, making it an invaluable tool for efficient video production.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

GET https://comfy.org/workflows/download/6e92ce657980.json
Fetching workflow JSON…

Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run "Grok: Video Edit" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("api_grok_video_edit_api.json")

job = client.run(wf)
for output in job.get_outputs("2"):  # SaveVideo
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates