MCP / Models / Image generation
Nano Banana 2 Flex MCP: lower-cost 4K images with no API key
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 from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

$ YOUR NEXT RUN
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/mcp/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.
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 |
|---|---|
# prompt | string required |
# 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 |
# resolution | string optional Allowed: 1K, 2K, 4K Default: 1K |
# image_urls | array optional |
# num_images | integer optional Allowed: 1 to 10 Default: 1 |
# safety_tolerance | integer optional Allowed: 1 to 6 Default: 4 |
# enable_web_search | boolean optional Default: false |
Ask your agent
Requests to paste as they are, once the FlyMy.AI MCP is connected.
flymyai/nano-banana-2-flex-inferenceflymyai/nano-banana-2-flex-inferenceflymyai/nano-banana-2-flex-inferenceNano Banana 2 Flex price
From $0.0355 per run, depending on num_images and resolution. A run at the default settings costs $0.0355. A run costs $0.0355 to $0.757, depending on num_images and resolution. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.
Call Nano Banana 2 Flex 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/nano-banana-2-flex-inference",
"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/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'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.0355 per run, depending on num_images and resolution. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-09.
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.
Go to the source
From the FlyMy.AI model catalog of 2026-11-09: inputs from the model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.





