Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Meta ad creative automation: AI ad images with Claude Code

Updated · 8 min read

Short answer Yes, mostly. Claude Code can't draw, but it can run a script that sends your brand rules and real photos to an image API such as Google's Nano Banana, sized for Meta's feed and Stories. Images cost about 3 to 24 US cents each. Add exact wording with code, check every image yourself, and launch ads paused.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

How Meta ad creative automation works

It's a short chain, and only one link needs AI to draw. You keep a folder of brand rules and real photos. Claude Code sends a request to an image API, crops the results to Meta's shapes, adds your exact wording and checks them. You approve, then upload the ads paused.

An API (application programming interface) lets one program ask another for work. Here, your script asks Google or OpenAI for a picture and pays per picture.

StepWho does itCost in US dollars, November 2026
1. Brand kit: logo, real photos, colors, offer, phone numberYou, once$0
2. Brief, script and file handlingClaude Code, following a saved skillIncluded in Claude Pro: $20 a month, or $17 a month billed yearly, before tax
3. Draw the imageGoogle's Nano Banana or OpenAI's GPT ImageAbout $0.03 to $0.24 per image at Google's standard rates
4. Crop to Meta sizes, add exact text and logoThe script$0
5. Check every imageClaude Code first, then youYour time
6. UploadYou in Ads Manager, or Meta's Ads CLI or ads MCP server$0

Is it worth building? Not for a handful of images a month: Ads Manager has its own generative tools (image generation, image expansion, background generation) inside Advantage+ creative; see Meta Advantage+ for a local business. The pipeline pays off when you make dozens of versions a month from the same rules, and someone is comfortable typing commands in a terminal.

What Claude Code does, and what it can't

Claude Code is Anthropic's AI assistant that works on your computer: it reads files, writes code and runs commands, in a terminal, a code editor or the desktop app. It comes with every paid Claude plan. It doesn't make pictures:

"No, Claude is an image understanding model only. It can interpret and analyze images, but it cannot generate, produce, edit, manipulate, or create images." (Claude Platform Docs: Vision)

It handles everything around the picture: it writes the request, calls the image API, saves and crops the files, and can inspect any image you point it to (Claude Code Docs: Common workflows).

A skill is how it keeps the job: a folder under .claude/skills/ holding a SKILL.md file of instructions plus any scripts. You run it by typing a slash and its name, such as /meta-ad-images (Claude Code Docs: Extend Claude with skills).

Nano Banana or GPT Image: which image API?

Either works. Google's is cheaper per image and makes Meta's two main shapes directly.

Google Gemini API (Nano Banana)OpenAI Image API (GPT Image)
Current modelsNano Banana 2.1 for everyday work; Pro for complex layouts and text; 2 Lite, the cheapestGPT-Image-2.6 Sunburst for detailed work; Flare for fast iteration
Price per image2.1: $0.034 at 1K, $0.050 at 2K, $0.113 at 4K. Pro: $0.134 up to 2K, $0.24 at 4KBilled by tokens, $30 per million image output tokens; OpenAI's guide has a calculator
Your photos as referencesUp to 14 per requestYes, through the edits endpoint
Meta shapes4:5 and 9:16 are preset optionsCustom sizes from 1:3 to 3:1
Before first usePaid tier only: the image models have no free tierYou may need OpenAI's Organization Verification

Older tutorials name "Nano Banana" (gemini-2.5-flash-image). Google has deprecated that model and will shut it down on March 15, 2027. Both companies bill in US dollars; Google lists Canada among the countries where its API works.

Step by step: build the pipeline

  1. Make a brand kit folder. Logo as a PNG, 3 to 10 real photos of your team, work or storefront, color codes, the offer, phone number, and anything you must print, such as a license number. Use only photos you have rights to.
  2. Get an API key. Create one in Google AI Studio and turn on billing. Keep it in a .env file (a private settings file), never inside the skill.
  3. Ask Claude Code for the skill in plain words. For example: "Make a skill called meta-ad-images. It reads brand/rules.md, sends my photos as references to Nano Banana 2.1, makes each idea at 4:5 and 9:16 in 2K, and saves them to out/."
  4. Generate at 2K. Meta recommends 1440 x 1800 pixels (4:5) for feed images and 1440 x 2560 (9:16) for Stories. At 1K, Nano Banana 2.1 makes a 9:16 image only 768 x 1376 pixels; at 2K it's 1536 x 2752.
  5. Keep the Stories safe zone clear. Meta advises leaving about 14% at the top, 35% at the bottom and 6% on each side free of text and logos, where the profile icon and button sit.
  6. Add exact words with code. Prices, phone numbers and license numbers are typed onto the image by the script, not drawn by the AI.
  7. Review, then upload paused. Have Claude Code check each image against your rules (logo present, text inside the safe zone, no odd hands), then look yourself. Anthropic warns against relying on Claude, without human oversight, for work that needs perfect precision.

Why step 6 matters, in OpenAI's own words:

"Text Rendering: Although significantly improved, the model can still struggle with precise text placement and clarity." (OpenAI API docs: Image generation)

Can Claude Code upload the ads to Meta?

Yes. On April 29, 2026, Meta launched its ads AI connectors in open beta: two tools that let an AI assistant work in your ad account.

Ads MCP server. MCP (Model Context Protocol) is a standard way for AI assistants to use other software. Meta's developer docs give the command to add it to Claude Code; that command uses your own Meta developer app ID. Without an app, Meta's help center has a separate setup.

"Write tools create entities in a paused state; your AI client asks for confirmation before activation." (Meta for Developers: Ads MCP server, ad creation and management)

Ads CLI. A command-line tool that uploads your image files when it creates each ad creative (the image and text of an ad). It runs on macOS or Linux, signs in with a system user access token from Business Settings, and creates ads paused by default. One creative can hold up to 10 images, 5 headlines and 5 body texts, and Meta tests the combinations.

Either way, switching an ad on should stay a human step.

Keeping the images on brand

The AI doesn't learn your brand by itself. Claude Code's docs say each session starts fresh; rules carry over only through files such as the skill, CLAUDE.md, or the notes it keeps in auto memory. When you reject an image, write the reason into the rules file: "Our trucks are white with a red logo."

  • Send the same references every time. Nano Banana 2.1 takes up to 10 object images (product, truck, storefront) and 4 character images (your team) per request.
  • Paste the logo with code. OpenAI says its models may fail to keep brand elements consistent across images.
  • Let AI make the scene, not the proof. Backgrounds and seasons are fair game. Finished jobs, staff and results should be real photos.

Rules for AI images in ads

Meta may label the ad. It adds an "AI info" label when its own tools create or significantly edit an image, and can detect other AI tools through industry standards such as C2PA metadata. Google says every Gemini image carries a SynthID watermark. Details: do AI-made Meta ads get labeled?

Fake customers are the line. In the US:

"The rule has no blanket prohibition on the use of AI-generated avatars in marketing." (FTC: Consumer Reviews and Testimonials Rule Q&A)

The FTC adds that an avatar's testimonial is banned if it is fake or false, and avatars could also be deceptive under the FTC Act. In Canada, section 74.01 of the Competition Act covers any representation to the public that is "false or misleading in a material respect," made "by any means whatever." An AI picture of a kitchen you never built, shown as your work, can mislead in just that way. Health and beauty ads have stricter photo rules: see med spa ads.

Example

Illustrative cases with invented numbers.

A roofer making 40 ads a month (US dollars)

Claude Pro, $20. About 80 drafts at 2K on Nano Banana 2.1 to keep 40: roughly $4. Crew photos go in as references; the AI adds storm skies; code adds the phone and license numbers. Total: about $24 a month.

A dental clinic in Toronto (billed in US dollars)

Five ideas at 4:5 and 9:16 on Nano Banana Pro at 2K: 10 images, about $1.34. No AI "patients." The office manager checks each ad against the RCDSO advertising guidelines and uploads by hand.

A cleaning company that skips it

It needs four images a month. Meta's built-in tools and phone photos cover that.

FAQ

Do I own AI-made ad images?

Google won't claim ownership but may make similar images for others. In the US, prompts alone don't earn copyright. Your photos, logo and wording stay yours.

Do I need to know how to code?

Not to write it. You install Claude Code, put an API key in a file and read the odd error. Meta's Ads CLI needs macOS or Linux.

Is there a free way?

Partly. Meta's generative tools are built into Advantage+ creative in Ads Manager. Google's image models in the API have no free tier.

Different for you?

Keep learning

NextMaid service ads: what to write, where to post, and the rulesMaid and house cleaning ads that get booked: what to say, where to run them, prices with fees, guarantee and green claims, and hiring ads, US and Canada.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Claude Platform Docs: Vision
  2. Claude Help Center: Can Claude produce images?
  3. Claude Code Docs: Extend Claude with skills
  4. Claude Code Docs: How Claude remembers your project
  5. Claude Code Docs: Common workflows, work with images
  6. Claude: Plans and pricing
  7. Gemini API: Nano Banana image generation
  8. Gemini API: Pricing
  9. Gemini API: Available regions
  10. Gemini API: Additional terms of service
  11. OpenAI API: Image generation
  12. Meta Ads Guide: Image ad specs, Instagram Feed
  13. Meta Ads Guide: Image ad specs, Instagram Stories
  14. Meta: Advantage+ creative
  15. Meta Business Help: About AI info on ads created or edited with generative AI tools
  16. Meta: Introducing Meta Ads AI Connectors (April 29, 2026)
  17. Meta for Developers: Ads MCP server
  18. Meta for Developers: Ads MCP server, get started
  19. Meta for Developers: Ads MCP server, ad creation and management
  20. Meta for Developers: Ads MCP server, rules best practices
  21. Meta for Developers: Get started with Ads CLI
  22. Meta for Developers: Ads CLI, ad creatives
  23. Meta for Developers: Ads CLI, command reference
  24. FTC: The Consumer Reviews and Testimonials Rule, questions and answers
  25. Competition Act (Canada), section 74.01
  26. U.S. Copyright Office: Report on copyrightability of AI outputs (Part 2, 2025)