# Grok Imagine Image 2.0 - API, Playground & Pricing

> Run Grok Imagine Image 2.0 by xAI via API, Playground, or MCP from $0.04 per image - no provider API key needed. xAI's image model: prompts and edits of up to five pictures at 1k to 2k, with a medium quality setting.

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

Models / Text to image

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 in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No xAI API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/grok-imagine-image-2_0) [<> Get API](https://flymy.ai/models/grok-imagine-image-2-0/#api)

**Provider**

[xAI](https://flymy.ai/models/provider/xai/)

**Category**

[Text to image](https://flymy.ai/models/text-to-image/) / Text and image to image

**Price**

from $0.04 / image ($0.04 at the defaults)

**Resolution**

1k, 1.5k, 2k

**Quality**

low, medium

**Aspect ratio**

1:1, 3:4, 4:3, 9:16, 16:9, 2:3 and 9 more

**Results per run**

up to 10

**Returns**

`image`

**Commercial use**

Allowed

**Model ID**

`flymyai/grok-imagine-image-2_0`

![Grok Imagine Image 2.0 by xAI: text and image to image sample, images and edits up to 2K](https://flymy.ai/img/models/grok-imagine-image-2-0.jpg)

Grok Imagine Image 2.0 sample from the FlyMy.AI catalog

$ 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/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/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/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/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/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/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/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/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 |

[Every model's price →](https://flymy.ai/models/pricing/) [Usage pricing →](https://flymy.ai/pricing/)

## Grok Imagine Image 2.0 vs similar models

Popular text to image models beside it, with prices from billing and settings from each live schema.

| Model | Provider | Kind | Price | Default run | Resolution | Aspect ratio |
|---|---|---|---|---|---|---|
| **Grok Imagine Image 2.0** | xAI | Text and image to image | from $0.04 / image | $0.04 | 1k, 1.5k, 2k | 1:1, 3:4, 4:3, 9:16, 16:9, 2:3 and 9 more |
| [Nano Banana 2.1](https://flymy.ai/models/nano-banana-2-1/) | Google | Text and image to image | from $0.0336 / image | $0.0336 | 1K, 2K, 4K | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5 and 8 more |
| [Seedream 5.0 Pro](https://flymy.ai/models/bytedance-seedream-5-0-pro/) | ByteDance | Text and image to image | from $0.045 / run | $0.09 |  |  |
| [Seedream 5.5](https://flymy.ai/models/bytedance-seedream-5-5/) | ByteDance | Text and image to image | from $0.02 / run | $0.035 |  |  |

## Grok Imagine Image 2.0 API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the `X-API-KEY` header; [get a key](https://app.flymy.ai/developers) in your account.

### cURL

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'
```

### Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
response = fma.predict(
    model="flymyai/grok-imagine-image-2_0",
    payload={
        "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
    },
)
print(response.output_data)
```

### JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
  },
  "flymyai/grok-imagine-image-2_0",
);
console.log(response.output_data);
```

### MCP

Your 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"
  }
}
```

## 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.

**Can I try Grok Imagine Image 2.0 before I write code?**

Yes. Open Grok Imagine Image 2.0 in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/grok-imagine-image-2_0, fill in its inputs and run it; the same run is one API call later, billed the same way.

**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.

### Nano Banana 2.1

Gemini's newest image model: 14 references, up to 4K, with adjustable thinking.

Text and image to image / from $0.0336 / image

Link: https://flymy.ai/models/nano-banana-2-1/

### Seedream 5.0 Pro

ByteDance's precise 5.0 tier for product shots and layouts, blending up to 10 reference images.

Text and image to image / from $0.045 / run

Link: https://flymy.ai/models/bytedance-seedream-5-0-pro/

### Seedream 5.5

ByteDance's newest Seedream: images and edits of up to 10 references that keep the rest steady.

Text and image to image / from $0.02 / run

Link: https://flymy.ai/models/bytedance-seedream-5-5/

### Nano Banana 2

Gemini 3.1 Image: up to 10 images per run at up to 4K, with optional web search.

Text and image to image / from $0.0672 / image

Link: https://flymy.ai/models/nano-banana-2/

### Nano Banana

The original Gemini 2.5 image model: quick drafts and conversational edits.

Text and image to image / $0.039 / run

Link: https://flymy.ai/models/nano-banana/

### Seedream 4.5

ByteDance's 4.5 release: keeps a product or face steady through edits, with up to 14 references.

Text and image to image / $0.04 / run

Link: https://flymy.ai/models/bytedance-seedream-4-5/

## Go to the source

[Grok Imagine Image 2.0 in the playground →](https://app.flymy.ai/models/flymyai/grok-imagine-image-2_0), [Text to image models →](https://flymy.ai/models/text-to-image/), [xAI models →](https://flymy.ai/models/provider/xai/), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Every model on FlyMy.AI →](https://flymy.ai/models/), [Model prices →](https://flymy.ai/models/pricing/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog)

From the FlyMy.AI model catalog of 2026-11-18: inputs from each 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.
