API ModelsAPI Models
Models/Grok 4.2 Image
grok-image

Grok 4.2 Image

grok-image/grok-4.2-image

Image generation and editing powered by Grok 4.2. Supports text-to-image creation, URL-based image editing, and file-based editing with mask inpainting.

Text to ImageImage EditingMask InpaintingMultiple Sizes
¥0.12
per call

Text to Image

Generate images from text descriptions

Image Editing

Edit images via URL or file upload

Mask Inpainting

Use masks to edit specific regions

Multiple Sizes

1024x1024, 1536x1024, 1024x1536

API Docs

Generate Image

Result

Generated image will appear here

Enter a prompt and click Generate