Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nanobanana/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"nano-banana",
"nano-banana-2-lite",
"nano-banana-2",
"nano-banana-2.1",
"nano-banana-pro",
"nano-banana:official",
"nano-banana-2-lite:official",
Expand Down
8 changes: 4 additions & 4 deletions nanobanana/tools/image_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def nanobanana_generate_image(
model: Annotated[
NanoBananaModel,
Field(
description="Model to use for generation. 'nano-banana' (default, alias of gemini-2.5-flash-image) is faster. 'nano-banana-2-lite' is a lightweight variant. 'nano-banana-2' (alias of gemini-3.1-flash-image) offers pro-level quality at flash speed. 'nano-banana-pro' (alias of gemini-3-pro-image) offers highest quality and supports resolution parameter. Append ':official' suffix to any model name to use the official tier."
description="Model to use for generation. 'nano-banana' (default, alias of gemini-2.5-flash-image) is faster. 'nano-banana-2-lite' is a lightweight variant. 'nano-banana-2' (alias of gemini-3.1-flash-image) offers pro-level quality at flash speed. 'nano-banana-2.1' supports 1K/2K/4K generation and editing. 'nano-banana-pro' (alias of gemini-3-pro-image) offers highest quality and supports resolution parameter. The existing nano-banana, 2-lite, 2, and pro models have ':official' variants; 2.1 does not."
),
] = "nano-banana",
aspect_ratio: Annotated[
Expand All @@ -33,7 +33,7 @@ async def nanobanana_generate_image(
resolution: Annotated[
Resolution | None,
Field(
description="Resolution of the generated image. Options: '1K' (default), '2K', '4K'. Only works with 'nano-banana-pro' model."
description="Resolution of the generated image. Options: '1K' (default), '2K', '4K'. Supported by nano-banana-2, nano-banana-2.1, and nano-banana-pro."
),
] = None,
count: Annotated[
Expand Down Expand Up @@ -97,7 +97,7 @@ async def nanobanana_edit_image(
model: Annotated[
NanoBananaModel,
Field(
description="Model to use for editing. 'nano-banana' (default, alias of gemini-2.5-flash-image) is faster. 'nano-banana-2-lite' is a lightweight variant. 'nano-banana-2' (alias of gemini-3.1-flash-image) offers pro-level quality at flash speed. 'nano-banana-pro' (alias of gemini-3-pro-image) offers highest quality. Append ':official' suffix to any model name to use the official tier."
description="Model to use for editing. 'nano-banana' (default, alias of gemini-2.5-flash-image) is faster. 'nano-banana-2-lite' is a lightweight variant. 'nano-banana-2' (alias of gemini-3.1-flash-image) offers pro-level quality at flash speed. 'nano-banana-2.1' supports 1K/2K/4K generation and editing. 'nano-banana-pro' (alias of gemini-3-pro-image) offers highest quality. The existing nano-banana, 2-lite, 2, and pro models have ':official' variants; 2.1 does not."
),
] = "nano-banana",
aspect_ratio: Annotated[
Expand All @@ -109,7 +109,7 @@ async def nanobanana_edit_image(
resolution: Annotated[
Resolution | None,
Field(
description="Resolution of the edited image. Options: '1K', '2K', '4K'. Only works with 'nano-banana-pro' model."
description="Resolution of the edited image. Options: '1K', '2K', '4K'. Supported by nano-banana-2, nano-banana-2.1, and nano-banana-pro."
),
] = None,
count: Annotated[
Expand Down
2 changes: 1 addition & 1 deletion openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ For **401**, check which auth route the client used and whether the token or OAu
- **Reasoning**: o4-mini, o3, o3-mini, o3-pro, o1, o1-mini, o1-pro

### Image Models
- gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2:official, gpt-image-2.5-flare, gpt-image-2.5-flare:official, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst:official, dall-e-3, dall-e-2, nano-banana, nano-banana-2, nano-banana-pro
- gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2:official, gpt-image-2.5-flare, gpt-image-2.5-flare:official, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst:official, dall-e-3, dall-e-2, nano-banana, nano-banana-2-lite, nano-banana-2, nano-banana-2.1, nano-banana-pro
- GPT Image `:official` variants settle from actual text-input, image-input, and image-output tokens.

### Embedding Models
Expand Down
2 changes: 1 addition & 1 deletion openai/README.pypi.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ For **401**, check which auth route the client used and whether the token or OAu
- **Reasoning**: o4-mini, o3, o3-mini, o3-pro, o1, o1-mini, o1-pro

### Image Models
- gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2:official, gpt-image-2.5-flare, gpt-image-2.5-flare:official, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst:official, dall-e-3, dall-e-2, nano-banana, nano-banana-2, nano-banana-pro
- gpt-image-1, gpt-image-1.5, gpt-image-2, gpt-image-2:official, gpt-image-2.5-flare, gpt-image-2.5-flare:official, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst:official, dall-e-3, dall-e-2, nano-banana, nano-banana-2-lite, nano-banana-2, nano-banana-2.1, nano-banana-pro
- GPT Image `:official` variants settle from actual text-input, image-input, and image-output tokens.

### Embedding Models
Expand Down
1 change: 1 addition & 0 deletions openai/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"nano-banana",
"nano-banana-2-lite",
"nano-banana-2",
"nano-banana-2.1",
"nano-banana-pro",
]

Expand Down
1 change: 1 addition & 0 deletions openai/tools/info_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ async def openai_list_image_models() -> str:
| nano-banana | Nano Banana - fast, efficient generation |
| nano-banana-2-lite | Nano Banana 2 Lite - lightweight version |
| nano-banana-2 | Nano Banana 2 - improved version |
| nano-banana-2.1 | Nano Banana 2.1 - 1K/2K/4K generation and editing |
| nano-banana-pro | Nano Banana Pro - highest quality |

## Supported Sizes
Expand Down
Loading