Skip to content
Docs menu

Video models

Grok Imagine

On this page

Grok Imagine — high-quality AI video generation.

modelIdgrok-imagine-image-to-video
Modalityvideo
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to videoPOST /api/v1/generateBase generation from a text prompt.
Image to videoPOST /api/v1/generateCondition on a reference image — upload it via /api/v1/files/upload and pass the URL.
Poll taskGET /api/v1/task/{id}?model=grok-imagine-image-to-videoRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
image_urlsimageoptionalDrag and drop or click to upload your image
task_idtextoptionalEnter task_id
indexnumberoptional
prompttextareaoptionalEnter your prompt here...
modeselectoptionalfun, normal, spicy
aspect_ratioselectoptional2:3, 3:2, 1:1, 16:9, 9:16
durationnumberoptional
resolutionselectoptional480p, 720p
nsfw_checkerselectoptionalfalse, true

Example request

bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"grok-imagine-image-to-video","input":{"task_id":"…","index":0,"prompt":"Slow cinematic push-in with gentle ambient motion, soft light shifting across the frame, subtle parallax and a shallow, dreamlike depth of field.","mode":"normal","aspect_ratio":"2:3","duration":6,"resolution":"480p","nsfw_checker":"true"}}'