# Grok Imagine Image 2.0 MCP and API by xAI | FlyMy.AI

> xAI Grok Imagine Image 2.0 draws an image from a prompt, or edits and combines one to five of your pictures, at 1k to 2k.

Page: https://flymy.ai/mcp/models/grok-imagine-image-2-0/

MCP / Models / Image generation

# Grok Imagine Image 2.0 MCP: images and edits up to 2K

xAI Grok Imagine Image 2.0 draws an image from a prompt, or edits and combines one to five of your pictures, at 1k to 2k. Run it from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

[Use Grok Imagine Image 2.0](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#start) [Inputs and price](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#inputs)

No API key, from $0.04 / image, Text and image to image, xAI, Commercial use

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use Grok Imagine Image 2.0 in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

```
Read https://flymy.ai/skill.md and https://flymy.ai/mcp/models/grok-imagine-image-2-0.md. Help me connect the FlyMy.AI MCP to this assistant, then run Grok Imagine Image 2.0 (flymyai/grok-imagine-image-2_0) for this task: Generate a 9:16 product photo of a ceramic coffee mug on a sunlit kitchen counter with Grok Imagine Image 2.0 at 2k.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/mcp/models/grok-imagine-image-2-0.md)

## What Grok Imagine Image 2.0 does

Send a prompt for a new image; xAI advises opening it with the subject: what it is, its form and the setting. Add images (one to five links) to edit or combine them, and with several name them in the prompt as IMAGE_0, IMAGE_1 and so on, each in angle brackets. resolution is 1k (the default), 1.5k or 2k, and quality is low, the default, or medium for finer detail. aspect_ratio is auto, where a new image gets the shape that suits the prompt and an edit keeps the shape of its picture, or one of 15 shapes; n makes one to ten images. Results are JPEG files. Each image made is billed, and each picture you send adds a small charge once per request. It does not make video, which Grok Imagine Video 1.5 does, and takes no mask.

## Grok Imagine Image 2.0 inputs

Every input of `flymyai/grok-imagine-image-2_0` as its live schema lists them. Returns `image` (array).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-prompt) `prompt` | string required What to draw, or what to change in the pictures you give |
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-images) `images` | string optional Up to 5 image URLs to edit (a JSON array or one URL): JPEG, PNG or WEBP. Leave out for a new image. With several, name them in the prompt as IMAGE_0, IMAGE_1 and so on, each in angle brackets |
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: auto, 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, 21:9, 5:2 Default: `auto` Shape of the result. auto: a new image gets the shape that suits the prompt and an edit keeps the shape of its picture. With a single picture the shape is always the picture's |
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-resolution) `resolution` | string optional Allowed: 1k, 1.5k, 2k Default: `1k` Size class, billed per image with the quality: low $0.04 at 1k, $0.05 at 1.5k, $0.06 at 2k; medium $0.06, $0.07, $0.08 |
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-quality) `quality` | string optional Allowed: low, medium Default: `low` low is xAI's cheaper setting; medium spends more compute on each image for finer detail and costs $0.02 more per image |
| [#](https://flymy.ai/mcp/models/grok-imagine-image-2-0/#input-n) `n` | integer optional Allowed: 1 to 10 Default: `1` How many images to make; each one is billed |

## Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

**“Generate a 9:16 product photo of a ceramic coffee mug on a sunlit kitchen counter with Grok Imagine Image 2.0 at 2k.”** runs `flymyai/grok-imagine-image-2_0`

**“Make three versions of a poster for a jazz night on Friday with Grok Imagine Image 2.0 in one run and send me the links.”** runs `flymyai/grok-imagine-image-2_0`

**“Use Grok Imagine Image 2.0 to place the product from the photo I attach on a rainy neon street at night.”** runs `flymyai/grok-imagine-image-2_0`

## Grok Imagine Image 2.0 price

From $0.04 per image, depending on quality and resolution; each picture given to edit adds $0.01. A run at the default settings costs $0.04. A run costs $0.04 to $0.85, depending on quality and resolution and n. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

| Setting | Price |
|---|---|
| quality low, resolution 1k | $0.04 per image |
| quality low, resolution 1.5k | $0.05 per image |
| quality low, resolution 2k | $0.06 per image |
| quality medium, resolution 1k | $0.06 per image |
| quality medium, resolution 1.5k | $0.07 per image |
| quality medium, resolution 2k | $0.08 per image |

[See usage pricing →](https://flymy.ai/pricing/)

## Call Grok Imagine Image 2.0 from code

The same model, from an agent or from your own code. Keys stay in your FlyMy.AI account.

### From an agent, through the MCP

The agent calls `get_model_schema`, then `run_model` with:

```
{
  "endpoint_id": "flymyai/grok-imagine-image-2_0",
  "input": {
    "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
  }
}
```

### From your code, over HTTP

Form fields, not JSON; files go as uploads or public URLs. The answer is a `prediction_id`; read the result at `https://api.flymy.ai/api/v1/flymyai/grok-imagine-image-2_0/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/grok-imagine-image-2_0/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=A ceramic mug on a sunlit kitchen counter, product photo'
```

## Questions about Grok Imagine Image 2.0

**Do I need an xAI API key for Grok Imagine Image 2.0?**

No. Grok Imagine Image 2.0 runs on FlyMy.AI's account, so you need no xAI key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does Grok Imagine Image 2.0 cost?**

From $0.04 per image, depending on quality and resolution; each picture given to edit adds $0.01. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**How do I use Grok Imagine Image 2.0 in Claude Code, Codex or Cursor?**

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Generate a 9:16 product photo of a ceramic coffee mug on a sunlit kitchen counter with Grok Imagine Image 2.0 at 2k." Your agent reads the inputs with get_model_schema and runs flymyai/grok-imagine-image-2_0 with run_model.

**What does Grok Imagine Image 2.0 need as input?**

Grok Imagine Image 2.0 requires prompt; it also takes 5 optional inputs, each listed on this page with its allowed values and default.

**Can I call Grok Imagine Image 2.0 from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/grok-imagine-image-2_0/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

## More image generation models

Text to image: product shots, ads, posters, illustrations and editable vector graphics from a prompt, many with reference images.

### FLUX 3 Image

Black Forest Labs' main image model: prompts, edits of up to ten pictures and web-checked subjects.

Text and image to image / from $0.041 / run

Link: https://flymy.ai/mcp/models/flux-3-image/

### FLUX 3 Image Klein

The compact FLUX 3 for quick edits, variations and high-volume work where cost matters.

Text and image to image / from $0.008 / run

Link: https://flymy.ai/mcp/models/flux-3-image-klein/

### Ideogram 4.5

Ideogram's image model for posters, logos and packaging, with text that reads right.

Text to image / from $0.03 / image

Link: https://flymy.ai/mcp/models/ideogram-4-5-text-to-image/

### Ideogram Vector

Logos, icons and illustrations as real SVG paths that scale to any size and open in a vector editor.

Text to vector / from $0.13 / image

Link: https://flymy.ai/mcp/models/ideogram-vector-text-to-vector/

### Kling Image V4

Kuaishou's fourth-generation image model: 2K pictures or a matching series of up to ten.

Text to image / from $0.063 / run

Link: https://flymy.ai/mcp/models/kling-image-v4-text-to-image/

### Krea 3

Krea's image model with prompt expansion: pictures of up to 4 megapixels, billed per megapixel.

Text to image / from $0.0063 / run

Link: https://flymy.ai/mcp/models/krea-3-text-to-image/

## Go to the source

[Grok Imagine Image 2.0 in the playground →](https://app.flymy.ai/models/flymyai/grok-imagine-image-2_0), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Image generation guide →](https://docs.flymy.ai/guides/generate-images), [Every model on FlyMy.AI →](https://flymy.ai/mcp/models/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

From the FlyMy.AI model catalog of 2026-11-18: inputs from the model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
