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

# Grok Imagine API

> Venice 上的 Grok Imagine API：图像生成和图像编辑，最高 2K，每张图像 $0.03 起。私密运行，零数据留存。

> [accordion] 纯文本规格说明
>
> ## Grok Imagine API
>
> Grok Imagine 是由 xAI 推出的图像生成和图像编辑模型，可通过 Venice API 以 `grok-imagine-image` 调用。它以私密方式运行，零数据留存。
>
> ### Grok Imagine API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `grok-imagine-image` | 生成 | Private | \$0.03 / 张 |
> | `grok-imagine-edit` | 编辑 | Private | \$0.03 / 次编辑 |
>
> ### Grok Imagine 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | xAI |
> | 发布日期 | 2026年4月9日 |
> | 隐私 | Private |
> | 状态 | 稳定 |
> | 分辨率 | 1K, 2K |
> | 宽高比 | 1:1, 16:9, 9:16, 3:4, 3:2, 2:3 |
> | 提示词上限 | 7,500 字符 |
>
> ### 如何使用 Grok Imagine API
>
> 使用 `"model": "grok-imagine-image"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/image/generate` 发送请求。
>
> ```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"
>   }'
> ```
>
> ### 相关模型
>
> * [Grok Imagine 2.0 API](https://docs.venice.ai/zh/models/grok-imagine-2-0.md): \$0.07 / 张
> * [Flux 2 Pro API](https://docs.venice.ai/zh/models/flux-2-pro.md): \$0.03 / 张
> * [Wan 2.7 API](https://docs.venice.ai/zh/models/wan-2-7-image.md): \$0.0375 / 张
> * [Krea v2 Medium API](https://docs.venice.ai/zh/models/krea-v2-medium.md): \$0.04 / 张
> * [Krea 2 Turbo API](https://docs.venice.ai/zh/models/krea-2-turbo.md): \$0.04 / 张


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