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.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Grok: Video Edit" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_grok_video_edit_api.json");
const job = await client.run(wf);
await job.getOutputs("2")[0].toFile("output.png"); // SaveVideoThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ















