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.
| Model | API slug | What it does |
|---|---|---|
| Grok Imagine | grok-imagine/text-to-image | An image from a description |
| Grok Imagine (Image-to-Image) | grok-imagine/image-to-image | Edits one photo by description |
| Grok Imagine Video 1.5 | grok-imagine-video-1-5 | Video from text or a photo: 5–15 seconds, up to 1080p, with sound |
| Grok Video | grok-imagine/text-to-video, grok-imagine/image-to-video | The 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.
- Sign in and open the Developer Console, API keys tab.
- Create a live key (
clipia_live_…) for real generations or a test key (clipia_test_…) for the sandbox: instant test results with no charge. - Keep the key in the
CLIPIA_KEYenvironment 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
| Request | Price |
|---|---|
| Grok Imagine, one image | 2 credits |
| Grok Imagine, editing a photo | 2 credits |
| Grok Imagine Video 1.5, 5 s, 480p | 5 credits |
| Grok Imagine Video 1.5, 5 s, 720p | 9 credits |
| Grok Imagine Video 1.5, 5 s, 1080p | 20 credits |
| Grok Imagine Video 1.5, 10 s, 720p | 18 credits |
| Grok Imagine Video 1.5, 15 s, 720p | 27 credits |
| Grok Video, 6 s | 10 credits |
| Grok Video, 10 s | 15 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.
| Parameter | Models | Values |
|---|---|---|
prompt | all | up to 5,000 characters; Grok Imagine Video 1.5 — up to 4,000 |
aspect_ratio | images | 1:1 (default), 2:3, 3:2, 9:16, 16:9 |
image_url | grok-imagine/image-to-image, grok-imagine/image-to-video | required: the source photo or the first frame as an HTTPS URL |
duration | Grok Imagine Video 1.5 | 5 (default), 8, 10, 15 seconds |
resolution | Grok Imagine Video 1.5 | 480p (default), 720p, 1080p |
aspect_ratio | Grok Imagine Video 1.5 | auto (default), 16:9, 9:16, 1:1, 2:3, 3:2 |
duration, resolution | Grok Video | 6 (default) or 10 seconds; 720p (default) or 480p |
aspect_ratio | Grok Video | 9:16 (default), 16:9, 1:1, 2:3, 3:2 |
mode | Grok Video | generation 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.
Nano Banana API: pricing and examples
Nano Banana 2, Nano Banana 2.1 and Nano Banana Pro by Google in the Clipia API — slugs, credit prices per image, a curl and SDK example, photo edits and where to get the API key.
Seedance 2.0 API: slugs, pricing and examples
Seedance 2.0 by ByteDance in the Clipia API — Pro, Fast and Mini slugs for text-to-video and image-to-video, credit prices, a curl and SDK example and where to get the API key.