# Grok Imagine Image 2.0 API

> xAI's Grok Imagine Image 2.0: text to image and image editing, up to 2K. By xAI, on Revana from $0.02 per image.

- Model id: `grok-imagine-image-2.0`
- Kind: image
- Maker: xAI
- Tasks: Text to image, Image to image
- Resolutions: 1K, 1.5K, 2K
- Aspect ratios: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20, 21:9, 5:2
- Input images: up to 3
- Routes: 2 (starts on the cheapest, falls back automatically)
- Status: live on the API
- Page: https://revana.si/models/grok-imagine-image-2.0

## Price (per image, USD)

| Setting | Price | Credits |
|---|---|---|
| 1K | $0.02 | 2 |
| 1.5K | $0.02 | 2 |
| 2K | $0.02 | 2 |

100 credits = $1. Charged once, only for the route that succeeds; failed generations cost nothing.

## Request

POST https://api.revana.si/v1/generations with `Authorization: Bearer $REVANA_API_KEY`:

```json
{
  "model": "grok-imagine-image-2.0",
  "input": {
    "prompt": "A product photo of a ceramic coffee cup on a linen tablecloth, soft morning light",
    "resolution": "1K",
    "aspect_ratio": "16:9"
  }
}
```

Poll `GET /v1/generations/{id}` until `status` is `succeeded` or `failed`, then download `GET /v1/generations/{id}/content`. Full API: https://revana.si/llms.txt

## Similar models

- [Grok Imagine Extend](https://revana.si/models/grok-imagine-extend.md): from $0.02 per second of video
- [Grok Imagine Upscale](https://revana.si/models/grok-imagine-upscale.md): from $0.07 per generation
- [Grok Imagine Video](https://revana.si/models/grok-imagine-video.md): from $0.02 per second of video
- [Grok Imagine Video 1.5](https://revana.si/models/grok-imagine-video-1.5.md): from $0.04 per second of video
- [Grok Imagine Video 1.5 Preview](https://revana.si/models/grok-imagine-video-1.5-preview.md): from $0.02 per second of video
- [Grok Imagine Image](https://revana.si/models/grok-imagine-image.md): from $0.02 per image

