Precise instruction-following
Follows detailed prompts down to fine layout and typography.
Grok Imagine Image 2.0 is xAI's next-generation image model, built for real creative work rather than one-shot novelty. It follows instructions closely down to fine detail and plans typography and layout the way a designer would. Muapi exposes it as two chained endpoints — grok-imagine-image-2 for text-to-image generation, and grok-imagine-image-2-edit for a targeted follow-up edit to a prior generation — both use Muapi's asynchronous submit-and-poll pattern.
Grok Imagine Image 2.0 API is available on Muapi
Create a Muapi API key, submit a generation request, and poll the returned request ID for the finished image.
xAI built Image 2.0 around editing as a first-class capability, alongside stronger instruction-following for generation.
Follows detailed prompts down to fine layout and typography.
Edit a prior generation by its request ID without re-describing the whole scene.
Change only the described region, optionally scoped with mask_indexs.
Generate in 1:1, 2:3, 3:2, 16:9, or 9:16.
Keep small text and dense typography legible for posters, infographics, and UI mockups.
Preserve subject, style, and composition across chained edits.
xAI reports Image 2.0 ranks second in the world in both text-to-image generation and image editing on the public Arena leaderboards as of August 2026, trained for fidelity across photography, design, and illustration.
Grok Imagine Image 2.0 uses Muapi's shared authentication, task lifecycle, file upload, and billing infrastructure — the same pattern already used by the Grok Imagine models.
| Endpoint | Purpose | Input | Output | Price |
|---|---|---|---|---|
| grok-imagine-image-2 | Text-to-image generation | prompt, aspect_ratio | New image + request_id | $0.05/call |
| grok-imagine-image-2-edit | Chained follow-up edit | prompt, request_id, optional mask_indexs | Refined image + request_id | $0.05/call |
Create dense compositions where small text, hierarchy, and layout remain legible.
Generate polished concepts and refine a selected region without rebuilding the scene.
Maintain a consistent subject, style, and composition across creative edits.
Both endpoints use the same Muapi REST contract. Submit JSON with the x-api-key header, then poll the standard prediction endpoint. Editing chains off the request_id of a prior generation.
curl -X POST https://api.muapi.ai/api/v1/grok-imagine-image-2 \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A high-contrast halftone portrait in fine white dots on black", "aspect_ratio":"1:1"}'Returns a request_id. Poll /predictions/{request_id}/result until the task completes.
curl -X POST https://api.muapi.ai/api/v1/grok-imagine-image-2-edit \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Change the jacket to a teal windbreaker", "request_id":"REQUEST_ID"}'Pass the request_id from step 1 or a prior edit to keep refining the same image. Optionally add mask_indexs.
Image 2.0 focuses on precise instruction-following, sharp typography and layout, and a dedicated follow-up edit endpoint.
Yes. Use grok-imagine-image-2-edit with the request_id from a prior generation and a prompt describing the edit.
No. Editing chains from a prior generation request_id, not an arbitrary uploaded image.
It is an optional array of segment indexes that scopes an edit to a specific region.
Text-to-image generation supports 1:1, 2:3, 3:2, 16:9, and 9:16.
Create a Muapi API key, send it in the x-api-key header, and call grok-imagine-image-2 or grok-imagine-image-2-edit for follow-up edits.
Each generation and follow-up edit is billed at $0.05 per call.
Create an API key and start generating or refining images through the two chained endpoints.