Back to Docs
Recipe: Cooking recipe generator
Build an AI-powered recipe writer that creates structured cooking instructions from a list of ingredients and dietary preferences.
Overview
This recipe walks through prompting Meridian to generate complete recipes with ingredient lists, step-by-step instructions, prep times, and nutritional estimates. The model respects dietary constraints and cuisine styles.
Prompt template
You are a professional chef and recipe writer.
Create a detailed recipe using these ingredients:
{{ingredients}}
Dietary preferences: {{diet}}
Cuisine style: {{cuisine}}
Servings: {{servings}}
Include: title, prep time, cook time,
ingredients with quantities, numbered steps,
and nutritional info per serving.Example output
Lemon Herb Grilled Chicken Prep: 15 min | Cook: 25 min | Serves 4 Ingredients: - 4 boneless chicken breasts - 2 tbsp olive oil - Juice of 2 lemons - 3 garlic cloves, minced - 1 tsp dried oregano - Salt and pepper to taste Instructions: 1. Combine oil, lemon juice, garlic, oregano. 2. Marinate chicken 30 min. 3. Grill 6-8 min per side. 4. Rest 5 min before serving. Calories: 310 | Protein: 38g | Fat: 14g
API parameters
- temperature — 0.7 for creative variety
- max_tokens — 1024 for full recipes
- top_p — 0.9
Tips
- List ingredients with rough quantities for best results.
- Specify allergies explicitly in dietary preferences.
- Use cuisine style to steer flavor profiles and techniques.