Generate videos using xAI's Grok Imagine Video model
Every plan, free included.
The smallest request that works: the required fields only.
curl https://api.percify.io/v3/playground/v1/run \
-H "Authorization: Bearer $PERCIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"modelId": "grok-imagine-video",
"input": {
"prompt": "a penguin walks away from the camera, towards a large snowy mountaintop in the distance"
}
}'6 fields in input, required first.
promptRequiredText prompt for video generation
imageOptionalInput image to generate video from (image-to-video). Supports jpg, jpeg, png, webp.
videoOptionalInput video to edit (video editing mode). Must be a direct link, max 8.7 seconds. Supports mp4, mov, webm.
durationOptionalDuration of the video in seconds (1-15). Ignored when editing a video.
aspect_ratioOptionalAspect ratio of the video. For text-to-video, defaults to 16:9. For image-to-video, defaults to the input image's native aspect ratio. Ignored when editing a video.
$0.06/sFLUX 3 Video Edit applies prompt-guided changes to existing videos while preserving motion, timing, and framing, supporting precise video modification, visual style updates, scene refinements, creative edits, ads, and production workflows.
$0.12/sGemini Omni 1.1 Flash Video Edit applies natural-language edits to existing videos, supporting output resolutions from 360P to 4K for prompt-guided video modification, scene refinements, creative edits, marketing content, and production workflows.
$0.161/sxAI Grok Imagine Video v1.5 Reference to Video turns up to seven reference images and a natural-language prompt into short, stylized AI videos, with 480P / 720P output options and selectable aspect ratios for identity-consistent clips, character-driven videos, social media content, creative storytelling, and marketing workflows.
$0.16/sxAI Grok Imagine Video v1.5 Text to Video turns natural-language prompts into short, stylized AI videos, with 480P, 720P, and 1080P output options plus selectable aspect ratios for social media clips, creative storytelling, concept videos, marketing content, and professional text-to-video workflows.

Pick a use case, run it in the playground, copy the call.
Every plan, free included.
resolutionOptionalResolution of the video. Ignored when editing a video.