MCP · CLAUDE CODE

Claude Code image generation

Claude Code has no image model, but it can call one. Add Affogato with one command and it generates images and video and writes them straight into your project.

Hero images, app screenshots with real people, placeholder avatars, product shots, short clips: ask in the terminal like you ask for code. Claude Code quotes the credits, generates and saves the files where you say.

MCP URLhttps://staging.api.affogato.ai/mcp
Claude Code + Affogato

We need a vertical hero image for the landing page: a developer smiling at a laptop in a sunny co-working space. Save it to public/hero.webp.

Using Nano Banana 2.1 (8 credits). Generated, downloaded and converted: public/hero.webp (720×1290).

  • estimate_cost · nano-banana-2-1 · 8 credits
  • generate
  • Bash · curl + cwebp
A young developer with round glasses smiling at a laptop in a sunny co-working spaceA fitness coach with a high ponytail laughing while stretching on a mat in a bright gymProfessional headshot of a man in his forties with a salt-and-pepper beard on a grey backdrop
Example request. The outputs are real generations made through the Affogato MCP.

One command, then sign in.

Claude Code speaks HTTP MCP natively. Prefer the plugin? It installs the skills and the server together.

  1. 01

    Add the server

    Run this once in a terminal. It adds Affogato for your user; add --scope project to share it with a repository instead.

    Terminal
    claude mcp add --transport http affogato https://staging.api.affogato.ai/mcp
  2. 02

    Sign in

    Start Claude Code, type /mcp, pick affogato and choose Authenticate. Your browser opens the Affogato sign-in; approve the workspace and return to the terminal.

    In Claude Code
    /mcp
  3. 03

    Generate into your project

    Ask for assets the way you would ask for code: “make a 16:9 hero image of … and save it to public/hero.webp”. Claude Code quotes the credits, generates and downloads the file.

Other apps: Claude · ChatGPT · Cursor · Codex, VS Code and any MCP client

Assets generated from the terminal

Prompt, model and credits as charged.

Models Claude Code can call

The live catalog. Name a model id in the prompt, or ask for the cheapest that fits.

  • Nano Banana Profrom 30 credits
  • Nano Banana 2.1from 8 credits
  • Seedream 5.0from 6 credits
  • GPT Image 2.5 Flarefrom 76 credits
  • FLUX.3 Imagefrom 10 credits
  • Krea 3from 5 credits
  • Ideogram 4.5from 12 credits
  • Qwen Image 3from 8 credits
  • Affogato Realismfrom 8 credits
  • FLUX.1from 1 credits
  • Seedream v4.5from 8 credits
  • Seedream 5.5from 9 credits
  • GPT Image 2.6 Flarefrom 76 credits
  • Flux Rawphotofrom 10 credits
  • Wan 2.7from 6 credits
  • Qwen Imagefrom 4 credits
  • FLUX.3 Kleinfrom 2 credits
  • FLUX.2 [pro] Outpaintfrom 9 credits

Things to ask

Plain words work. Name a model, a format or a budget when you care.

  • “Generate three variations with nano-banana-pro and save the outputs to ./out.”
  • “List the models that take an image and return video, cheapest first.”
  • “Estimate this generation before running it, and stop if it is over 100 credits.”
  • “Replace every placeholder avatar in src/fixtures with a generated portrait.”

How it works, and the limits

Files land in your repo

Generations return download links; Claude Code fetches them with its usual tools, so it can convert, resize and commit the assets like any other file.

Uploads from disk

Coding agents can upload local files as inputs, so “use ./photos/me.jpg as the start frame” works directly.

A quote before every spend

On full-profile clients, estimate_cost prices exact inputs without charging; routed estimates can exceed the actual debit. ChatGPT uses typed generation tools. Above your confirm threshold the assistant must ask you first, and a daily cap stops agents for the day.

Your content rules still apply

Prompts and uploads go through Affogato's content rules. Some requests are refused, and real people should only be used with their permission.

Questions

Can Claude Code generate images?

Not by itself. With the Affogato MCP server added it can: it calls Affogato's image models and downloads the results into your project.

What is the claude mcp add command for Affogato?

claude mcp add --transport http affogato https://api.affogato.ai/mcp — then run /mcp inside Claude Code and choose Authenticate to sign in.

Can I share the server with my team?

Yes. Add it with --scope project and Claude Code writes a .mcp.json to the repository. Each person still signs in with their own Affogato account.

Is there a Claude Code plugin?

Yes: /plugin marketplace add affogato-ai/skills, then /plugin install affogato@affogato. It adds the MCP server and Agent Skills that teach the studio workflows.

Do I need an Affogato account?

Yes. The connector signs in to your Affogato account and spends the credits of the workspace you approve, the same credits as the web app. That workspace needs a paid plan or purchased credits; see the pricing page.

Can the assistant spend all my credits?

Generation tools enforce your confirmation threshold and daily cap. Full-profile clients can estimate exact model inputs without charging; routed estimates are conservative and actual charges can be lower. ChatGPT uses typed tools rather than estimate_cost. Failed or cancelled generations are refunded in full.

Connect once. Ask for anything.

Generations spend your Affogato credits, quoted first. See pricing, or manage connected agents and spend limits on the Developers page of the app.