> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok Imagine Image 2.0

> Grok Imagine Image 2.0: xAI image generation and editing model.

Grok Imagine Image 2.0 is xAI's image generation and editing model for text- and image-guided creation.

Call `grok-imagine-image-2.0` through MixRoute using the endpoint below.

## Key capabilities

* Text-to-image - Generates images from natural-language prompts
* Image-guided creation - Supports image input on compatible editing routes
* 1K and 2K output - Supports multiple resolution and quality options
* Images API - Uses the OpenAI-compatible image generation endpoint

## Quick example

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/images/generations" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "grok-imagine-image-2.0",
      "prompt": "A cinematic mountain lake at sunrise",
      "size": "1024x1024",
      "n": 1
    }'
    ```
  </Tab>
</Tabs>

## Parameters

| Parameter | Type    | Required | Description                                 |
| --------- | ------- | -------- | ------------------------------------------- |
| `model`   | string  | Yes      | Model ID. Must be `grok-imagine-image-2.0`. |
| `prompt`  | string  | Yes      | Description of the image to generate.       |
| `size`    | string  | No       | Output image dimensions.                    |
| `quality` | string  | No       | Output quality when supported.              |
| `n`       | integer | No       | Number of images to generate.               |

## Vendor reference

* [xAI Grok Imagine Image 2.0 model page](https://docs.x.ai/developers/models/grok-imagine-image-2.0)
