Nano Banana Proのロゴ

Nano Banana Pro

コミュニティ
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

概要

公開者gustavo-henriq
リポジトリnano-banana-pro-skill
スキル名nano-banana-pro
スター
57
フォーク
6
同梱ファイル
1
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    gustavo-henriqがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Nano Banana Pro」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-pro
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでNano Banana Proを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にNano Banana Proを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Nano Banana Proは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでNano Banana Proを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Nano Banana Proはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにNano Banana Proをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-proを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Nano Banana Proを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Nano Banana Proで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもNano Banana Proを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Nano Banana Pro」は無料ですか?

gustavo-henriqがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇