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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Grok Imagine 2.0 API

> Grok Imagine 2.0 API on Venice: image generation and image editing up to 2K, from $0.07 per image. Private, with zero data retention.



## Grok Imagine 2.0 API

Grok Imagine 2.0 is an image generation and image editing model by xAI, available on the Venice API as `grok-imagine-image-2-0`. This model is private and no prompt data is stored in any capacity.

Grok Imagine 2.0 is the second generation of xAI's Grok Imagine image model, generating images at 1K or 2K from text, with low and medium quality settings. It pairs with Grok Imagine 2.0 Edit for changing existing images.

### Grok Imagine 2.0 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `grok-imagine-image-2-0` | Generate | Private | \$0.07 / image |
| `grok-imagine-image-2-0-edit` | Edit | Private | \$0.07 / edit |

Prices by `quality` for `grok-imagine-image-2-0`, `medium` when left out:

| Quality | 1K | 2K |
| - | - | - |
| low | \$0.05 | \$0.07 |
| medium | \$0.07 | \$0.10 |

### Grok Imagine 2.0 specifications

| Spec | Value |
| - | - |
| Provider | xAI |
| Released | Aug 11, 2026 |
| Privacy | Private |
| Status | Stable |
| Resolutions | 1K, 2K |
| Aspect ratios | 1:1, 4:3, 3:2, 16:9, 2:1, 19.5:9, 20:9, 21:9, 5:2, 3:4, 2:3, 9:16, 1:2, 9:19.5, 9:20 |
| Prompt limit | 7,500 characters |

### How to use the Grok Imagine 2.0 API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "grok-imagine-image-2-0"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/image/generate \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-2-0",
    "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
    "resolution": "1K",
    "aspect_ratio": "1:1"
  }'
```

### Related models

* [Grok Imagine API](https://docs.venice.ai/models/grok-imagine-image.md): \$0.03 / image
* [GPT Image 2.5 Flare API](https://docs.venice.ai/models/gpt-image-2-5-flare.md): \$0.07 / image
* [GPT Image 2.5 Sunburst API](https://docs.venice.ai/models/gpt-image-2-5-sunburst.md): \$0.07 / image
* [Krea v2 Large API](https://docs.venice.ai/models/krea-v2-large.md): \$0.07 / image
* [Krea 3 API](https://docs.venice.ai/models/krea-3.md): \$0.07 / image


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.