Skip to main content
Vendor: Google Model ID: nano-banana Capability: 1024² · photorealism · studio lighting · material accuracy Pricing: per image, photoreal tier (live rate) Nano Banana is Google’s entry photorealistic image generator. Reach for it when the brief reads “studio lighting, glass surfaces, anatomical correctness” and the Seedream family’s illustrative aesthetic would fight your direction. For higher fidelity with extended post-processing, see Nano Banana Pro; for the latest iteration with improved text rendering, see Nano Banana 2.

Request

curl https://llm.bytespike.ai/v1/images/generations \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana",
    "prompt": "A glass of red wine on a marble counter, side-lit by afternoon sun",
    "size": "1024x1024",
    "n": 1
  }'

Body parameters

FieldTypeRequiredDefaultNotes
modelstringyesnano-banana
promptstringyesEnglish-recommended; CJK supported but tuned for English.
sizestringno1024x1024Supported: 1024x1024, 1024x1536, 1536x1024.
nintegerno11–2 images.
seedintegernoReproducibility supported.
aspect_ratiostringnoAlternate to size: 1:1 / 9:16 / 16:9 / 4:3 / 3:4.

Response

{
  "created": 1715174400,
  "data": [{"url": "https://cdn.bytespike.ai/img/...", "revised_prompt": "..."}]
}
URLs pre-signed, 24h expiry.

Code examples

curl https://llm.bytespike.ai/v1/images/generations \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "nano-banana", "prompt": "A glass of red wine on a marble counter"}'

Errors

CodeTriggerBilled?
400 / 401 / 402 / 403StandardNo
451Prompt blocked by upstream safetyNo
5xxUpstream issueNo (auto-retry)

When to use

  • Photorealistic stills where material accuracy matters.
  • Studio-lit product / food / lifestyle imagery.
  • For higher-fidelity post-processing, see Nano Banana Pro.
  • For sharper text rendering, see Nano Banana 2.
  • For aesthetic / illustrative output, see Seedream V4.

Limits

LimitValue
Max output resolution1536×1536
Max images per call (n)2
Supports init image (img2img)No
Supports negative promptNo
Supports seed reproductionYes
Sync?Yes (≤30s typical)
Avg latency for 1024²6-10s