Coming from Cursor / Claude Code / Codex? This one’s still for you. Your builder already has its own AI, but that’s separate from the brain your app uses to serve real users. This lesson is about giving your app its own brain (and deciding whether it even needs one), so don’t skip it just because your tools are set up.
The Story
In the Quickstart you set up your builder, Claude Code, the contractor who does the construction. Now meet the second AI, the one that confuses almost everyone: your app’s brain.
Here’s what the brain actually is. When a real user opens your finished trip planner and types “five days in Tokyo,” something has to invent that itinerary on the spot. It doesn’t exist anywhere yet. There’s no list of pre-written Tokyo trips waiting in a drawer. Some intelligence has to read the request and write back a real, specific, day-by-day plan. That intelligence is an AI service your app calls over the internet, and it’s the brain inside your product. Your app sends it the question, the brain sends back the answer, your app shows it to the user.
Now here’s the part nobody tells you up front, and it’s the whole reason this is its own lesson: getting a brain is a product decision, not a setup chore. Your builder, you absolutely need, it’s how you make anything at all. But the brain? That depends entirely on what you’re building. For some apps the brain is the entire point. For others it’s optional, or something you add much later, or something you never need. So before you sign up for anything or spend a cent, let’s figure out which kind of app you have.
This lesson does two things. First, it helps you decide whether your app needs a brain at all. Second, if it does, it gets you a key so your app can talk to one. By the end, you’ll know exactly what you’re paying for, and you’ll have what you need and nothing more.
Do You Even Need a Brain?
Try this. Describe your app in one sentence, the way you’d say it to a friend. Then look at the verbs.
If your sentence has words like generates, writes, suggests, creates, answers, summarizes, or plans in it, your app needs a brain. That’s the part doing the thinking, and the thinking has to come from somewhere. Our trip planner’s sentence is “you type a destination and AI plans your trip day by day.” The planning is the brain. Take the brain away and you’re left with an empty page and a button that does nothing.
But not every app is like that. Plenty of real, useful apps don’t generate anything, they store and organize what people already have. A shared shopping list. A habit tracker. A booking page for your salon. A directory of local dog parks. These are genuinely valuable products, and not one of them needs an AI brain to work. They might add a sprinkle of AI someday (“suggest items based on my past lists”), but that’s a feature you bolt on later, not a thing you need today.
So here’s the permission you came for: if your app doesn’t need a brain, don’t get one. Read the rest of this lesson so you understand the piece, then skip the signup and move on. Nothing later in the course breaks because you waited. You can always come back to this exact lesson the day you decide to add an AI feature.
For our trip planner, and for most of the apps people bring to this course, the brain is the magic. So let’s understand what it costs, and then go get one.
What a Brain Costs (and Why It’s a Separate Bill)
Remember the two AIs from the Quickstart, and how they cost money in separate ways? This is where that matters.
Your builder runs on your Claude subscription, one flat monthly price that you pay. Your app’s brain is different. It’s billed by whoever provides it, and it charges per use. Every time one of your users generates a trip, that’s one tiny charge against your account. Ten users, ten charges. A thousand users, a thousand charges. The bill grows with how much your app gets used, which is actually the good kind of bill: you only pay when people are getting value.
Two reasons this is a separate account and a separate bill. First, the brain runs inside your app for strangers, while your subscription is just for you, two completely different relationships. Second, and this trips people up: using Claude Code does not give your app free access to an AI brain. Even if you choose Anthropic’s Claude as your brain, that’s a separate signup with its own billing, unrelated to the Claude subscription that powers your builder. Two doors, two keys, two bills.
The good news for right now: it’s cheap to start, often free. The providers we recommend have generous free tiers that are more than enough to learn on, and once you’re paying, it’s a fraction of a cent per request. Later, in Lesson 21, we’ll set up guardrails so a runaway bill can never surprise you. For today, you’re looking at pennies, if anything.
Getting Your Key
To let your app talk to a brain, your app needs a key. Think of it like a membership card: it lets your app into the AI service and proves it’s allowed to be there.
We recommend Google Gemini, because it’s the cheapest and has the most generous free tier, which is perfect while you’re learning. But everything in this course works with any major AI provider, so if you already have a favorite, use it. Your app barely cares which brain it’s talking to.
One important rule, and we’ll come back to it in Lesson 3 when we cover what we call the secret leak: when you get this key, save it somewhere safe like a notes app or a password manager, and never paste it into your code. For now, just get the key and keep it handy. We’ll wire it up safely later.
🔧 Tool: AI API (Google Gemini / OpenAI / Anthropic Claude)
What it is: The AI brain your app calls to generate content for users (in our case, trip itineraries). This is separate from Claude Code and separate from your Claude subscription.
Registration: Sign up with one provider below, create a key, and save it somewhere safe.
Pricing: Usage-based and cheap to start; prices change, so check the provider’s pricing page. We recommend Gemini Flash to begin.
⚠️ Save the key, don’t code it. Put your key in a notes app or password manager, never paste it into your app’s code. We’ll set up the safe way to store it in Lesson 3: The Secret Leak.
Option A: Google Gemini (recommended)
- Go to aistudio.google.com
- Sign in with your Google account
- Click “Get API key” in the left sidebar
- Click “Create API key”
- Copy the key, it looks something like
AIzaSyD...long-string... - Save it somewhere safe (notes app or password manager, not in your code)
Pricing (approximate, check the page): Gemini Flash has a generous free tier, enough to learn on without paying. Paid usage is a fraction of a cent per request, the cheapest of the three options.
Option B: OpenAI (GPT)
- Go to platform.openai.com
- Create an account (email + phone verification)
- Go to API keys in the sidebar
- Click “Create new secret key”
- Copy and save the key
Pricing (approximate, check the page): New accounts usually get a small amount of free credit. Per-request cost is higher than Gemini, and you’ll burn through free credit faster.
Option C: Anthropic (Claude API)
- Go to console.anthropic.com
- Create an account (or sign in if you have one)
- Go to API Keys → Create Key
- Copy and save the key
Pricing (approximate, check the page): Charged per use. Important: the Claude API has its own billing, completely separate from your Claude.ai Pro or Max subscription. Using Claude Code does not give your app free access to the Claude API, they’re two different things with two different bills.
Which should I pick?
If you have no strong preference, start with Gemini Flash. It’s the cheapest, has the most generous free tier, and is more than good enough for everything we build. You can always switch providers later, your app’s code barely cares which brain it’s talking to.
And if you’d rather not commit to a single provider at all, a service called OpenRouter gives you one key that reaches Claude, Gemini, GPT, and dozens of others, so you can switch between them by changing one setting. You don’t need it today, but it’s good to know the door exists. We go deeper on choosing and routing models in Lesson 21.
Try It Yourself
Still no app to build, that’s the next lesson. For now, make the brain decision and, if you need one, get your key:
-
Write your one-sentence app description, then look at the verbs. Does it generate, write, suggest, create, answer, or plan something? If yes, you need a brain. If it only stores and organizes, you can skip the signup for now.
-
If you need a brain, get a key, follow Option A above (Google Gemini is the easy default). It takes about two minutes.
-
Save the key somewhere safe, drop it into a notes app or password manager. Do not put it in any code, and do not paste it into a chat. You’ll wire it up the safe way in Lesson 3.
-
Ask your builder to explain the difference, open Claude Code and type:
In plain English, what's the difference between you (my builder)
and the AI brain my app will call for its users? And why do they
have separate bills?
Hearing it in its own words is the best way to lock in the idea that confuses most beginners.
Adapt It: Build Your Own
Use this to make the brain decision for your idea, not just the trip planner. Keep your answer with your app notes from the Quickstart.
My app in one sentence:
[DESCRIBE YOUR APP, e.g., "you paste a job listing and AI writes a
tailored cover letter", or "you and your flatmates share a shopping list"].
The part that has to be invented fresh each time (the brain's job) is:
[WHAT THE AI GENERATES, e.g., "the cover letter text", or write "nothing,
my app just stores and organizes" if there's no AI generation].
So my app: [NEEDS a brain / DOESN'T need a brain yet].
If it needs one, the provider I'm using is:
[Gemini / OpenAI / Anthropic / other], and my key is saved in:
[WHERE YOU SAVED IT, e.g., "my password manager"].
Quick gut check:
- “AI meal planner, type restrictions, get a week of recipes” → needs a brain (it generates recipes)
- “AI cover-letter writer, paste a listing, get a letter” → needs a brain (it writes the letter)
- “Shared shopping list for my house” → no brain needed (it just stores items)
- “Booking page for my studio” → no brain needed (it just organizes appointments)
If your app is in the “no brain needed” group, that’s a perfectly good app. Skip the signup, keep your notes, and carry on. Everything else in this course still applies to you.
What’s Next
You’ve made the call. Either your app needs a brain and you’ve got a key saved safely, or you’ve decided it doesn’t need one yet and you’ve saved yourself the signup. Both are the right answer, because both came from understanding what the brain actually does instead of just doing what a tutorial told you to.
Now comes the fun part. In Lesson 1, “How to Direct Your AI Builder,” you’ll build your first real, working app in a single conversation. You’ll learn the director mindset, how to describe what you want clearly enough that Claude Code builds exactly the thing in your head. If you got a key, you’ll hand it to your app and watch a real itinerary appear on screen. If you didn’t, you’ll follow along just as well and tell Claude Code to leave a placeholder where the brain would go.
It’s the most important skill in this whole course, and you’re about to start practicing it. Let’s go direct your builder.