Skip to main content
Mizen uses AI to suggest practical ingredient substitutions tailored to your specific recipe. When you’re missing an ingredient or need alternatives for dietary preferences, Mizen provides context-aware recommendations.

How It Works

The substitution feature analyzes your complete recipe context to provide relevant suggestions:
  1. Recipe Analysis - Reviews the full ingredient list, cooking instructions, and cuisine style
  2. AI Generation - Uses Groq’s Llama 3.3 70B model to generate substitutions
  3. Context-Aware - Each suggestion references specific aspects of your recipe

What the AI Considers

  • Other ingredients - Ensures compatibility with existing flavors
  • Cooking method - Matches substitutes to preparation techniques (baking, frying, etc.)
  • Cuisine style - Suggests culturally appropriate alternatives
  • Recipe structure - Considers the ingredient’s role in the dish
Substitutions are generated specifically for your recipe, not generic replacements. The AI explains why each substitute works for your particular dish.

Getting Substitutions

To request substitutions for an ingredient:
  1. Navigate to your recipe
  2. Click on any ingredient in the list
  3. Select “Find substitutes”
  4. Review the 3 AI-generated suggestions
Each suggestion includes:
  • Substitute name - The alternative ingredient
  • Description - Why it works for this specific recipe (max 100 characters)

Example Substitutions

Italian Pasta Dish

Original ingredient: Parmesan cheese
Recipe context: Creamy carbonara with pancetta
Suggestions:
  1. Pecorino Romano - Traditional alternative for carbonara; sharper, saltier flavor complements pancetta
  2. Grana Padano - Milder than Parmesan but melts smoothly into cream sauce
  3. Nutritional yeast - Dairy-free option with umami depth; use less due to intensity

Asian Stir-Fry

Original ingredient: 1½ Tbsp soy sauce
Recipe context: Vegetable stir-fry with ginger and garlic
Suggestions:
  1. Tamari - Gluten-free alternative with similar umami profile; use same amount
  2. Coconut aminos - Lower sodium, slightly sweet; balances ginger and garlic
  3. Worcestershire sauce - Different flavor profile but provides savory depth; use less

Baking Recipe

Original ingredient: 2 cups all-purpose flour
Recipe context: Chocolate chip cookies, butter-based
Suggestions:
  1. Bread flour - Higher protein creates chewier texture; use same amount
  2. Whole wheat flour - Nuttier flavor, denser result; mix 50/50 with all-purpose
  3. Gluten-free flour blend - Use 1:1 ratio; add xanthan gum if blend doesn’t include it

AI Model Details

Model: Llama 3.3 70B Versatile

Mizen uses Groq’s high-performance inference to generate substitutions:
  • Temperature: 0.4 (balanced creativity and reliability)
  • Max tokens: 1024
  • Response format: Structured JSON

Request Context

The AI receives:
  • Recipe title
  • Cuisine tags
  • Complete ingredient list (all groups)
  • Full cooking instructions
  • Specific ingredient name and amount
This comprehensive context ensures substitutions are practical and relevant.
The AI is configured as a “professional chef and recipe adaptation specialist” to ensure culinary expertise in all suggestions.

Use Cases

Dietary Restrictions

  • Allergies - Find alternatives for common allergens (dairy, nuts, gluten)
  • Vegan/Vegetarian - Replace animal products with plant-based options
  • Low-sodium - Identify lower-salt alternatives

Ingredient Availability

  • Missing ingredients - Find substitutes using what you have on hand
  • Seasonal alternatives - Replace out-of-season produce
  • Regional differences - Adapt recipes to local ingredient availability

Experimentation

  • Flavor variations - Explore different taste profiles
  • Texture changes - Modify dish consistency or structure
  • Cuisine fusion - Blend cooking traditions with appropriate substitutes

Limitations

AI-Generated Content

Substitutions are generated by AI and should be reviewed critically:
  • Not guaranteed - Suggestions may not always work perfectly
  • Culinary judgment required - Use your cooking experience to evaluate recommendations
  • Test first - Try substitutions in small batches when possible

Measurement Adjustments

The AI provides substitutes but doesn’t automatically adjust amounts:
  • Some substitutes require different quantities
  • Follow the AI’s description for guidance on amounts
  • Adjust seasoning after substituting

Complex Ingredients

Certain ingredients are harder to substitute effectively:
  • Eggs in baking - Serve multiple functions (binding, leavening, moisture)
  • Specialty ingredients - Unique flavors may not have direct equivalents
  • Structural components - Flour, thickeners, and fats require careful replacement

Response Reliability

AI responses are generally reliable but can occasionally:
  • Suggest impractical substitutes
  • Miss important compatibility issues
  • Provide generic rather than context-specific advice
Always review AI-generated substitutions with your own culinary knowledge. The feature is designed to assist, not replace, your judgment.

API Requirements

Substitution generation requires a Groq API key configured in the environment:
GROQ_API_KEY=your_api_key_here
Without this key, the substitution feature will not be available.

Build docs developers (and LLMs) love