
Gemini Nano Banana 2.1
About Google Cloud Gemini Nano Banana 2.1
Generate images from a text prompt.
Google Cloud Gemini Nano Banana 2.1 est un modèle de Google Cloud disponible sur Eden AI via son API compatible OpenAI, à partir de 0,0336 $ / image. Appelez-le avec la même clé API que tous les autres modèles Eden AI, en envoyant son ID de modèle à l'endpoint /v3/images/generations, ou via n'importe quel SDK OpenAI, avec un traitement en Europe.
Tasks and prices
Google Cloud Gemini Nano Banana 2.1 is available on Eden AI for 1 tasks. Il est servi par l'API compatible OpenAI d'Eden AI : envoyez son ID de modèle à l'endpoint /v3/images/generations avec votre clé API Eden AI.
Parameters
What you send and what you get back when you call Google Cloud Gemini Nano Banana 2.1 through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Entrée
- model (obligatoire) : texte. The model ID, as provider/model.
- prompt (obligatoire) : texte. A description of the image to generate.
- size : texte. The image size, for example 1024x1024.
Réponse
- data
Estimate your monthly cost
Enter your monthly volume for Génération d'images to compare Google Cloud Gemini Nano Banana 2.1 with its cheapest alternatives.
Call Google Cloud Gemini Nano Banana 2.1 with Eden AI
Envoyez l'ID du modèle à l'endpoint compatible OpenAI /v3/images/generations. Tout SDK OpenAI fonctionne aussi : définissez son URL de base sur https://api.edenai.run/v3.
import requests
response = requests.post(
"https://api.edenai.run/v3/images/generations",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "vertex/gemini-nano-banana-2.1",
"prompt": "A lighthouse at sunset, watercolor",
},
)
print(response.json())
curl https://api.edenai.run/v3/images/generations \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "vertex/gemini-nano-banana-2.1", "prompt": "A lighthouse at sunset, watercolor"}'
const response = await fetch("https://api.edenai.run/v3/images/generations", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "vertex/gemini-nano-banana-2.1",
prompt: "A lighthouse at sunset, watercolor",
}),
});
console.log(await response.json());
Questions about Google Cloud Gemini Nano Banana 2.1
On Eden AI, Google Cloud Gemini Nano Banana 2.1 costs 0,0336 $ / image for Génération d'images. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Google Cloud Gemini Nano Banana 2.1 is available for: Génération d'images. Input: Texte. Output: data.
Eden AI offers Génération d'images from 4 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Génération d'images
Other Génération d'images models you can call with the same key, cheapest first.
More from Google Cloud
Other Google Cloud models on Eden AI, for every task.