Cookbook

AI-generate a recipe from description

post/api/cookbook/generate

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/cookbook/generate
  • Auth
    HTTP bearer

Request body

descriptionstring required

Example request

{
  "description": "High protein breakfast with eggs"
}

Response

unknown required

Example response

{
  "success": true,
  "recipe": {
    "title": "Lemon Herb Grilled Chicken",
    "meal_type": "dinner",
    "calories": 380,
    "protein": 45,
    "carbs": 8,
    "fat": 16,
    "ingredients": [
      "chicken breast",
      "lemon",
      "rosemary",
      "olive oil",
      "garlic"
    ],
    "instructions": [
      "Marinate chicken...",
      "Grill 6 min per side..."
    ]
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.