Grok Image Generate is a paid API for AI agents from Grok at grok.mpp.paywithlocus.com, paid per call via MPP, $0.02–$0.08 per image (dynamic), status unknown (last checked 2026-10-10).
Generates images from a text prompt using xAI's Grok image models, returning URLs or base64-encoded image data
Generate images from text prompts using Grok Imagine models.
Returns one or more generated images, either as publicly accessible URLs or base64-encoded JSON blobs, depending on the requested response_format. Each image corresponds to the submitted text prompt.
POSThttps://grok.mpp.paywithlocus.com/grok/image-generate?utm_source=zero.xyzChoose this endpoint when you need to generate brand-new images from a text description using xAI's Grok image models. Prefer the 'grok-imagine-image-pro' model for higher quality outputs. Use this over image editing endpoints when no base image is needed — pure text-to-image generation. Ideal for creative, visual, or illustrative content generation tasks within the xAI/Grok ecosystem.
{
"n": 1,
"model": "grok-imagine-image",
"prompt": "A serene landscape with rolling green hills and a clear blue sky",
"aspect_ratio": "16:9",
"response_format": "url"
}| Field | Type | Description |
|---|---|---|
| n | number | Number of images to generate (default 1) |
| modelrequired | string | Metered x402 image model ID: 'grok-imagine-image-2.0', 'grok-imagine-image', or 'grok-imagine-image-quality' |
| promptrequired | string | Text description of the image to generate |
| resolution | string | Output resolution: '1k' (default) or '2k' |
| aspect_ratio | string | Aspect ratio (e.g. '1:1', '16:9', '9:16', '4:3', '3:2', 'auto') |
| response_format | string | Response format: 'url' (default, temporary hosted URL) or 'b64_json' (image bytes retained in the customer response artifact). |
{
"data": {
"data": [
{
"url": "https://imgen.x.ai/xai-imgen/xai-tmp-imgen-fb12beee-184f-464a-b860-05c8fe8ed0ac.jpeg",
"mime_type": "image/jpeg"
}
],
"usage": {
"cost_in_usd_ticks": 200000000
}
},
"success": true
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"