Skip to main content
Last updated: 2026-08-18

Gemini Image Editing

The customer-facing Gemini / Nano Banana editing contract is the OpenAI-compatible Images API. Use POST /v1/images/generations for URL references and, for designated gray accounts, data URLs, raw Base64, or multipart editing through POST /v1/images/edits.
Provider-native generateContent details are internal. Use the public Images API contract; gray-only input extensions must not be assumed for non-gray accounts.
See Nano Banana Pro for the current gray-release limits and examples.

Current Recommendation

  1. If your goal is Gemini text-to-image, use Gemini Image Generation
  2. If your goal is a currently usable reference-image editing route, start with Nano Banana 2
  3. If you must evaluate nano-banana, follow the controlled-test guidance on Nano Banana
  4. Use POST /v1/images/generations as the public Nano Banana entry point; see the model page for gray-only input extensions

Retest Template

For public integration, use the Images API examples on the model page. Native generateContent is an internal provider path: