Logo : Nano Banana Pro

Nano Banana Pro

Communauté
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

Présentation

Éditeurgustavo-henriq
Dépôtnano-banana-pro-skill
Nom de la compétencenano-banana-pro
Étoiles
57
Forks
6
Fichiers inclus
1
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 1

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par gustavo-henriq sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Nano Banana Pro dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-pro
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Nano Banana Pro dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Nano Banana Pro dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Nano Banana Pro n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA 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.

Pourquoi utiliser Nano Banana Pro sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Nano Banana Pro se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Nano Banana Pro dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/gustavo-henriq/nano-banana-pro-skill/tree/main/skills/nano-banana-pro. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Nano Banana Pro ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Nano Banana Pro ?

Autant que vous le souhaitez. Vous pouvez utiliser Nano Banana Pro avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Nano Banana Pro est-elle gratuite ?

Cette compétence est publiée sur GitHub par gustavo-henriq. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇