Hình ảnhGoogleMới

Nano Banana 2.1

Mô hình hình ảnh Gemini mới nhất của Google

model: "nano-banana-2-1"

Tài liệu APITài liệu dành cho agents

Các chế độ

Một ID mô hình, mọi chế độ bên dưới. Các trường bạn gửi chọn chế độ, và giá theo chế độ.

Chế độĐược chọn bằngGiá điển hình
Từ văn bản sang hình ảnhprompt
Yêu cầu ví dụ
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.073
Chỉnh sửa hình ảnhimage_url
Yêu cầu ví dụ
{
  "model": "nano-banana-2-1",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.088

Đầu vào

Bắt buộc

Prompt

Tùy chọn
1

Number of Images

Tùy chọn

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.

Tùy chọn

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

Tùy chọn

Aspect Ratio

Tùy chọn

Seed

Tùy chọn nâng cao (1)

Cài đặt nhà cung cấp ngoài các điều khiển chính. Để trống để sử dụng các giá trị mặc định của mô hình.

Tùy chọn

File format of the result.

Kết quả

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": {}
}'