---
title: xAI | Scenario Docs
---

> This page is auto-generated from model configurations. Last updated: 2026-11-05.

This reference lists all available **xAI** image generation models and their parameters. Use these parameter names when calling the [Generation API](/api/postgeneratecustom/index.md).

- [Grok Imagine Image](#grok-imagine-image)
- [Grok Imagine Image 2.0](#grok-imagine-image-20)

---

## Grok Imagine Image

Generate and edit images using xAI’s Grok model, powered by Aurora — supports text-to-image generation and image editing with multiple aspect ratios and batch output up to 10 images

**Model ID:** `model_xai-grok-imagine-image`

**Capabilities:** `txt2img`, `img2img`

**LLM Markdown:** <https://app.scenario.com/api/models/model_xai-grok-imagine-image/markdown>

| Parameter         | Type       | Required | Default | Min | Max | Allowed Values                                                                         | Description                                                                                                               |
| ----------------- | ---------- | -------- | ------- | --- | --- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `prompt`          | string     | Yes      | -       | -   | -   | -                                                                                      | Text description of the image to generate, or desired edits when a source image is provided                               |
| `referenceImages` | file_array | No       | \`\`    | -   | -   | -                                                                                      | Reference images to edit. When provided, the prompt describes the desired edits. Aspect ratio is ignored in editing mode. |
| `numOutputs`      | number     | No       | `1`     | 1   | 10  | -                                                                                      | How many images to create in one run. More images give more options to choose from.                                       |
| `aspectRatio`     | string     | No       | `1:1`   | -   | -   | `5:2`, `21:9`, `2:1`, `16:9`, `3:2`, `4:3`, `1:1`, `3:4`, `2:3`, `9:16`, `1:2`, `auto` | Aspect ratio for the generated image. Ignored when editing a source image.                                                |
| `resolution`      | string     | No       | `2k`    | -   | -   | `1k`, `2k`                                                                             | Output resolution for the generated image. 2K is only available with the Pro model.                                       |

## Grok Imagine Image 2.0

Generate and edit images using xAI’s Grok Imagine Image 2.0 — text-to-image and multi-reference editing at up to 2K, with low/medium quality control, extended aspect ratios, and batch output up to 10 images

**Model ID:** `model_xai-grok-imagine-image-2-0`

**Capabilities:** `txt2img`, `img2img`

**LLM Markdown:** <https://app.scenario.com/api/models/model_xai-grok-imagine-image-2-0/markdown>

| Parameter         | Type       | Required | Default  | Min | Max | Allowed Values                                                                                                             | Description                                                                                                                                     |
| ----------------- | ---------- | -------- | -------- | --- | --- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `prompt`          | string     | Yes      | -        | -   | -   | -                                                                                                                          | Text description of the image to generate, or desired edits when a source image is provided                                                     |
| `referenceImages` | file_array | No       | \`\`     | -   | -   | -                                                                                                                          | Reference images to edit. When provided, the prompt describes the desired edits. Aspect ratio is ignored in editing mode. Max 5 for this model. |
| `numOutputs`      | number     | No       | `1`      | 1   | 10  | -                                                                                                                          | How many images to create in one run. More images give more options to choose from.                                                             |
| `quality`         | string     | No       | `medium` | -   | -   | `low`, `medium`                                                                                                            | Generation quality. Medium is the default; low is faster and cheaper to iterate.                                                                |
| `resolution`      | string     | No       | `2k`     | -   | -   | `1k`, `2k`                                                                                                                 | 2K gives sharper detail but costs more than 1K.                                                                                                 |
| `aspectRatio`     | string     | No       | `auto`   | -   | -   | `5:2`, `21:9`, `20:9`, `19.5:9`, `2:1`, `16:9`, `3:2`, `4:3`, `1:1`, `3:4`, `2:3`, `9:16`, `1:2`, `9:19.5`, `9:20`, `auto` | Aspect ratio for the generated image. Ignored when editing a source image.                                                                      |
