Hi @Andrew_B , would you like to help me? i’m trying to connect my playground ai with the new image editing model Nano Banana google, but i dont know the exact end point, how the body request format and response. please help me to solve this issue. thx
Hey @Abednego,
The model id for Nano Banana is gemini-2.5-flash-image-preview. If you are building on Vertex AI, then check out these resources:
If you are using AI Studio, then you may want to check out these forums: Gemini API - Google AI Developers Forum which cover AI Studio.
Let us know how you go!
Hi Andrew, i have checked the API document but i cannot find the end point URL for integrating the API for gemini-2.5-flash-image-preview. is it available to connect API through my webapps? i have succeed to connect with Imagen 4, but this model got failed. it’s like i got wrong point API.
so i asking in forum. please help me to provide the end point API if possible to connect with.
You can use the global endpoint, which is supported for this model (Deployments and endpoints | Generative AI on Vertex AI | Google Cloud):
https://aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/global/publishers/google/models/gemini-2.5-flash-image-preview:{METHOD}
Key components:
{PROJECT_ID}: Your Google Cloud Project ID.{LOCATION}: Useglobalfor this model.{METHOD}: The API method you want to call. For generative content, this is typicallygenerateContentorstreamGenerateContent.
Example using generateContent with the global endpoint:
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/publishers/google/models/gemini-2.5-flash-image-preview:generateContent