Claude Code

How to generate images in Claude Code

Claude Code can’t generate images on its own, but it can call an image model through an MCP server. Tastepix adds image generation to Claude Code with one command: run claude mcp add --transport http tastepix https://mcp.tastepix.com/mcp, sign in once, then ask for the image in plain words. You get 12 models (Nano Banana, GPT Image, FLUX, Seedream, Qwen, Recraft incl. Recraft V4.1 Vector with SVG export, and Grok) plus background removal, upscaling and image-to-video. There are no API keys. You pay per image from €0.03, with no subscription.

Pasting a screenshot, attaching a file, or generating batches and SVGs: how to use images in Claude Code.

claude mcp add --transport http tastepix https://mcp.tastepix.com/mcp

That adds Tastepix to the current project. To use it in every project, add --scope user:

claude mcp add --transport http tastepix --scope user https://mcp.tastepix.com/mcp

The short answer

Can Claude Code generate images?

Not natively: Claude Code has no image model of its own. Add an image MCP server, such as Tastepix, and it can generate, edit and save images right inside your project.

Claude Code on its own

  • Writes and edits code, copy and config
  • Reads screenshots and images you paste
  • Draws diagrams and simple SVG shapes with code
  • Photos and illustrations from an image model

With an image MCP server

  • Photos, illustrations, icons and product shots
  • Edits of images in your repo, from a reference
  • Background removal, 2× and 4× upscaling, short videos
  • Files saved straight into the project

How to paste or attach an image, what Claude can do with it natively, and how to generate more: /claude-code/images.

Three steps

Add, sign in, ask.

About two minutes the first time. After that you just ask for the image.

  1. 01

    Add Tastepix

    Run the command in your project directory. Claude Code writes Tastepix into that project’s MCP config. Use --scope user if you want it in every project.

    Terminal
    $ claude mcp add --transport http tastepix https://mcp.tastepix.com/mcp
    Added HTTP MCP server tastepix with URL: https://mcp.tastepix.com/mcp to local config
  2. 02

    Sign in

    Start claude, type /mcp, choose tastepix and sign in in the browser. You can also run claude mcp login tastepix from your shell. New accounts get free credit, and no card is needed.

    Terminal
    $ claude mcp list
    tastepix: https://mcp.tastepix.com/mcp (HTTP) - ! Needs authentication
    $ claude mcp login tastepix
    Your browser opens the Tastepix sign-in page. Sign in, click Allow, and you’re connected.
  3. 03

    Ask for an image

    Ask in plain words. Claude picks a model, or uses the one you name, generates the image and saves it where you asked. Every image is also kept in your gallery at tastepix.com.

    Make a hero image of a Greek temple above the sea at sunset for the about page and save it to public/images/about.png.
    A Greek temple above the sea at sunset, made with GPT Image 2.5 through Tastepix
    public/images/about.pngGPT Image 2.5 via Tastepix

Your options

Three ways to add image generation to Claude Code

Every option works the same way from Claude’s side: an MCP server it can call. They differ in setup, keys, models and who you pay.

Swipe the table sideways to compare all three.

Hosted MCP (Tastepix)Self-run MCP + your API keyLocal ComfyUI
Setup timeAbout two minutes: one command, then sign inUsually under an hour: install a server, create a provider key, add it to the configHours: install ComfyUI, download model weights, wire up an MCP bridge
API keysNone, you sign in with OAuthYour own key from the provider (fal, Replicate…)None for local models
Models12 models from Google, OpenAI, Black Forest Labs, ByteDance, Qwen, Recraft and xAI, picked by nameWhatever that provider hosts and the server supportsOpen-weight models you run yourself (FLUX dev, SDXL and the like), plus your own LoRAs
CostPer image from a prepaid balance, from €0.03, no subscriptionThe provider’s own price per image, billed by themNo per-image fee, but you need a strong GPU (or rent one)
Where files goWherever you tell Claude, plus your gallery on tastepix.comWherever that server writes them, usually a local folderComfyUI’s output folder on your machine

Pick Tastepix when

You want many models behind one sign-in, no keys in config files, and the same account in Claude, ChatGPT, Cursor and Codex.

Run your own server when

You already have a provider account and credits, need a model we don’t list, or want to pay the provider directly with no one in between.

Go local with ComfyUI when

You have a capable GPU, make a lot of images, need custom LoRAs or node workflows, or nothing may leave your machine.

Many files at once

Generate a batch

One message can cover a whole folder. Claude reads the files, writes a prompt for each one and saves every image where it belongs.

Example: an OG image for every post

For every post in content/blog that has no og_image yet, use Tastepix to make a 16:9 Open Graph image that fits the post’s title. Save each one to public/og/ named after the post’s slug, and add the path to the post’s frontmatter. Do one first and show me before doing the rest.
  • Ask for one first: once you like the look, the rest follow the same style.
  • Each image is charged at its price. A daily spending limit in Settings puts a ceiling on a long run.
  • Tastepix runs a few images at a time per account, so a long list goes through in turns.

og/summer-launch

og/recipe-roundup

og/how-we-ship

Images made with Tastepix.

What developers use it for

Ask for the file you need.

Claude writes the prompt, picks a model and drops the result in your repo.

Hero and feature images

“Make a hero image for this landing page, warm editorial photo, 16:9.”

OG images

“Generate an Open Graph image for each post in content/blog.”

Icons and transparent PNGs

“Make an app icon, then remove the background.”

Placeholder product shots

“A clean product photo on white, for demos and seed data.”

Upscale

“Upscale this asset 2×, keep the same look.”

Animate a still

“Turn this still into a short video clip.”

Models and prices

A short list, from the same source as /pricing.

VAT included. Source: /pricing.

ModelGood forFrom
GPT Image 2.5 Fastcheap everyday drafts€0.03
Seedream 5.0 Flashfast photoreal drafts€0.04
Nano Banana 2.1defaultall-rounder, editing€0.075
FLUX.3photorealism€0.08
GPT Image 2.5precise prompts, text€0.105
Nano Banana Prodense text, 4K€0.265

Tools: background removal €0.04 · upscale 2×/4× €0.08 · vectorize to SVG €0.02 · image-to-video €0.065/second. All models and sizes.

Where images go

In your repo, and in your gallery.

Tell Claude the path. Tastepix also keeps every image in one place, from every app.

Saved into the project

Ask for a path and Claude writes the file there — public/og/launch.png, src/assets/, wherever the repo needs it.

Kept on tastepix.com

The same image lands in your Tastepix gallery, so you can download it again, edit it or reuse it as a reference.

CLAUDE.md

Teach Claude Code your image conventions

Claude Code reads CLAUDE.md at the start of every session. A few lines there and you stop repeating yourself: which model to use, the house style, sizes and where files go. Edit it to match your project.

CLAUDE.md
## Images
- Make images with the Tastepix MCP server. Never use placeholder boxes or SVG stand-ins.
- Default model: Nano Banana 2.1. Use GPT Image 2.5 when the image has text in it.
- House style: soft daylight, warm neutrals, plenty of empty space, no text unless asked.
- Hero and Open Graph images 16:9, icons 1:1 with the background removed.
- Save to public/images/, kebab-case names, keeping the file type you download.
- Before more than 10 images in one go, tell me how many and the total price.

When something’s off

Troubleshooting

The usual hiccups, and the one-line fix for each.

It says “Needs authentication”

You haven’t signed in yet, or the sign-in expired. Type /mcp in Claude Code, choose tastepix and sign in again in the browser, or run claude mcp login tastepix from your shell.

Claude doesn’t call Tastepix

Name it in the prompt: “use Tastepix to make…”, or name a model (“with FLUX.3”). If it still isn’t offered, run claude mcp list: without --scope user, Tastepix is only added to the project where you ran the command.

Where did the image go?

Claude saves it to the path you name. If you didn’t name one, ask: “save it to public/images/hero”. Every image is also in your gallery on tastepix.com, so nothing is lost.

It says the balance or daily limit is reached

Add funds on tastepix.com, or raise or remove your daily spending limit in Settings. Nothing was charged for the image that didn’t start.

Paste an image as a reference

Press Ctrl+V so Claude can see the image. To edit that exact file with Tastepix, give Claude its path. Paste, attach and generate guide.

Take assets/team-photo.jpg, remove the background with Tastepix and save it as public/images/team.png.

Manage the connection

List it, sign in again, or remove it.

Same commands as any other MCP server in Claude Code.

  • claude mcp list

    shows the status (✔ Connected when it’s working).

  • /mcp

    opens the panel inside Claude Code, where you can re-authenticate or disable it.

  • claude mcp remove tastepix

    removes it.

Terminal
$ claude mcp list
tastepix: https://mcp.tastepix.com/mcp (HTTP) - ✔ Connected

FAQ

Questions, answered.

Something else? Write to hola@tastepix.com.

No. Claude Code has no image model. It generates images by calling an MCP server such as Tastepix.

No. You sign in to Tastepix once, and Tastepix provides every model.

You pay per image from a prepaid balance, from €0.03 per image, with no subscription. Your first top-up starts at €5 ($5 in USD). Failed generations are refunded automatically, and your balance never expires.

Wherever you ask Claude to put them in your project. They also appear in your Tastepix gallery.

Nano Banana 2.1 by default. Name any model in your prompt ("use FLUX.3") to switch.

Yes. One account and one balance cover Claude, ChatGPT, Claude Code, Cursor and Codex.

Claude can see an image you paste with Ctrl+V (Cmd+V in iTerm2, Alt+V on Windows and WSL), but to edit it Tastepix needs the file itself. Give Claude the file’s path (dragging the file into the terminal pastes it) and describe the change. The full paste, attach and generate guide is on /claude-code/images.

Yes. Ask for the whole batch in one message, like an Open Graph image for every post, and Claude works through the list, one image per file. Each image is charged at its price, and you can set a daily spending limit in Settings on tastepix.com.

You haven’t signed in yet, or the sign-in expired. Type /mcp in Claude Code, choose tastepix and sign in again, or run claude mcp login tastepix from your shell.

Run `claude mcp remove tastepix`.

Add it in one command. Then just ask.

Free credit for new accounts, no card needed.

Get started