Practical AI · AI Development · Prompting

Build Better Apps with Fewer Tokens: A Simple Guide

Build a small app with four clear prompts. Follow a recipe-app example, learn what AI work can cost, and see how to avoid wasted work.

You have a small idea for an app. You want it to work. You also want to spend less on AI.

Where do you start? Start with one clear job. Then help the AI do that job, one step at a time.

We will use a recipe app as our example. It is a place to save food ideas. You can add a photo and find a meal later. The same steps can help you build other small tools.

You do not need to know every line of code. Code is the set of rules that makes an app work. You do need to say what you want. You also need to look at the app and try it.

Here is the goal: less wasted work, and an app you can use.

Start with one small problem

Think about your favorite soup. The recipe might be on a card. A cake recipe might be in a phone note. Another meal might be in an old email.

When it is time to cook, you have to hunt. A small recipe app could put those recipes in one place.

You could save a name, a photo, and a list of foods. You could add the steps to make the meal. You could mark the ones you love. You could search when you need them.

That is enough for a first app. It does not need a shop. It does not need a chat room. It does not need to serve a whole town.

This is the first way to help control cost. Give the AI a small job with clear edges.

What is a prompt?

A prompt is what you ask the AI to do. You can write it in plain words. You do not need a special code.

Codex is an AI helper that can help build and fix apps. You tell it the goal. It can work on the code. You still choose what you want and check the result.

Think of asking someone to make lunch. “Make some food” leaves a lot to guess. “Make a cheese sandwich, with no butter” is much clearer.

It is the same with an app. “Build something nice” is hard to follow. “Make one place to save my recipes” gives the AI a clear job.

A good prompt says what to make. It says what to leave out. It also says what must work when the job is done.

A clear prompt may use more words at first. That can be worth it. The AI may need fewer guesses and fewer fixes later.

Why can AI work cost money?

AI reads small bits of text called tokens. A token can be part of a word. It can also be a mark, like a dot. Tokens are not the same as whole words.

The AI uses tokens to read your request. It also uses them as it works and writes. Old chat messages and files can add more to read.

The goal is to give it the right papers. Keep the useful facts. Leave out things it does not need.

A short answer can still take a lot of AI work. The helper may have read many files first. So a short last message does not always mean a small bill.

Step 1: Ask for a plan

Before you build, ask for a short plan. This is like a quick sketch before you make a shelf. You can spot a wrong idea while it is still easy to change.

Here is the first prompt from the recipe-app brief. You can copy it and try it.

PROMPT

Prompt 1 — Plan it

I want to build a very simple personal recipe web app.

I need to:
- Add a recipe
- Give it a name and category
- Add ingredients
- Add cooking directions
- Add prep and cook time
- Add a photo
- Mark recipes as favorites
- Search my recipes
- Edit or delete a recipe

It must work well on my phone and computer.

Keep this app simple. Do not add features I did not ask for.

First, make a short plan for the app, the screens, and the data we need to save. Then tell me the simplest good way to build it.

The AI should describe the pages you need. It should say what your app must save. It should suggest a simple way to build it.

A category is just a group. For this app, groups could be soups, snacks, and cakes.

Read the plan. Does it match your idea? Can you add a recipe? Can you find it again? Does it work on your phone?

If the plan adds things you do not want, say so now. You might say, “Keep this for my own recipes. Leave out the shop.”

A small fix to a plan may save a large fix later. You are giving the AI a map before it starts.

Step 2: Ask it to build the app

Once the plan looks right, ask the AI to build it. Use that plan as the guide. You do not need to start the whole story again.

PROMPT

Prompt 2 — Build it

Now build the first working version of the recipe app from the plan.

Make the design clean and very easy to use.

Create:
- A home page that shows my recipes
- An Add Recipe page
- A Recipe Details page
- Edit and Delete
- Search
- Categories
- Favorites
- Photo upload

Make it responsive for phones, tablets, and computers.

Keep the code clean and organized. Do not overbuild it.

“Responsive” means the app fits the screen you use. A phone is small. A computer screen is wide. The app should be easy to use on both.

Look at the first version when you can. Try the main job. Add one simple recipe. Give it a name. Add a few foods and steps.

Do not judge only by how pretty it looks. The Save button must work. Your recipe must still be there when you come back.

Step 3: Test it and fix it

Now make sure the app does what you asked. This is called testing. It means trying the app and checking what happens.

AI can make mistakes. A nice screen can hide a broken button. Testing helps you find those mistakes before you rely on the app.

PROMPT

Prompt 3 — Test and fix it

Now act like a careful software tester.

Test the whole recipe app.

Check:
- Adding a recipe
- Editing it
- Deleting it
- Searching
- Categories
- Favorites
- Photos
- Empty fields
- Bad input
- Phone screen sizes
- Desktop screen sizes
- Refreshing the browser
- Saving and loading data

Fix the bugs you find.

Also remove duplicate or unnecessary code. Keep the app simple.

A bug is a mistake in the app. “Bad input” means a value the app should not accept. For example, cook time should not be a word like “banana.”

Try the app yourself too. Save a soup recipe. Close the page. Open it again. Is the soup still there?

Change the name. Add a photo. Mark it as a favorite. Search for it. Try the same steps on your phone.

Use a made-up recipe to try Delete. You do not want to lose a recipe you love just to test a button.

If a step fails, tell the AI exactly what happened. “It is broken” is hard to use. “I tapped Save, but my soup was gone after I reopened the page” gives it a clue.

Ask what it really tested. If it could not try the app on a phone, that check is still open. A guess is not a test.

Tests may use more AI work today. They can also help you avoid a much larger repair later.

Step 4: Make it easy to use

The app works. Now make it feel clear and calm. The buttons should be easy to find. The words should be easy to read.

PROMPT

Prompt 4 — Polish and prepare it

Now do the final polish.

Make the recipe app feel finished but still simple.

Improve spacing, buttons, forms, recipe cards, mobile layout, and helpful messages.

Check accessibility and basic security.

Make sure no private keys or secrets are exposed.

Add a simple README that explains:
1. What the app does
2. How to run it
3. How to deploy it
4. Where the recipe data is stored

Then do one final review and tell me if it is ready to use.

Accessibility means more people can use the app. That includes people who need help seeing or using a mouse.

A README is a small guide for the app. It tells you what the app does and how to run it. “Deploy” means put the app where you can open and use it.

Private keys are secret codes used by some services. They should stay private. Ask the AI to check that they are not shown in the app.

You also need to know where your recipes are kept. Are they on this device? Are they stored online? What happens if you use a new phone?

Ask for a plain answer. You should know how to keep a copy of your recipes. You should know whether other people can see them.

A final polish does not mean adding lots of new features. It means making the app you asked for easier to use.

Ask what is ready and what still needs a check. An app is ready when the key jobs work, not just when the AI says “done.”

What did the recipe app cost?

The recipe-app example reports about $8.50 in AI work. That was the cost of the AI help used to build the app.

That is one example. It is not a price promise. Your app may cost more or less.

The model you choose can change the cost. So can extra changes, long chats, and repeated fixes. A harder app may need more work.

There may also be costs to keep the app online. A web address can cost money. A service that stores your recipes may cost money too.

Those costs are separate from the AI work. Ask what is free and what may charge you before you choose a service.

The useful lesson is simple. A small app can be within reach. You can help control the work by being clear about what you need.

Four prompts do not always mean four short replies. The AI may read files, write code, and run checks between replies. The steps give the work order. They do not set a fixed bill.

Choose a helper that fits the job

You may see a choice of AI models. A model is the kind of AI helper doing the work.

Think about tools in a kitchen. A small knife can cut a berry. You do not need a huge tool for every small job. But some jobs need a better tool.

Luna can be a good choice for a small, clear task. Sol can help with work that has more parts. Astra can help with the hardest jobs.

The cheapest helper is not always the cheapest way to finish. If you need many failed tries, the total can grow. A stronger helper may be worth it for a hard problem.

You may also see a setting for how much the AI thinks. Start with the normal setting for your chosen model. Raise it when the job needs more care.

Asking for more thought can use more tokens. It does not have one fixed extra price for every job. You do not need the highest setting for every button or label.

Use the chart as a price guide

The chart below shows prices for different models. It also shows how the cost grows as more tokens are used.

You do not have to study every number. Here are the main things to know.

  • Input means what the AI reads.

  • Output means what the AI makes as it works.

  • Cached input means it can reuse some text it read before.

  • Credits are a way to pay for some Codex use. Credits are not dollars.

The lines show output cost only. They do not show the full cost to build your app. Reading your files and using some tools can add more.

The AI can also use tokens to think before you see an answer. Those tokens can count toward output cost.

So the chart is a guide to rates. It is not a quote for your recipe app. Its rates are dated October 7, 2026. Check the latest prices when you make a new budget.

CNERD AI chart of model prices and how output token cost grows.
A dated price guide. The graph shows output cost, not the full cost of building an app.

Keep each next request clear

If you start a new chat, bring a short note. Say what the app does. Say what works. Say what must be fixed next.

When you ask for a change, name the change. “Make it better” could mean almost anything. “Make the Save button easier to tap on my phone” is clear.

Tell it to keep the parts that already work. Ask it to check the change. This can help avoid a new problem while fixing an old one.

If the same fix fails twice, stop repeating “try again.” Give it the new error or the steps that failed. Ask it to look for the cause.

Keep the goal in view. A low token count means little if the app does not work. The useful win is a small bill for a tool you can use.

Try it with your own small idea

A recipe app is just one example. You might want a list of garden tasks. You might want to track books you lend. You might want a place to save gift ideas.

Pick one problem from your day. Write one sentence about it. Then list the few things your app must do.

Use the four prompts as a guide. Change “recipe app” to your own idea. Change the lists to match the job.

Keep the four steps: plan it, build it, test it, and finish it. Read what the AI gives you at each step. Make choices as you go.

What small app would make your life easier? Start there. Tell the AI what you need. Then work through it, one step at a time.