# Nano Banana 2 Flex - API, Playground & Pricing

> Run Nano Banana 2 Flex by Google via API, Playground, or MCP from $0.0336 per image - no provider API key needed. Nano Banana 2 on Google's lower-priced flex tier, for batches where cost matters most.

Page: https://flymy.ai/models/nano-banana-2-flex-inference/

Models / Text to image

Nano Banana 2 Flex runs Google's Gemini 3.1 Image on Google's lower-priced flex tier, with the same inputs and outputs as Nano Banana 2. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Google API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/nano-banana-2-flex-inference) [<> Get API](https://flymy.ai/models/nano-banana-2-flex-inference/#api)

**Provider**

[Google](https://flymy.ai/models/provider/google/)

**Category**

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

**Price**

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

**Resolution**

1K, 2K, 4K

**Aspect ratio**

1:1, 2:3, 3:2, 3:4, 4:3, 4:5 and 8 more

**Results per run**

up to 10

**Returns**

`description`, `images`, `token_usage`

**Commercial use**

Allowed

**Model ID**

`flymyai/nano-banana-2-flex-inference`

![Nano Banana 2 Flex by Google: text and image to image sample, lower-cost 4K images](https://flymy.ai/img/models/nano-banana-2-flex-inference.jpg)

Nano Banana 2 Flex sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use Nano Banana 2 Flex 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/nano-banana-2-flex-inference.md. Help me connect the FlyMy.AI MCP to this assistant, then run Nano Banana 2 Flex (flymyai/nano-banana-2-flex-inference) for this task: Generate a 9:16 product photo of a smartwatch on a mossy rock in soft fog with Nano Banana 2 Flex at 4K.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/nano-banana-2-flex-inference.md)

## What Nano Banana 2 Flex does

Flex uses the same model and inputs as Nano Banana 2: prompt, image_urls for references, resolution 1K, 2K or 4K, 14 aspect ratios or auto, num_images up to 10, safety_tolerance and enable_web_search. Choose it for batches where the price per image matters most.

## Nano Banana 2 Flex inputs

Every input of `flymyai/nano-banana-2-flex-inference` as its live schema lists them. Returns `description` (string), `images` (array), `token_usage` (string).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-prompt) `prompt` | string required |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 4:1, 1:4, 8:1, 1:8, auto Default: `auto` |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-resolution) `resolution` | string optional Allowed: 1K, 2K, 4K Default: `1K` |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-image_urls) `image_urls` | array optional |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-num_images) `num_images` | integer optional Allowed: 1 to 10 Default: `1` |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-safety_tolerance) `safety_tolerance` | integer optional Allowed: 1 to 6 Default: `4` |
| [#](https://flymy.ai/models/nano-banana-2-flex-inference/#input-enable_web_search) `enable_web_search` | boolean optional Default: `false` |

## Ask your agent

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

**“Generate a 9:16 product photo of a smartwatch on a mossy rock in soft fog with Nano Banana 2 Flex at 4K.”** runs `flymyai/nano-banana-2-flex-inference`

**“Make three versions of a poster for a spring sale with 30% off with Nano Banana 2 Flex in one run and send me the links.”** runs `flymyai/nano-banana-2-flex-inference`

**“Use Nano Banana 2 Flex to place the product from the photo I attach on a marble bathroom counter at sunrise.”** runs `flymyai/nano-banana-2-flex-inference`

## Nano Banana 2 Flex price

From $0.0336 per image, depending on resolution; text and thinking tokens $1.50 per 1M. A run at the default settings costs $0.0336. A run costs $0.0336 to $0.756, depending on resolution and num_images. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

| Setting | Price |
|---|---|
| resolution 1K | $0.0336 per image |
| resolution 2K | $0.0504 per image |
| resolution 4K | $0.0756 per image |

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

## Nano Banana 2 Flex 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 |
|---|---|---|---|---|---|---|
| **Nano Banana 2 Flex** | 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 |  |  |
| [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 |

## Nano Banana 2 Flex 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/nano-banana-2-flex-inference/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/nano-banana-2-flex-inference/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/nano-banana-2-flex-inference",
    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/nano-banana-2-flex-inference",
);
console.log(response.output_data);
```

### MCP

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

```
{
  "endpoint_id": "flymyai/nano-banana-2-flex-inference",
  "input": {
    "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
  }
}
```

## Questions about Nano Banana 2 Flex

**Do I need a Google API key for Nano Banana 2 Flex?**

No. Nano Banana 2 Flex runs on FlyMy.AI's account, so you need no Google key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does Nano Banana 2 Flex cost?**

From $0.0336 per image, depending on resolution; text and thinking tokens $1.50 per 1M. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**Can I try Nano Banana 2 Flex before I write code?**

Yes. Open Nano Banana 2 Flex in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/nano-banana-2-flex-inference, fill in its inputs and run it; the same run is one API call later, billed the same way.

**How do I use Nano Banana 2 Flex 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 smartwatch on a mossy rock in soft fog with Nano Banana 2 Flex at 4K." Your agent reads the inputs with get_model_schema and runs flymyai/nano-banana-2-flex-inference with run_model.

**What does Nano Banana 2 Flex need as input?**

Nano Banana 2 Flex requires prompt; it also takes 6 optional inputs, each listed on this page with its allowed values and default.

**Can I call Nano Banana 2 Flex from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/nano-banana-2-flex-inference/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/

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

### Nano Banana Pro

Gemini 3 Pro Image for posters, packaging and logos where the words must be right.

Text and image to image / from $0.1344 / image

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

### Nano Banana 2 Lite

The cheapest Nano Banana 2 tier: 1K images in volume with the same prompt understanding.

Text and image to image / from $0.0376 / run

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

### Imagen 4 Fast

The low-cost Imagen 4 tier for drafts, thumbnails and big batches of images.

Text to image / $0.02 / run

Link: https://flymy.ai/models/imagen-4-fast/

## Go to the source

[Nano Banana 2 Flex in the playground →](https://app.flymy.ai/models/flymyai/nano-banana-2-flex-inference), [Text to image models →](https://flymy.ai/models/text-to-image/), [Google models →](https://flymy.ai/models/provider/google/), [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.
