Skip to content

API Reference

Grok Imagine API: images, video and pricing

Grok Imagine by xAI in the Clipia API — image and video slugs, Grok Imagine Video 1.5 and Grok Video, credit prices, a curl and SDK example, the API key and how to try it.

Grok Imagine is xAI's family of image and video models: quick creative images, photo edits and short clips with sound the model writes itself. In the Clipia API every Grok Imagine mode has its own slug and is called with the same POST /v1/models/{slug} request and one Clipia API key.

ModelAPI slugWhat it does
Grok Imaginegrok-imagine/text-to-imageAn image from a description
Grok Imagine (Image-to-Image)grok-imagine/image-to-imageEdits one photo by description
Grok Imagine Video 1.5grok-imagine-video-1-5Video from text or a photo: 5–15 seconds, up to 1080p, with sound
Grok Videogrok-imagine/text-to-video, grok-imagine/image-to-videoThe earlier video model: 6 or 10 seconds, 480p or 720p, with sound

Slugs with a slash are passed in the path as is: POST /v1/models/grok-imagine/text-to-image. The SDKs encode the slash themselves; see Slugs with a slash.

Check availability in your environment

Use a slug only when GET /v1/models returns it for your API key. A model that is switched off disappears from the list, and submitting a generation returns 404 with the code not_found.

To generate without code, open the Grok Imagine Video 1.5 page or the Grok Imagine image page.

Get an API key

One Clipia key works for every model in the catalog, Grok Imagine included; you don't need an xAI account.

  1. Sign in and open the Developer Console, API keys tab.
  2. Create a live key (clipia_live_…) for real generations or a test key (clipia_test_…) for the sandbox: instant test results with no charge.
  3. Keep the key in the CLIPIA_KEY environment variable on your server — it is the password to your credit balance.

Generation with a live key works while the account has an active subscription; see Managing keys and Authentication.

Pricing

RequestPrice
Grok Imagine, one image2 credits
Grok Imagine, editing a photo2 credits
Grok Imagine Video 1.5, 5 s, 480p5 credits
Grok Imagine Video 1.5, 5 s, 720p9 credits
Grok Imagine Video 1.5, 5 s, 1080p20 credits
Grok Imagine Video 1.5, 10 s, 720p18 credits
Grok Imagine Video 1.5, 15 s, 720p27 credits
Grok Video, 6 s10 credits
Grok Video, 10 s15 credits

Sound is included in the price of both video models. Grok Video costs the same at 480p and 720p.

Pricing

Prices come from the service pricing and are current as of November 2026. Credits are reserved when a job starts and a failed generation returns them. Get the exact price for your input with cost estimation.

Generate a video

curl -X POST https://api.clipia.ai/v1/models/grok-imagine-video-1-5 \
  -H "Authorization: Bearer $CLIPIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "A red fox runs through fresh snow at sunrise, slow motion, the camera tracks alongside",
      "duration": "5",
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'

A video takes from one to a few minutes. The submit returns a request_id and the reserved cost; the SDK subscribe waits for the result itself. Without the SDK, poll GET /v1/requests/{id}/status or pass a webhook_url, then read output.video.url in the result. For an image, send the same request to grok-imagine/text-to-image with prompt and aspect_ratio; to edit a photo, call grok-imagine/image-to-image with the photo in image_url.

Parameters

Catalog snapshot as of November 27, 2026. GET /v1/models/{slug} returns the exact input_schema; it takes precedence over this summary.

ParameterModelsValues
promptallup to 5,000 characters; Grok Imagine Video 1.5 — up to 4,000
aspect_ratioimages1:1 (default), 2:3, 3:2, 9:16, 16:9
image_urlgrok-imagine/image-to-image, grok-imagine/image-to-videorequired: the source photo or the first frame as an HTTPS URL
durationGrok Imagine Video 1.55 (default), 8, 10, 15 seconds
resolutionGrok Imagine Video 1.5480p (default), 720p, 1080p
aspect_ratioGrok Imagine Video 1.5auto (default), 16:9, 9:16, 1:1, 2:3, 3:2
duration, resolutionGrok Video6 (default) or 10 seconds; 720p (default) or 480p
aspect_ratioGrok Video9:16 (default), 16:9, 1:1, 2:3, 3:2
modeGrok Videogeneration style, normal by default; other values are in input_schema

Grok Imagine API questions

Other model pages: Seedream API, Nano Banana API, Seedance 2.0 API, Kling AI API. The full list of slugs is in the model catalog.