> ## 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 API

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



## Grok Imagine API

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

Grok Imagine is xAI's image model, generating photorealistic images from text at 1K or 2K with reliable quality and low latency. It pairs with Grok Imagine Edit for changing elements and styles.

### Grok Imagine API pricing

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

### Grok Imagine specifications

| Spec | Value |
| - | - |
| Provider | xAI |
| Released | Apr 9, 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, 3:4, 2:3, 9:16, 1:2, 9:19.5, 9:20 |
| Prompt limit | 7,500 characters |

### How to use the Grok Imagine API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "grok-imagine-image"` 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",
    "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 2.0 API](https://docs.venice.ai/models/grok-imagine-2-0.md): \$0.07 / image
* [Flux 2 Pro API](https://docs.venice.ai/models/flux-2-pro.md): \$0.03 / image
* [Wan 2.7 API](https://docs.venice.ai/models/wan-2-7-image.md): \$0.0375 / image
* [Krea v2 Medium API](https://docs.venice.ai/models/krea-v2-medium.md): \$0.04 / image
* [Krea 2 Turbo API](https://docs.venice.ai/models/krea-2-turbo.md): \$0.04 / image


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