⚙ CC Marketing · L4 Score 0/0
Lesson 4 of 12 · Claude Code Marketing

When a generative model beats a template, and how to fence it in

A routing rule with numbers attached: compositing ~80% usable, direct generation ~25%, and the template-fencing technique that closes the gap.

Built from the course by Nick Saraev Source span 1:55:34-2:31:22 ~15 min lesson 5 quiz checkpoints

💡 Dotted words are definitions

Underlined terms have plain-English definitions. Hover on desktop, tap on mobile.

✅ Quizzes keep score

Each section ends with a check. Your teacher-agent takes follow-up questions any time.

01 · Two engines

Two engines of the same pipeline

The creative pipeline has two distinct engines, and the speaker frames them by how pixels get made. Claude itself has no pixel-rendering ability: it drives compositing tools like Photoshop, Canva, or Microsoft Paint 1:55:34. Version 1 of his system hardcoded every pixel through compositing; version 2 is the shift to direct generation — image and video models steered by Claude that produce pixels directly, like GPT Image 2 1:57:32. He contrasts Premiere Pro (a video compositing tool) with video models like Sea Dance 2.5 (raw transcript: "Cance 2") 1:58:00, showing examples generated on Higgsfield (raw transcript: "Higsfield") 1:58:45.

A gallery of AI-generated examples includes a blue MIDNIGHT CLAY face-mask jar, sepia painting-style scenes, and astrolabe-like astronomical imagery.
1:58:45 · screenshotA gallery of AI-generated examples includes a blue MIDNIGHT CLAY face-mask jar, sepia painting-style scenes, and astrolabe-like imagery.

The speaker claims direct gen has roughly a 25% success rate versus 80% for compositing templates 2:00:32, and advises compositing for simple, cheap, repeatable tasks while reserving direct gen for more complicated work, at an average of about four generations per good result 2:00:54. The cost of that failure rate is the whole reason fencing matters.

A white handwritten slide states 'Compositing tools = 80%' beside a small video inset of the speaker.
2:01:00 · screenshotA white handwritten slide states "Compositing tools = 80%" beside a small video inset of the speaker.

Which framing does the speaker use for choosing between composite and direct gen?

Lead-in: His stated rule is that compositing handles the simple, cheap, repeatable work while direct gen is reserved for more complicated creative where the higher failure rate is worth the upside. The tempting wrong answer "always compositing" ignores his explicit advice that direct gen earns its cost on complex jobs.
02 · Cloud Socks test

Cloud Socks: proving direct gen on a real product

He rebuilds the ad pipeline around a direct-gen model. The flow: save best-performing ad formats as templates, feed in a product variable, have Claude generate combinations, pass to GPT Image 2, then review, pick, and ship 2:02:25. From the Meta Ad Library he saves three sock-ad templates 2:03:41, including a Nordic Socks static image with the logo centered across four sock panels 2:05:06.

Meta Ad Library search results show a Nordic Socks static image ad with a centered logo arranged across four panels.
2:05:06 · screenshotMeta Ad Library search results show a Nordic Socks static image ad with a centered logo arranged across four panels.

Two products anchor the test: Cloud Socks (merino wool sleep socks) and Linen Tails (a waffle towel bath sheet, 100% organic linen) 2:06:29. He tests GPT Image 2 directly first, converting a webp file to PNG because the free plan couldn't upload webp, then upgrading to the ChatGPT Plus plan to upload multiple images 2:07:00. He recommends at least the ChatGPT Go or Plus plan as of recording, since the free plan can't upload more than one image and interferes with API communication 2:09:00. Uploading the template and the product image, he prompts the model to apply the format while adding value props like "light, fluffy cloud sock that's cozy and helps you go to bed" 2:10:09, which yields the headline "Softer. Cozy. Cloud-Like. Your new bedtime essential." 2:10:45.

Generated Cloud Socks ad featuring cozy bedtime imagery and the headline 'Softer. Cozy. Cloud-Like. Your new bedtime essential.'
2:10:45 · screenshotGenerated Cloud Socks ad featuring cozy bedtime imagery and the headline "Softer. Cozy. Cloud-Like. Your new bedtime essential."

What was the concrete reason he upgraded off the free plan before testing?

Lead-in: He upgraded specifically because the free plan could not upload more than one image and interfered with API communication. The other options name constraints he never mentioned — watermarks, resolution caps, or model exposure.
03 · API wiring

Wiring an image API into Claude Code

The bridge between Claude and the image model is an API key created in the OpenAI playground and exposed to Claude Code only as an environment variable 2:11:40. For security, Claude never holds the key value — only the variable name — specifically to prevent prompt injection from leaking the secret 2:13:10. He then asks Claude to research the GPT Image 2 API (functions, endpoints) and generate a basic test image from the socks template, correcting Claude when it reached for GPT Image 1 instead 2:14:25. Claude produces five variants, some branded "Maker School Cloud Socks" with product images and distinct layouts 2:16:40.

Claude Code displays five Maker School Cloud Socks ad variants featuring branded logos, product images, and distinct lifestyle and studio layouts.
2:16:40 · screenshotClaude Code displays five Maker School Cloud Socks ad variants featuring branded logos, product images, and distinct lifestyle and studio layouts.

Why does Claude see only the variable name and not the key value?

Lead-in: He configured the variable so that a prompt injection can never extract the raw secret; Claude holds only the name and calls the API through the environment. The other options misattribute the mechanism to key rotation or storage location.
04 · Template fencing

Fencing the template: from 25% to 80%

The direct-gen failure rate is really a variance problem: more freedom increases variance and the chance of poor results — good for creativity, bad for repeatable business processes 2:17:30. He asks Claude to digest the image ad, identify levers to tweak, template out the changes, and generate with more conformity to the main image, aiming for an 80% success-rate template 2:18:24. Claude breaks the template into fixed geometric zones: a 0–20% logo band, 20–30% transition/negative space, and a 30–100% product band 2:19:45.

Claude presents the template as fixed geometric zones, including a 0–20% logo band, 20–30% transition space, and 30–100% product band.
2:19:45 · screenshotClaude presents the template as fixed geometric zones, including a 0–20% logo band, 20–30% transition space, and 30–100% product band.

The key discipline: he advises against mixing a procedural compositing approach with AI pixel-by-pixel generation, choosing a pure prompt template instead 2:20:18. The fenced output lands much closer to the original source — pairs of raised socked feet against a plain cream background 2:21:30.

Two generated Cloud Socks template images show pairs of raised socked feet against a plain cream background.
2:21:30 · screenshotTwo generated Cloud Socks template images show pairs of raised socked feet against a plain cream background.

What is the actual purpose of the zone breakdown Claude produces?

Lead-in: The zones translate the template into a prompt-level constraint — the "pure prompt template" he chose over mixing approaches — so direct-gen stays repeatable and on-brand. The wrong options misattribute the goal to compositing coordinates, batch cost, or Meta policy.
05 · Daily batch

Ship the daily batch, and adopt the routing rule

With the fence in place, he scales to a review pipeline. He asks Claude to turn the local flow into an HTML flow with checkboxes to select winners, generating at least five variants per template (15 total for three templates) with varied instructions like warm/cool and inside/outside 2:22:30. The app scaffolds 20 variants, lets you download selected ones, and you can adjust adherence to the template to add diversity 2:24:51.

A dark browser catalog displays two rows of Cloud Socks product thumbnails, with textile collages and prominent red diamond labels.
2:25:00 · screenshotA dark browser catalog displays two rows of Cloud Socks product thumbnails, with textile collages and prominent red diamond labels.

The escalation path: turn the flow into a skill, then a loop firing at 5:59 a.m. daily, generating 3 templates × 5 variants = 15 total renders 2:25:30. He creates a dedicated "routine API key" and adds it to the cloud routine's default environment in ENV format so it applies to all new sessions 2:27:00. Finally, he converts "product ad genen" into a routine mirroring the Maker School ads system — a Google Drive folder with a dated subfolder, querying the Maker School routine first for structure — with the API key in the default environment 2:28:41. The "Product Ad Gen Daily Batch" routine is active, scheduled to run daily at 5:59 AM PDT 2:31:22.

Adopt the routing rule as your standing procedure: send simple, cheap, repeatable briefs to compositing; send complex, high-value creative to direct gen — but only fenced, meaning a zone template, variation at the margins, a download picker for winners, and a mandatory human-in-the-loop review before anything ships. That rule is what lifts direct gen from ~25% to the ~80% envelope of a fenced template.

What makes the routine version distinct from the loop version?

Lead-in: The routine runs in the cloud on a schedule and dumps output to a company-accessible Google Drive folder, distinct from the local loop. It does not change models, skip the human picker, or remove the fence — those are the parts that make it reusable.
✔ Wrap-up

Your score

0 / 8
Answer the quizzes above to see your result.

One-sentence summary

A routing rule — compositing for repeatable, fenced direct-gen for complex — plus zone templates and a human picker lift direct-gen from ~25% to ~80% usable, shipped as a daily routine.

📖 Reference

Glossary

Every term marked with a dotted underline above. Skim it, or search the page for a word.

⚙ For your system

Ideas worth stealing into your own setup

Proposals, not done deals: nothing gets added to your system until you choose it.

01 Client catalog routine

Saw
He rebuilt 'product ad genen' into a routine mirroring the Maker School ads system, with a dated Google Drive subfolder and the API key in the default environment.
Why
Reuse this exact routine template for a client's product catalog: save their three best Meta formats, wire a GPT Image 2 key into the routine's default env, and deliver a dated daily batch they can review by link.
Form
Routine
Source
2:28:41 in the video

02 Template fencing service

Saw
He asked Claude to digest the ad, identify levers, and template changes with more conformity to the main image, aiming for an 80% success-rate template via zone constraints.
Why
For clients whose direct-gen tests hover near ~25% usable, encode their hero formats as zone constraints and sell the fenced, human-reviewed picker as a billable quality gate.
Form
Service offer
Source
2:18:24 in the video

03 Two-engine routing SOP

Saw
He claims direct gen runs about 25% success versus 80% for compositing, and advises compositing for simple repeatable tasks and direct gen for complicated work at ~4 generations per good result.
Why
Codify this routing rule as an agency SOP: composite the cheap repeatable static, direct-gen the hero/launch creative, and cap spend at roughly four generations per shipped asset.
Form
SOP
Source
2:00:32 in the video
Expanded screenshot