Skip to main content
POST
https://llm.ai-nebula.com
/
v1
/
images
/
generations
Gemini Native (Image)
curl --request POST \
  --url https://llm.ai-nebula.com/v1/images/generations \
  --header 'Authorization: <authorization>'

Introduction

Nano Banana refers to Google Gemini image generation models: Nano Banana (gemini-2.5-flash-image) and Nano Banana Pro (gemini-3-pro-image-preview). They are called via the unified image API POST /v1/images/generations, supporting text-to-image, image-to-image, and multi-image composition. For full parameters and multi-model details, see Image Generation.

Authentication

Authorization
string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Supported models

Model IDDescription
gemini-2.5-flash-imageNano Banana, cost-effective text/image-to-image
gemini-3-pro-image-previewNano Banana Pro, higher quality and controllability

Request examples

curl -X POST "https://llm.ai-nebula.com/v1/images/generations" \
  -H "Authorization: Bearer sk-xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-2.5-flash-image",
    "prompt": "A cute orange cat sitting in a garden, sunny, high-quality photo",
    "size": "16:9",
    "quality": "high",
    "n": 1,
    "response_format": "b64_json",
    "image_size": "2K",
    "mime_type": "image/png",
    "response_modalities": "image"
  }'

Common parameters

  • prompt: Text prompt for text-to-image
  • size: Aspect ratio, e.g. 16:9, 1:1
  • quality: Quality level, e.g. high
  • image_size: Output size, e.g. 1K, 2K, 3K
  • response_format: Gemini series only supports b64_json (base64 image)
  • contents: Used for image-to-image or multi-turn; format in Image Generation
For more parameters and model differences, see Image Generation.