Grok

grok-imagine-image

xAIPer Request
Create API Key

Grok Imagine Image Quality 是 xAI 推出的高保真图像生成与编辑模型,属于 Grok Imagine 系列中的高质量版本。根据官方与 API 文档,该模型不仅支持文本生成图像(text-to-image),还支持基于输入图像的编辑与重绘(image-to-image)。 在图像编辑模式下,用户可以提供一张参考图片,并通过文本提示词对图像进行修改、风格转换或内容重构,例如改变场景、调整风格或增强细节。该能力使模型能够在保持原图结构或语义的基础上生成新的视觉结果。

Starting price
Per Request
Context
—
Maximum input window
Modalities
→

Pricing by Supplier

标准按次
图片音频视频等多模态按次计费
Price$0.02/ request

Capabilities / Supported modalities

Function callingToolsJSON modeStructured outputVision
Input
Output

Provider & data privacy

Provider
xAIDocs
Tokenizer
Grok tokenizer (BPE)
License
Proprietary (commercial)Proprietary
Data retention3 daysNot used for upstream training by default

Performance

About grok-imagine-image

Grok Imagine Image Quality 是 xAI 推出的高保真图像生成与编辑模型,属于 Grok Imagine 系列中的高质量版本。根据官方与 API 文档,该模型不仅支持文本生成图像(text-to-image),还支持基于输入图像的编辑与重绘(image-to-image)。 在图像编辑模式下,用户可以提供一张参考图片,并通过文本提示词对图像进行修改、风格转换或内容重构,例如改变场景、调整风格或增强细节。该能力使模型能够在保持原图结构或语义的基础上生成新的视觉结果。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Explore product visuals, campaign concepts and illustration drafts.
  • Compare composition and visual style across several prompt variations.

Practical tips

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.

Example prompt

A minimalist product photograph of a ceramic cup on pale stone, soft window light, ample empty space on the right, warm neutral colors.

API access

Code samples

RequestPOST/v1/chat/completions
Example request
Parameters
ParameterTypeDefault / rangeDescription
promptrequired
string—Text description of the desired image
size
enum
=1024x1024
Output image size
quality
enum
=standard
Generation quality preset
style
enum
=vivid
Aesthetic style
n
integer
=11 ~ 10
Number of images to generate
response_format
enum
=url
How to deliver the resulting image

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
promptrequired
string—Text description of the desired image
size
enum
=1024x1024
Output image size
quality
enum
=standard
Generation quality preset
style
enum
=vivid
Aesthetic style
n
integer
=11 ~ 10
Number of images to generate
response_format
enum
=url
How to deliver the resulting image

Rate limits

SupplierRPMTPMRPD
标准按次70—1.2K

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply per token group.

Frequently asked questions about grok-imagine-image

What is grok-imagine-image?

Grok Imagine Image Quality 是 xAI 推出的高保真图像生成与编辑模型,属于 Grok Imagine 系列中的高质量版本。根据官方与 API 文档,该模型不仅支持文本生成图像(text-to-image),还支持基于输入图像的编辑与重绘(image-to-image)。 在图像编辑模式下,用户可以提供一张参考图片,并通过文本提示词对图像进行修改、风格转换或内容重构,例如改变场景、调整风格或增强细节。该能力使模型能够在保持原图结构或语义的基础上生成新的视觉结果。

How do I call grok-imagine-image?

Create an API key with access to grok-imagine-image, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is grok-imagine-image priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

How should I evaluate grok-imagine-image for my project?

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.