Cookbook

Generate meal ideas from a photo of ingredients

post/api/cookbook/meal-ideas-photo

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/meal-ideas-photo
  • Auth
    HTTP bearer

Headers

x-timezonestring required

Request body multipart/form-data

sourcestring

Set to "lucille" when the call originates in the Lucille chat. The result is then persisted as a chat turn and returned as a card.

sessionIdstring

Current Lucille chat session id, if the client tracks one.

clientTurnIdstring

Client-generated id for the optimistic chat bubble. Echoed back inside card so the app can reconcile it.

userMessagestring

What the user typed alongside the photo.

Example request

{
  "source": "lucille"
}

Response

unknown required

Example response

{
  "success": true,
  "ideas": [
    {
      "title": "Stir-Fry Chicken with Broccoli",
      "description": "Using your chicken and broccoli",
      "calories": 350,
      "protein": 40
    },
    {
      "title": "Chicken and Rice Bowl",
      "description": "Simple protein bowl with your ingredients",
      "calories": 420,
      "protein": 38
    }
  ]
}

Changes

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