# Grok Imagine Image Quality

ID: xai/grok-imagine-image-quality
Type: image generation
Vendor: xAI
Released: 2026-04-03
Description: Grok Imagine Image Quality is xAI’s higher-fidelity Imagine tier for stronger realism, prompt following, and text rendering.

## Modes and inputs
- Text → Image (`txt->img`)
  - Prompt only, no input images
- Image → Image (`img->img`)
  - any image: up to 3

## Output
- Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 20:9, 9:20, 19.5:9, 9:19.5. Other ratios snap to the closest one. Without `size` (or with `"auto"`), Mynth picks a ratio for the prompt.
- 4K: no
- Negative prompt: not supported (dropped, no error)

## Pricing (USD)
- Per image: $0.050
- Per input image: $0.010, charged once for each image it goes into
- Only successful results are charged.

## Usage
Set the request's `model` field to `xai/grok-imagine-image-quality`. Always pass it explicitly.

TypeScript SDK, Text → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "xai/grok-imagine-image-quality",
  prompt: "A lighthouse at dusk, 35mm film",
  size: "16:9",
});

console.log(task.urls[0]);
```

REST (cURL), Text → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-imagine-image-quality",
    "prompt": "A lighthouse at dusk, 35mm film",
    "size": "16:9"
  }'
```

CLI, Text → Image:

```bash
npx @mynthio/cli image generate \
  -m xai/grok-imagine-image-quality \
  -p "A lighthouse at dusk, 35mm film" \
  -s 16:9
```

TypeScript SDK, Image → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "xai/grok-imagine-image-quality",
  prompt: "The same lighthouse, now in heavy fog",
  inputs: ["https://cdn.example.com/lighthouse.png"],
});

console.log(task.urls[0]);
```

REST (cURL), Image → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-imagine-image-quality",
    "prompt": "The same lighthouse, now in heavy fog",
    "inputs": ["https://cdn.example.com/lighthouse.png"]
  }'
```

CLI, Image → Image:

```bash
npx @mynthio/cli image generate \
  -m xai/grok-imagine-image-quality \
  -p "The same lighthouse, now in heavy fog" \
  -i https://cdn.example.com/lighthouse.png
```

## Links
- Model page: https://mynth.io/models/xai%2Fgrok-imagine-image-quality
- Playground: https://mynth.io/playground?_m=xai%2Fgrok-imagine-image-quality
- Vendor page: https://docs.x.ai/developers/models/grok-imagine-image-quality
- API docs (image generation request): https://mynth.io/docs/api-reference/endpoints/image/generate.md
- Quickstart: https://mynth.io/docs/getting-started.md
- SDK (JS/TS): https://mynth.io/docs/sdks/typescript.md
- This page as JSON: https://mynth.io/models/xai%2Fgrok-imagine-image-quality.json

## More from xAI
- Grok Imagine Image [xai/grok-imagine-image]: https://mynth.io/models/xai%2Fgrok-imagine-image.md
- Grok Imagine Image 2.0 [xai/grok-imagine-image-2.0]: https://mynth.io/models/xai%2Fgrok-imagine-image-2.0.md
- Grok Imagine Video 1.5 [xai/grok-imagine-video-1.5]: https://mynth.io/models/xai%2Fgrok-imagine-video-1.5.md

## Similar models
- ImagineArt 2.0 [imagineart/imagineart-2.0]: https://mynth.io/models/imagineart%2Fimagineart-2.0.md
- MAI Image 2.6 [microsoft/mai-image-2.6]: https://mynth.io/models/microsoft%2Fmai-image-2.6.md
- Luma UNI-1 [luma/uni-1]: https://mynth.io/models/luma%2Funi-1.md
- FLUX.2 Flex [black-forest-labs/flux.2-flex]: https://mynth.io/models/black-forest-labs%2Fflux.2-flex.md
- Ideogram 4.5 [ideogram/ideogram-4.5]: https://mynth.io/models/ideogram%2Fideogram-4.5.md
