
grok-4.2-imageGrok 4.2 Image is an image generation and editing model powered by xAI Grok 4.2. It supports text-to-image, URL-based image editing, and file-based editing with mask inpainting — mask the region you want changed and it repaints only that area while preserving the rest, for controllable removal/replacement of objects, blemish fixes, and local recolor/restyle. Reach for it when you need precise, localized edits; for fast (~4s) generation across an ultra-wide aspect-ratio set, use Grok Imagine Image instead.
Generate images from text descriptions
Edit images via URL or file upload
Use masks to edit specific regions
1024x1024, 1536x1024, 1024x1536
Generated image will appear here
Enter a prompt and click Generate
Grok 4.2 Image is a Image Generation API provided by xAI. Grok 4.2 Image is an image generation and editing model powered by xAI Grok 4.2. It supports text-to-image, URL-based image editing, and file-based editing with mask inpainting — mask the region you want changed and it repaints only that area while preserving the rest, for controllable removal/replacement of objects, blemish fixes, and local recolor/restyle. Reach for it when you need precise, localized edits; for fast (~4s) generation across an ultra-wide aspect-ratio set, use Grok Imagine Image instead. Through API Models platform, you can access this model via a unified API at prices significantly lower than official rates.
Generate high-quality product visuals for online stores, ads, and marketing materials.
Create eye-catching visual content for social platforms to boost engagement and brand visibility.
Produce concept art for characters, scenes, and props to accelerate game development.
Design posters, banners, and promotional graphics at a fraction of traditional design costs.
Grok 4.2 Image is available through API Models at significantly lower prices than official rates. Visit the model page for current pricing.
Sign up at API Models, get your API key, and call our unified API endpoint. We provide detailed API documentation with code examples in cURL, Python, and Node.js.
API Models offers the same Grok 4.2 Image model at 60-95% lower cost through our aggregation platform. We provide a unified API interface so you do not need separate accounts for each provider - one API key to access all models.
Grok 4.2 Image is an image generation and editing model powered by xAI Grok 4.2. It supports text-to-image, URL-based image editing, and file-based editing with mask inpainting — letting you make precise, localized changes to an image.
Mask the region you want to change and the model repaints only that area while preserving the rest — good for removing/replacing objects, fixing blemishes, and local recolor/restyle. More controllable than regenerating the whole image.
Grok 4.2 Image emphasizes generation plus precise mask-inpainting edits (URL/file input); Grok Imagine Image focuses on fast (~4s) generation and an ultra-wide aspect-ratio set. Pick 4.2 Image for local refinement/inpainting, Imagine Image for fast output across many formats.
Grok 4.2 Image supports: Text to Image, Image Editing, Mask Inpainting, Multiple Sizes. See the API Models docs for full parameters and call examples.
Yes. API Models exposes Grok 4.2 Image through a single unified API and one key — no separate provider accounts, and no need to handle each provider's regional network access yourself.
We support Stripe (Visa, Mastercard, and other international cards) and Alipay. Credits are available instantly after payment.