תמונהGoogleחדש

Nano Banana 2.1

מודל ה-Gemini החדש ביותר של Google

model: "nano-banana-2-1"

תיעוד APIתיעוד לסוכנים

מצבים

מזהה מודל אחד, כל מצב למטה. השדות שתשלחו בוחרים את המצב, והמחיר עוקב אחרי המצב.

מצבנבחר על ידימחיר טיפוסי
טקסט לתמונהprompt
דוגמת בקשה
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.073
עריכת תמונהimage_url
דוגמת בקשה
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.088

קלט

חובה

Prompt

אפשרי
1

Number of Images

אפשרי

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

אפשרי

More source images (https URLs), for edits that combine several images. image_url, if sent, is the first.

אפשרי

Aspect Ratio

אפשרי

Seed

אפשרויות מתקדמות (1)

הגדרות ספק מעבר לפקדים הראשיים. השאר אותם ריקים כדי להשתמש בברירות המחדל של הדגם.

אפשרי

File format of the result.

תוצאה

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2-1",
  "input": {}
}'