Explainer
Can ChatGPT make a recipe dairy-free? We tested GPT-6 Astra on mac and cheese
The short answer
In our October 2026 API test, GPT-6 Astra replaced every dairy ingredient and every step that used it in a baked mac and cheese and warned about whey, casein, and "non-dairy" labels, but it did not flag that its soy and plant-cheese swaps can add other allergens.
Want to save this recipe and adapt it on your iPhone?
Download on the App StoreThe answer from one real test: yes, thoroughly, with one gap
We gave OpenAI’s GPT-6 Astra (OpenRouter slug openai/gpt-6-astra, listed as OpenAI’s flagship) a baked mac and cheese recipe with butter, whole milk, heavy cream, cheddar, Parmesan, and buttered breadcrumbs, and asked for a dairy-free version for a guest who can’t have dairy.
It caught everything we planted. All eight places dairy appeared — including the buttered baking dish and the Parmesan served at the table — were replaced, and every step of the method was rewritten to match. It specified unsweetened, unflavored plant milk (a sweet vanilla oat milk would wreck a cheese sauce), called for dairy-free panko, and opened with a warning to check labels for milk, butter, whey, and casein, noting that some “non-dairy” products still contain milk derivatives. It even mentioned cross-contact from shared utensils.
The gap: it suggested soy milk and unspecified plant-based cheeses and butter without noting that these often contain soy, tree nuts, or coconut. For a guest avoiding dairy by preference, that doesn’t matter. For a guest with several allergies, it might.
This was an OpenRouter API output test on October 10, 2026. We did not cook the recipe, so we can’t tell you how it tastes or how a given vegan cheese melts. The result applies to this model and prompt; the ChatGPT consumer app may route to a different model or use different instructions. The raw prompt and output are saved in our research notes.
Allergy note: this article is not medical advice. If you’re cooking for someone with a milk allergy, read the full ingredient label of every product you buy, every time, and ask them what they can safely eat.
The recipe and the prompt
Creamy baked mac and cheese for four: 8 oz elbow macaroni; 3 tablespoons butter and 3 tablespoons flour for a roux; 1 1/2 cups whole milk; 1/2 cup heavy cream; 2 cups shredded sharp cheddar; 1/2 cup grated Parmesan plus extra for serving; Dijon, salt, and pepper; 1/2 cup panko tossed with 1 tablespoon melted butter. The seven-step method made a roux, built the sauce, melted in the cheeses, combined it with pasta in a buttered 8-inch dish, topped it with buttered panko, broiled it, and served it with extra Parmesan.
We planted dairy in places that are easy to miss: a second butter in the topping, butter used to grease the dish (mentioned only in the method), and Parmesan at the table in the final step.
The prompt was deliberately plain, the way most people would ask:
Make this recipe dairy-free — I’m cooking it for a guest who can’t have any dairy. Return the complete revised recipe: full ingredient list with quantities and the numbered method.
The audit: every dairy item and every step
| Dairy use in original | Where it appeared | GPT-6 Astra’s replacement | Verdict |
|---|---|---|---|
| 3 tbsp butter (roux) | Ingredients + step 2 | Dairy-free plant-based butter | Replaced in both |
| 1 1/2 cups whole milk | Ingredients + step 3 | Unsweetened, unflavored oat or soy milk | Replaced in both |
| 1/2 cup heavy cream | Ingredients + step 3 | Unsweetened dairy-free cooking cream | Replaced in both |
| 2 cups sharp cheddar | Ingredients + step 4 | Dairy-free cheddar-style shreds, “suitable for melting” | Replaced in both |
| 1/2 cup Parmesan | Ingredients + step 4 | Dairy-free Parmesan-style cheese | Replaced in both |
| Buttered baking dish | Step 5 only | 1 tsp plant butter for greasing, added to the ingredient list | Caught and added |
| 1 tbsp melted butter (topping) | Ingredients + step 6 | Plant-based butter | Replaced in both |
| Extra Parmesan to serve | Step 7 | 2 tbsp dairy-free Parmesan-style cheese | Replaced and quantified |
| Panko (sometimes contains milk) | Ingredients + step 6 | ”Dairy-free panko” | Flagged as a label check |
Nothing dairy survived in the ingredient list or the method. The rewritten steps referred to the new ingredients by name (“the plant-based milk and dairy-free cooking cream”), so there was no mismatch between list and method — the failure we’ve seen in other recipe rewrites.
Hidden dairy: what it warned about
The model’s opening note covered the most important label traps:
- Whey and casein. The FDA notes that casein, sodium caseinate, and whey are all milk proteins, and that milk must be named on the label, either in the ingredient list or a “Contains” statement (FDA: Have food allergies? Read the label).
- “Non-dairy” isn’t the same as milk-free. Food Allergy Research & Education (FARE) warns that many non-dairy products contain casein (FARE: milk allergy). GPT-6 Astra said the same.
- Cross-contact from shared cookware, which it mentioned for a milk allergy.
What it didn’t need to mention here, but you should know when checking any dairy-free rewrite:
- Ghee is dairy. It’s clarified butter, and FARE lists it among ingredients to avoid with a milk allergy. A rewrite that swaps butter for ghee has not made a recipe dairy-free. GPT-6 Astra did not do this.
- Margarine can contain milk. FARE lists margarine among possible sources of milk. “Plant-based butter” is the right category, but the label decides.
- “May contain” warnings are voluntary. The FDA notes manufacturers aren’t required to add them, so the absence of one isn’t a guarantee.
Do the quantities and method still make sense?
Mostly, yes, on paper. The roux kept its 1:1 ratio of fat to flour with plant butter, which is a standard approach, and the liquid amounts stayed the same. Two of the model’s changes were genuine improvements:
- It told the cook to reserve 1/2 cup pasta water and add it a tablespoon at a time if the sauce was too thick — useful, because dairy-free cheeses vary a lot in how they melt.
- It said outright that “melting time and texture vary by brand,” and changed the original “remove from the heat” to melting the cheese over low heat — a reasonable change for plant cheeses that melt less readily, though not one we could test.
It also specified a broiler-safe dish, which the original should have said.
What we can’t verify without cooking: how a particular dairy-free cheddar melts, whether the sauce turns grainy, and how salty the result is. Dairy-free cheeses differ in salt as well as texture, and the model kept the original 1/2 teaspoon of salt without suggesting you taste first. We’d add that.
The gap: new allergens from the substitutes
The model suggested oat or soy milk and left the plant butter and cheeses unspecified. Many dairy-free cheeses are made from cashews, other nuts, or coconut oil, and many plant butters and creams contain soy or nut ingredients. If your guest avoids dairy because of a milk allergy and also has a soy or tree-nut allergy, the recipe needs a second pass. The prompt didn’t mention other allergies, so this isn’t an error so much as a missing caution — but it’s the one we’d want included.
A better prompt closes it:
Make this recipe dairy-free for a guest with a milk allergy. They also can’t have [soy / tree nuts / coconut — or “no other allergies”]. Replace every dairy ingredient and every step that uses one, including greasing and garnishes. Flag ingredients that commonly hide milk, and tell me what to check on product labels.
How this compares with our earlier test
In our August 2026 benchmark, three models were asked to make a muffin recipe dairy-free. All three replaced the milk and butter and updated the method; one left out the oven temperature and time. The full write-up is in ChatGPT vs. Claude vs. Gemini for recipes. This mac and cheese test was harder — more dairy, in more places — and GPT-6 Astra still produced a complete, self-contained recipe.
The broader rule for any swap — work out what the original ingredient was doing before replacing it — is covered in can ChatGPT substitute ingredients?, so we won’t repeat it here.
A dairy-free checklist for any AI rewrite
- Search the new ingredient list for butter, milk, cream, cheese, yogurt, buttermilk, ghee, and whey.
- Read the method for dairy used outside the ingredient list: greasing pans, brushing tops, garnishes, “serve with.”
- Check that each method step names the replacement, not the original.
- Read every product label for milk, whey, casein, and caseinates, and for a “Contains: Milk” statement.
- Check the substitutes for the guest’s other allergies.
- Taste for salt before adding the full amount.
Saving the dairy-free version with Sous Chef
If you cook for a dairy-free guest more than once, the useful thing is having the dairy-free version saved next to the original rather than scrolling back through a chat.
In Sous Chef on iPhone you can import a recipe from a link, pasted text, or photos, then type or say “make it dairy-free.” The edit changes both the ingredient lines and the steps that use them, marks each changed line as Edited, and keeps the original untouched so you can undo. You can add a note with the brands that worked. It is free to download and try; heavier AI use may need a subscription later.
Be clear about the limits: Sous Chef doesn’t read product labels or know which brand of cheese you bought, so it can’t confirm a product is milk-free, and it isn’t an allergy tool. It has no nutrition tracking. For the label check, the package in your hand is the only source that counts. If you want an app built around dietary filters, see best recipe apps for dietary restrictions.
Common questions
Can ChatGPT make a recipe dairy-free?
In our test, GPT-6 Astra replaced every dairy ingredient and every step that used one in a baked mac and cheese, including greasing and the garnish. Treat it as a strong draft and still check labels yourself.
Did ChatGPT miss any hidden dairy?
No dairy remained in the recipe, and it warned about whey, casein, and “non-dairy” labels. It did not flag that soy milk and plant-based cheeses can introduce other allergens such as soy, tree nuts, or coconut.
Is ghee dairy-free?
No. Ghee is clarified butter, and FARE lists it among ingredients to avoid with a milk allergy. A rewrite that swaps butter for ghee is not dairy-free.
Is a “non-dairy” product safe for a milk allergy?
Not automatically. FARE warns that many non-dairy products contain casein. Read the full ingredient list and look for milk in the “Contains” statement.
Can I swap plant milk for milk one-for-one in a cheese sauce?
In a roux-based sauce, an unsweetened, unflavored plant milk at the same volume is a common starting point. Texture depends on the brand, so keep some pasta water or extra liquid ready to adjust.
Is this medical or allergy advice?
No. This is an output audit of one AI response. If you’re cooking for someone with a food allergy, read every label and confirm what they can eat with them.
Try it on your own recipe
Sous Chef is free to download and try on iPhone. Heavier AI use may need a subscription later.
Download on the App Store