Bỏ qua đến nội dung

Nano Banana 2

Tích hợp

Id mô hình nano-banana-2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/nano-banana-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.",
    "resolution": "1K"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Yêu cầu này: 0,08 $ 80 tín dụng API · ≈ 8,61 ₽ Chạy trên trang này

Lấy khóa API
Google Văn bản sang hình ảnh Đầu ra 4Ktối đa 4K #typography#fast#wide-formats

Mô hình hình ảnh Gemini nhanh của Google, từ bản nháp 0.5K đến 4K, hỗ trợ tỷ lệ khung hình cực rộng và grounding trên web.

Ví dụ

Đầu ra · ~19 s
Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through ...

Lời nhắcHyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.

1K0,08 $ · 80 tín dụng API

Lời nhắc từ @Strength04_X trên X

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

•bắt buộc 1538 / 50000

Hướng dẫn bằng văn bản để tạo sinh hình ảnh.

resolution

Độ phân giải của hình ảnh đầu ra.

thinking_level

Chọn 'minimal' hoặc 'high' để kích hoạt khả năng suy nghĩ của mô hình ở mức đó và đưa suy nghĩ vào quá trình tạo sinh; bỏ trống mức này sẽ giữ tắt khả năng suy nghĩ.

mặc định auto

Chọn rõ tỷ lệ khung hình của hình ảnh được tạo sinh, bao gồm các tùy chọn cực đoan 4:1, 1:4, 8:1, 1:8, hoặc chọn "auto" để mô hình tự chọn dựa trên lời nhắc.

num_images mặc định 1

Số lượng hình ảnh yêu cầu tạo sinh.

Nâng cao system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Hướng dẫn tùy chọn áp dụng cho toàn bộ yêu cầu về persona và kiểu đầu ra, được gửi đến Gemini dưới dạng chỉ dẫn hệ thống hoặc đến các nhà cung cấp tương thích với OpenAI dưới dạng thông điệp hệ thống. Khi giá trị trống, không có nội dung nào được gửi cho chỉ dẫn này.

output_format mặc định png

Định dạng tệp của hình ảnh kết quả.

safety_tolerance mặc định 4

Đặt mức dung sai kiểm duyệt nội dung từ mức ít hạn chế nhất, 6, đến mức nghiêm ngặt nhất, 1, vốn chặn hầu hết nội dung.

Giá trị seed khởi tạo quá trình tạo số ngẫu nhiên.

POST /run/nano-banana-2?wait=20 báo giá → 0,08 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/nano-banana-2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hyper-realistic miniature luxury farmhouse construction site at the very first stage of construction, viewed through cinematic macro photography. A small rectangular foundation area partially prepared on natural brown sand and compact soil, realistic miniature construction materials scattered naturally around the site, tiny red bricks, miniature cement bags, wooden beams, gravel, sand piles, metal rods, tiny buckets, miniature trowel, measuring tape, spirit level and other authentic construction tools. Giant human fingers and realistic human hands carefully interacting with the miniature materials, positioning the first construction pieces. The future farmhouse footprint clearly visible but construction has only just begun, with no completed walls or roof. Subtle markings and foundation trenches visible in the soil. A small empty area beside the foundation reserved for a future swimming pool. Extremely realistic material scale, authentic construction imperfections, tiny dust particles, cement residue, fingerprints, rough brick texture and granular soil detail. Professional miniature craftsmanship, photorealistic 8K detail, cinematic studio lighting, realistic soft shadows, shallow depth of field, strong foreground-to-background scale contrast, sharp focus on construction area, premium macro lens photography, realistic bokeh, natural color reproduction, high dynamic range, tactile textures, physically accurate lighting, believable human-to-miniature scale, no cartoon appearance, no CGI look, no text, no watermark.",
    "resolution": "1K"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Được tạo trên Doitong

Các tác phẩm công khai được cộng đồng Doitong tạo bằng Nano Banana 2. Tái sử dụng một lời nhắc chỉ với một lần nhấp.

Tác phẩm công khai được hiển thị: 16
Art style: Glamour 3D. A clearly recognizable likeness of Семен — keep their real face shape, ski...

Art style: Glamour 3D. A clearly recognizable likeness of Семен — keep their real face shape, skin tone, hairstyle, build and any signature look (hair, kit, number). 25лет статный 180 русые волосы зелёные глаза немного есть борода. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT...

Art style: Cinematic Realistic. Tight medium shot. Daniel reaches out and gently places a solid r...

Art style: Cinematic Realistic. Tight medium shot. Daniel reaches out and gently places a solid reassuring hand on Mark's shoulder, giving it an affectionate squeeze. Mark looks down at the hand, then raises his eyes to meet Daniel's gaze, lingering eye contact, warm cinematic key light, soft...

Art style: 3D Pixar. Pixar 3D style, vibrant karaoke club lounge Billionaire, neon lights, glowin...

Art style: 3D Pixar. Pixar 3D style, vibrant karaoke club lounge Billionaire, neon lights, glowing atmosphere. Beautiful cute animated Kazakh girl sitting with friends at a table, looking with sparkling starry eyes at a handsome charming guy sitting nearby, magical colorful ambience...

Art style: Children's Book. Full-length view, the entire figure visible from head to feet, standi...

Art style: Children's Book. Full-length view, the entire figure visible from head to feet, standing upright and centered — a small, very fluffy kitten with soft downy fur in warm grey-and-cream tabby tones, faint stripes along the back and tail. It has an oversized round head, huge expressive...

Art style: Реалистичный кинематографичный. Крупный план лица женщины-эксперта, завершающей свою м...

Art style: Реалистичный кинематографичный. Крупный план лица женщины-эксперта, завершающей свою мысль. Она смотрит прямо в объектив, ее взгляд выражает поддержку. Волосы обрамляют лицо, создавая мягкую рамку. Детали макияжа и текстура губной помады видны отчетливо. На заднем плане огни торгового...

Art style: 3D Pixar. Артём открывает входную дверь из дома и выходит на яркую, оживленную и красо...

Art style: 3D Pixar. Артём открывает входную дверь из дома и выходит на яркую, оживленную и красочную городскую улицу, наполненную энергией и солнечным светом. Артем одет в дорогой классический черный костюм. Стиль Pixar, оптимистичное настроение, широкоугольный объектив....

Art style: 3D Pixar. Тесная ночная комната на верхнем этаже старого дома, окно приоткрыто, за сте...

Art style: 3D Pixar. Тесная ночная комната на верхнем этаже старого дома, окно приоткрыто, за стеклом мерцают далёкие городские огни и влажные крыши после дождя, стол завален радиодеталями, проводами, блокнотами и старым приёмником. Средний план с лёгкого верхнего угла, камера смотрит на Леру у...

Школьный коридор после уроков, на заднем плане видны уходящие ученики. Рома стоит у стены, его ру...

Школьный коридор после уроков, на заднем плане видны уходящие ученики. Рома стоит у стены, его рубашка надорвана, под глазом начинает проступать синяк. Он сжимает кулаки, глядя в пол. Освещение — резкий свет из окна, подчеркивающий его гнев и обиду. Композиция на уровне глаз ребенка, передающая...

Giới thiệu về Nano Banana 2

Phiên bản nhỏ hơn, nhanh hơn và rẻ hơn của Nano Banana Pro, nhưng vẫn xử lý tốt văn bản trong hình ảnh và các cảnh có nhiều đối tượng. Đầu ra từ bản xem trước 0.5K đến 4K, với tỷ lệ khung hình từ 1:8 đến 8:1 cho biểu ngữ và story dọc. Tìm kiếm web tùy chọn giúp hình ảnh dựa trên thông tin hiện tại, còn mức suy luận cao tùy chọn sẽ lập kế hoạch cho các bố cục phức tạp trước khi vẽ. Tối đa bốn hình ảnh mỗi yêu cầu.

Tham số

Gửi tên chuẩn hoặc tên gốc, không gửi cả hai. Tên chuẩn

TênKiểu Mặc địnhĐược phép Mô tả
promptbắt buộc
Kiểustring
≤ 50.000 ký tự≥ 3 ký tự
Hướng dẫn bằng văn bản để tạo sinh hình ảnh.
num_imagestùy chọn num_outputs
Kiểuinteger
Mặc định1
1 – 4
Số lượng hình ảnh yêu cầu tạo sinh.
seedtùy chọn
Kiểuinteger | null
Giá trị seed khởi tạo quá trình tạo số ngẫu nhiên.
aspect_ratiotùy chọn
Kiểuenum
Mặc địnhauto
auto21:916:93:24:35:41:14:53:42:39:164:11:48:11:8
Chọn rõ tỷ lệ khung hình của hình ảnh được tạo sinh, bao gồm các tùy chọn cực đoan 4:1, 1:4, 8:1, 1:8, hoặc chọn "auto" để mô hình tự chọn dựa trên lời nhắc.
output_formattùy chọn
Kiểuenum
Mặc địnhpng
jpegpngwebp
Định dạng tệp của hình ảnh kết quả.
safety_tolerancetùy chọn
Kiểuenum
Mặc định4
123456
Đặt mức dung sai kiểm duyệt nội dung từ mức ít hạn chế nhất, 6, đến mức nghiêm ngặt nhất, 1, vốn chặn hầu hết nội dung.
system_prompttùy chọn
Kiểustring
Mặc định
≤ 50.000 ký tự
Hướng dẫn tùy chọn áp dụng cho toàn bộ yêu cầu về persona và kiểu đầu ra, được gửi đến Gemini dưới dạng chỉ dẫn hệ thống hoặc đến các nhà cung cấp tương thích với OpenAI dưới dạng thông điệp hệ thống. Khi giá trị trống, không có nội dung nào được gửi cho chỉ dẫn này.
resolutiontùy chọn
Kiểuenum
Mặc định1K
0.5K1K2K4K
Độ phân giải của hình ảnh đầu ra.
limit_generationstùy chọn
Kiểuboolean
Mặc địnhtrue
Giới hạn tạo sinh thử nghiệm có thể ảnh hưởng đến chất lượng khi bật. Với `True`, mỗi lượt nhắc bị giới hạn ở 1 lần tạo sinh, ghi đè chỉ dẫn về số lượng hình ảnh trong lời nhắc và bỏ qua các hình ảnh trung gian do mô hình tạo.
thinking_leveltùy chọn
Kiểuenum
minimalhigh
Chọn 'minimal' hoặc 'high' để kích hoạt khả năng suy nghĩ của mô hình ở mức đó và đưa suy nghĩ vào quá trình tạo sinh; bỏ trống mức này sẽ giữ tắt khả năng suy nghĩ.
bắt buộc Tên chuẩn, cũng được chấp nhận

Đầu ra

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nano-banana-2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "prompt": "A cozy bookshop window at night with a hand-painted sign reading \"Open Late\", warm light, rain on the glass",
    "aspect_ratio": "4:5",
    "resolution": "1K"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "description": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.
Các trường đầu ra
images
array of object {url, content_type, file_name, file_size, width, height}Các hình ảnh được mô hình tạo sinh.
description
stringMô tả đi kèm các hình ảnh được tạo sinh.

Thêm mô hình: Văn bản sang hình ảnh

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/nano-banana-2.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt