Logo Nano Banana Pro

Nano Banana Pro

Cộng đồng
gustavo-henriq
nano-banana-pro

Generate or edit images (portraits, product shots, banners, illustrations, mockups, visual assets) and generate short VIDEOS (Veo, with --video) with Nano Banana Pro through the user's own Gemini web session. Use it when the user asks to create, generate, edit or refine an image, to create a video or animated clip, or when a project needs a visual asset that code or SVG cannot produce. The agent writes the prompt, runs the script, looks at the result and iterates.

Add to TypingMind

Tổng quan

Nhà phát hànhgustavo-henriq
Kho mãnano-banana-pro-skill
Tên kỹ năngnano-banana-pro
Sao
57
Bản fork
6
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được gustavo-henriq công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Nano Banana Pro trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-pro
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gustavo-henriq/nano-banana-pro-skill.git /tmp/nano-banana-pro-skill
mkdir -p .claude/skills
cp -r /tmp/nano-banana-pro-skill/skills/nano-banana-pro .claude/skills/nano-banana-pro
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Nano Banana Pro trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Nano Banana Pro ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Nano Banana Pro với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Nano Banana Pro (Gemini web, driven by an AI agent)

You do not generate pixels. This skill makes you the art director: turn the request into a strong prompt, run the script, look at the image, and decide whether to redo it.

The script is scripts/nanobanana.py inside this skill's base directory. Run it yourself, directly, from the shell. Do not delegate it to a sub-agent: it is one command, and a sub-agent only adds tokens. For long runs, run it in the background if your tool supports that, and wait for it to finish instead of polling.

Workflow

  1. Understand the request. If something that changes the result is missing (final use, aspect ratio, style, text inside the image, references), ask first. Each image spends daily credits.
  2. Write the prompt in English, concrete: subject, medium/style, composition, lighting, palette (hex if the project has one), and what you do NOT want. Put text that must appear in the image inside quotes, and keep it short.
  3. Run the script.
    bash
    python -I "<skill-dir>/scripts/nanobanana.py" "<prompt>" -o out/name.png --aspect 3:4
    python -I "<skill-dir>/scripts/nanobanana.py" --prompt-file spec.json -o out/name.png --aspect 4:5 --ref ref1.png --ref ref2.png
    For complex scenes write the prompt as JSON in a file and use --prompt-file; quotes break on the command line.
  4. Look at the result yourself. Open the saved file with a tool that can show you images (for example your file-read tool). Judge composition, readable text, artifacts, hands, and how well it matches the request. Be honest with the user about what is wrong.
  5. Iterate 2-3 times at most, adjusting the prompt with what was missing. For a small fix, pass the previous image with --ref and ask only for the change. Then show the user and ask.
  6. Save assets inside the project (assets/, docs/), never loose in the project root.

Videos (--video)

This skill also generates videos. The same Gemini session produces short clips with Veo; the script just has to be told to ask for a video and to read response.videos instead of images. Without --video it always asks for an image and will never return a video.

bash
python -I "<skill-dir>/scripts/nanobanana.py" "a banana slowly rotating on a wooden table, soft studio light" -o out/banana.mp4 --video --aspect 16:9
  • Output: SAVED <path>.mp4 and THUMB <path>.jpg. Look at the thumbnail with Read to judge the clip (you cannot watch the mp4); tell the user you only checked the thumbnail.
  • Write the prompt like a shot description: subject, motion, camera move, lighting, duration ("5 seconds"). Describe the motion in words; a still --ref image can set the first frame.
  • Videos are slower (default timeout 600s) and Google often answers with a generic error or "at full capacity, high traffic generating videos" instead of a video. The script retries on its own (--retries, default 2, waiting 10s and alternating gemini-carbon / gemini-flash-lite). If it still fails (exit 1), wait a few minutes and try again; do not loop.
  • Tested 2026-11-17 on an AI Pro account: gemini-carbon and gemini-pro failed on the first tries (error / empty reply), gemini-flash-lite returned a 16:9 MP4 (~3 MB, 5 s). One sample only, so the model difference is not proven; failures looked like Google-side instability, not a plan limit.
  • Video spends the same daily credits and is probably costlier than an image: run --quota before more than one or two clips.

Reading the script output

The script prints plain lines. React to them:

LineMeaningWhat to do
SAVED <path>image (or .mp4 with --video) savedopen an image with Read
THUMB <path>video thumbnail (only with --video)open it with Read to judge the clip
RETRY n/m (stderr)Google returned no video, trying againnothing, just wait
MODEL <name>model that was usedmention it if the user compares models
QUOTA <n>% left ...a threshold was crossed (50%, 25%, 10%, 5% left)tell the user in one short sentence, then continue
LIMIT_REACHED ...daily credits are over (exit 4)stop, tell the user when it resets, do not retry

Exit codes: 0 ok, 1 no image or refused (read the message), 2 authentication (cookies expired or missing), 3 missing dependency, 4 usage limit reached, 5 timeout. On 2 or 3, bring the problem to the user instead of retrying.

Before a large batch (more than ~6 images), run python -I <skill-dir>/scripts/nanobanana.py --quota and tell the user how many credits are left. It only reads the account and generates nothing. A timeout (exit 5) usually means the limit is over, so check --quota.

Which model

Models on a typical AI Pro account: gemini-carbon, gemini-pro, gemini-flash, gemini-flash-lite. The default is gemini-carbon; pass --model to change it.

  • gemini-carbon (default): follows geometry, perspective, pose, hand gestures, object positions and fine details of a reference much better. Use it for anything with a camera angle, a pose or a reference.
  • gemini-flash-lite: wins on skin and material finish (glazed ceramic, film grain, glossy retouch), but it simplifies the scene and often drops details such as a hand gesture. Use it for texture-led images.
  • For an important image, generate with both and pick one.

Prompt lessons

  • JSON prompts work better for complex scenes: format, camera, subject, clothing, background, lighting, negatives. The script wraps JSON prompts with an instruction to output only the image (without it the model sometimes answers with text).
  • Numbers beat adjectives for framing. "Close-up" and "tight" are ignored. Use distances ("camera about 35 cm from her face"), lens ("24mm", "12mm fisheye"), and how much of the frame things fill ("head and hat fill about 45 percent of the frame height").
  • References: say what each reference is for ("image 1 is the pose only, do not copy the person"). Passing every reference to every prompt mixes them: give each generation only the references it needs.
  • Describing a pose in words is weak. Pass the pose photo with --ref.
  • Very long prompts can come back as text. Keep the essentials and put the output instruction first.

Setup

bash
pip install gemini-webapi browser-cookie3

Authentication, in order:

  1. GEMINI_1PSID and GEMINI_1PSIDTS environment variables.
  2. --browser chrome|edge|firefox|brave when given (reads the browser session; on Windows Chromium browsers need admin rights, and you must not run it elevated).
  3. A cookies file at ~/.nano-banana-pro/cookies.json (or $NANO_BANANA_HOME/cookies.json).

Since Gemini web build 20261119, __Secure-1PSID + __Secure-1PSIDTS alone no longer work: Google redirects them to the sign-in page (see gemini-webapi issue #381). The full set of Google cookies of a signed-in profile is needed, each on its own domain, including SID, HSID and APISID. The script patches the library for this and never hangs on login (60 s limit).

  • --browser firefox with gemini.google.com signed in on Firefox is the tested path: Firefox is readable without admin rights and exposes the full set.
  • A Cookie-Editor JSON export (a list) saved as cookies.json also loads. It must contain SID, HSID and APISID; Brave exports were tested and miss them (rejected). Edge/Chrome exports are untested.
  • "Only gemini-auto available", QUOTA unavailable or a "you're signed out" reply means the session is not authenticated.

Never print, read aloud, log or commit cookie values, and do not open the cookies file just to look at it. The script locks ~/.nano-banana-pro to the current user on the first run. Windows may save the file as cookies.json.txt.

Limits and care

  • This uses the unofficial web interface, not the API. It can break when Google changes something, and it spends the plan's daily credits. Do not run it in loops or large batches.
  • Expired cookies give exit code 2: ask the user to reopen gemini.google.com while logged in and refresh the cookies.
  • Resolution depends on the aspect ratio, not on the model (3:4 and 4:5 come out around 1800x2400 and 1850x2300; 3:2 around 2500x1700).
  • For vector logos, simple icons or diagrams, SVG or code is usually better than a generated image.
  • Videos are short clips only (a few seconds). Longer or edited video needs another tool.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Nano Banana Pro làm được gì?

Generate or edit images (portraits, product shots, banners, illustrations, mockups, visual assets) and generate short VIDEOS (Veo, with --video) with Nano Banana Pro through the user's own Gemini web session. Use it when the user asks to create, generate, edit or refine an image, to create a video or animated clip, or when a project needs a visual asset that code or SVG cannot produce. The agent writes the prompt, runs the script, looks at the result and iterates.

Vì sao nên dùng Nano Banana Pro trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Nano Banana Pro là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Nano Banana Pro trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-pro. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Nano Banana Pro?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Nano Banana Pro với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Nano Banana Pro với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Nano Banana Pro có miễn phí không?

Kỹ năng này được gustavo-henriq phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇