Skip to main content
Core.Today
|
GoogleFastUltra

Nano Banana 2 (Gemini 3.1 Flash Image)

Google's fast image generation model built on Gemini 3.1 Flash Image. The high-efficiency counterpart to Nano Banana Pro โ€” combining Pro-level visual quality with Flash-level speed and pricing. Features conversational editing, multi-image fusion, character consistency, accurate text rendering, and Google Search grounding. Supports up to 14 reference images and resolutions up to 4K.

290 credits
per image (4K), 145 for 1K, 215 for 2K
Gemini 3.1 Flash Image-powered generation with Pro-level quality
Accurate text rendering in multiple languages
Google Web Search and Image Search grounding
Up to 14 reference images for multi-image fusion
Up to 4K output resolution (1K, 2K, 4K)
New extreme aspect ratios: 1:4, 4:1, 1:8, 8:1

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

llms.txt

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "google/nano-banana-2",
  "input": {
    "prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
    "aspect_ratio": "3:4",
    "resolution": "2K",
    "output_format": "jpg"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-A text description of the image you want to generate
image_inputarrayNo-Input images to transform or use as reference (supports up to 14 images)
aspect_ratiostringNo1:1Aspect ratio of the generated image
match_input_image1:11:41:82:33:23:44:14:34:55:48:19:1616:921:9
resolutionstringNo1KResolution of the generated image
1K2K4K
google_searchbooleanNofalseUse Google Web Search grounding for real-time information
image_searchbooleanNofalseUse Google Image Search grounding for visual context
output_formatstringNojpgFormat of the output image
pngjpg

How to Provide File Input

There are 3 ways to provide files for the image_input parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=google/nano-banana-2" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image_input=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "google/nano-banana-2",
  "input": {
    "prompt": "your prompt here",
    "image_input": ["https://example.com/image.jpg"]
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Photorealistic Portrait

Generate a high-quality portrait with natural lighting

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "google/nano-banana-2",
  "input": {
    "prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
    "aspect_ratio": "3:4",
    "resolution": "2K",
    "output_format": "jpg"
  }
}'

Anime Style Transfer

Transform a photo into Studio Ghibli anime style using reference image

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "google/nano-banana-2",
  "input": {
    "prompt": "Transform this photograph into a Studio Ghibli anime style illustration. Keep the same composition but render everything with soft cel-shading, warm colors, and the dreamy atmosphere of a Miyazaki film.",
    "aspect_ratio": "match_input_image"
  }
}'

Tips & Best Practices

1Best balance of speed and quality โ€” ideal upgrade from Nano Banana for production use
2Use Google Search grounding for real-time data (weather, sports, news) in generated images
3Text rendering is significantly improved over Nano Banana โ€” great for posters, logos, and infographics
4Use 1K (145 credits) for most tasks; 4K (290 credits) for final production assets
5Supports extreme aspect ratios (1:8, 8:1) for banners and vertical content
6Combine multiple reference images with text prompts for powerful style fusion and editing

Use Cases

Typography, logos, and branding with accurate multilingual text
Real-time data visualization using Google Search grounding
Multi-image character consistency and style fusion
High-resolution content production up to 4K
Conversational image editing with reference images