Skip to main content
GoogleFastHigh

Nano Banana

Google Gemini 2.5 Flash-based image generation with multimodal editing capabilities. Fast and versatile for both creation and editing tasks.

70 credits
per image
Gemini 2.5 Flash-powered generation
Multimodal image editing
Fast generation speed
Multiple aspect ratio support

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",
  "input": {
    "prompt": "Whimsical illustration of a cat astronaut floating in space with planets and stars, colorful and playful style",
    "aspect_ratio": "1:1"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text description of the image to generate or editing instructions
image_inputarrayNo-Input image URL array for transformation/reference
aspect_ratiostringNo1:1Output aspect ratio
match_input_image1:12:33:23:44:34:55:49:1616:921:9
output_formatstringNojpgOutput image format
jpgpngwebp

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" \
  -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",
  "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

Creative Illustration

Generate a creative illustration with Gemini

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",
  "input": {
    "prompt": "Whimsical illustration of a cat astronaut floating in space with planets and stars, colorful and playful style",
    "aspect_ratio": "1:1"
  }
}'

Tips & Best Practices

1Provide an input image URL to use editing mode
2Works great for both generation and editing in one model
3Use specific aspect ratios to match your target platform
4Combine text prompts with input images for powerful edits

Use Cases

Quick image generation and editing
Multimodal creative workflows
Social media content creation
Rapid visual prototyping