Generate videos using xAI's Grok Imagine Video model
grok-imagine-videoThe price changes with the duration. The estimate call returns the exact figure for your input, free.
API keys come with the Scale and Ultra plans
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.
resolutionOptionalResolution of the video. Ignored when editing a video.

Pick a use case, run it in the playground, copy the call.
API keys come with the Scale and Ultra plans