VojtaCode
Subscribe

Loading the index.

$ cd ../articlesAug 2, 2026 · 5 min read

How to teach Claude Code to generate images for free

A skill that connects Claude Code to Gemini in your Google account, with no API key and no paying per image.

Skills · Images · Automation

Claude can't draw images on its own. That's why people pay for another subscription to generate images, like Midjourney or Higgsfield. But you most likely already have one image generator: it sits in your Google account as Gemini. Claude just doesn't know about it yet.

I'll show you how to teach it. You install the skill-image-vojtacode skill, sign in to Google once, and from then on you just tell Claude in a normal sentence what image you want. Claude puts together the prompt, shows it to you for approval, opens a browser with Gemini, has it generate the image and saves it to your disk.

What free means

So you're not surprised, I'll tell you right at the start:

  • You don't pay per image and you don't need any API key or credits. The images are generated through your own Google account.
  • A free Google account has a daily limit. Google sets it, not the skill.
  • The model depends on your account. On a free account you get Nano Banana, with a Google AI Pro subscription you get the stronger Nano Banana Pro.
  • The images have a watermark saying they were made by AI. The skill doesn't remove it. That's in the terms, and the SynthID mark is inside the image anyway.

What you need

  • Claude Code. Even the Sonnet model is enough, you don't need the strongest model for this.
  • A Google account.
  • Node.js version 18 or newer. If you don't have it, Claude will send you to nodejs.org during the install and wait until you've installed it. It's the only extra thing you need.
  • The skill pack from tools. It has everything in one go: the skill, Prompt Master, instructions for Claude and a bundled Playwright, so nothing else gets downloaded.

Claude might still want to install something else during setup. It'll always tell you up front what it needs, and you approve it.

Step 1: prepare a clean folder and a new session

Download the ZIP with the skill. Create an empty folder, open Claude Code in it and start a new, clean session. That way the install doesn't get mixed up with other work and you can see right away what Claude is doing.

Step 2: give Claude the instructions from the pack

Don't make up your own sentence. The ZIP has a file called ZACNI-TADY.txt ("start here"), and that's a finished, tested set of instructions for Claude.

  1. Unzip it and open ZACNI-TADY.txt.
  2. Select all the text (Ctrl+A) and copy it (Ctrl+C).
  3. Paste it into the clean session as the first message and send it.
  4. From there, just answer whatever Claude asks you.

Claude finds the ZIP in your Downloads, on your desktop or in the current folder. If it can't find it, it'll ask you for the path. Then it unpacks the skill to the right place, checks your Node.js version and sets up its folders.

Step 3: pick a browser

Claude checks which browsers you have and lets you choose:

  • chrome, if you have Google Chrome. Signing in goes smoothest there.
  • edge, Microsoft Edge, which you almost certainly have on Windows.
  • chromium or firefox, which the skill downloads by itself if you want to use them.

Step 4: sign in to Google once

Claude starts the sign-in and a new browser window opens. It's not your usual Chrome. The skill has its own separate profile, so it doesn't poke around in your everyday browser with your tabs.

In that window you sign in with your Google account and type done to Claude. You enter the password yourself, in your window, straight to Google. Claude never sees it and should never ask for it. If you were about to send it in the chat, don't.

You only sign in once. Claude then checks that everything is ready and generates a test image.

tip

If Claude reports that Playwright is missing, the ZIP didn't unpack completely. Unzip it again and don't install Playwright from anywhere else.

Step 5: your first own image

You don't have to remember any command. Write a normal sentence:

make me an image of a burning keyboard on a black background

The skill turns on by itself for phrases like "generate an image", "make an image", "create an image" or "draw". Claude then:

  1. builds a long English prompt following Prompt Master,
  2. shows it to you for approval,
  3. after you agree, opens the browser, has Gemini generate the image and downloads it to your disk.

Expect a bit of waiting while Google finishes the image. If you have your own finished prompt and don't want it changed, add "exactly this, don't improve it".

What Prompt Master does

You type six words, but a much longer prompt goes to Gemini. Prompt Master builds it in layers: subject, clothing, setting, composition, light, lens, style and quality.

What makes the biggest difference is composition described in numbers, for example what percentage of the frame height the object takes up and how big the margin stays. Thanks to that the object doesn't slip out of the frame and you won't get a cut-off flame. If you read the prompt before approving it, you'll quickly learn what makes a good prompt.

Second try: how to ask for a better result

The first image might not be right. Don't repeat the same sentence and hope for a miracle. Say exactly what should change, and above all what should stay.

Bad:

change the background

Better:

change the background to a city at night, the face, clothes and pose stay exactly the same

If you don't say what stays, Gemini may happily redraw the face or the whole object.

Watch out for

  • The daily limit on a free account is real. Once you use it up, more images have to wait for Google to reset the limit.
  • Don't remove the watermark. It's part of the terms of service.
  • Don't install in a session that's already in progress. A clean start saves confusion.
  • Read the prompt before you approve it. It's the fastest place to fix a misunderstanding.

What's next

At the end of the video I show that the same skill can do videos too. For images, though, this process is all you need. You'll find the whole install step by step, the sign-in and the first images live in the video for this guide (the video is in Czech). You can download the skill and the standalone Prompt Master in tools.


Kafe a cígo, fajně si sednout a jdeme na to.

Coffee and a smoke, get comfy and let's go.

Vojta Horava

Want to know when the next one is out?

Now and then I write about what's new: a video, a tool, an article. Unsubscribe with one click.