{"uid":"cap_0scY6YEOVepslb23nAsQS","slug":"old2new-recipe-transformer-image-recipe-5b7e6f30","name":"Old2New Recipe Transformer (Image + Recipe)","description":"Transform your old comfort recipes into healthy new favorites. Recipe transformation for GLP-1, keto, mediterranean and all healthy diets.","url":"https://old2new.app/api/agent/transform-image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["recipe"],"properties":{"diets":{"type":"array","description":"Diet preferences, e.g. 'vegan', 'keto'. Provide diets and/or healthGoal."},"recipe":{"type":"string","description":"The original recipe text to transform."},"healthGoal":{"type":"string","description":"Free-text health goal or dietary preference. Provide diets and/or healthGoal."},"restrictions":{"type":"object"}}},"responseSchema":{"ok":true,"image":{"imageUrl":"https://hjtwpyauadgfhdurbmdr.supabase.co/storage/v1/object/public/recipe-images/example.png","imageModel":"gpt-image-1"},"model":"claude-sonnet-4-6","result":{"shoppingList":{"dairy":[],"other":["cashew ricotta"],"pantry":["marinara sauce","lasagna noodles"],"produce":["onion","garlic"],"protein":["green lentils"]},"transformedRecipe":{"name":"Lentil Lasagna","ingredients":[{"item":"cooked green lentils","note":"swapped for ground beef","amount":"2 cups"}],"instructions":["Brown the lentils with onion and garlic.","Layer noodles with sauce and cashew ricotta.","Bake at 375F for 45 minutes."]}},"requestId":"5b1e3e0a-2f3a-4c9e-8e2a-8e6f1a2b3c4d","disclaimer":"Nutrition values are estimates, not measurements. This is not medical advice. The image is an AI-generated illustration, not a photo of the actual prepared dish.","schemaVersion":"1.0","restrictionsApplied":{"vegan":true,"dairyFree":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GwU4izvyw6Ghcg2ZVqpVY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transforms an existing recipe into a healthier version aligned with a specified diet (GLP-1, keto, Mediterranean, vegan, etc.) and returns a transformed recipe, shopping list, and AI-generated food image.","exampleAgentPrompt":"Can you transform my classic beef lasagna recipe into a vegan, dairy-free version? Here's the recipe: [recipe text]. I'm following a plant-based diet and want a full ingredient swap list, new instructions, and a shopping list.","exampleUseCases":[{"title":"GLP-1 comfort food makeover","prompt":"I'm on a GLP-1 medication and want to eat healthier — can you take my mom's mac and cheese recipe and transform it into a GLP-1-friendly version with a shopping list? Here's the recipe: [mac and cheese recipe text]."},{"title":"Keto diet recipe conversion","prompt":"Transform this classic banana bread recipe into a keto version — I need it low-carb and sugar-free. Here's the original: [banana bread recipe]. Give me the new ingredients, instructions, and what to buy at the store."},{"title":"Mediterranean diet family dinner","prompt":"Can you reimagine my traditional beef bolognese recipe for the Mediterranean diet? I want to avoid red meat and use heart-healthy ingredients. Here's the original recipe: [bolognese recipe text]."}],"resultDescription":"Returns a structured JSON object containing: the transformed recipe (new name, ingredient list with substitution notes, step-by-step instructions), an organized shopping list broken into categories (produce, protein, dairy, pantry, other), a URL to an AI-generated image of the dish, the model used, applied dietary restrictions, a unique request ID, and a disclaimer about nutritional estimates.","failureModes":["Missing required 'recipe' field returns a validation error","Ambiguous or very short recipe text may produce a low-quality or incomplete transformation","Neither 'diets' nor 'healthGoal' provided may result in a generic transformation with no specific dietary focus","Image generation may fail independently of recipe transformation, returning a null imageUrl","Payment failure (x402) returns a 402 status before processing begins","Extremely long recipe text may hit token limits and produce truncated results"],"whenToPreferThis":"Choose this endpoint when you need both a textually transformed healthy recipe AND an AI-generated visual of the finished dish in a single call. It's ideal for apps or agents that serve users with specific dietary protocols (GLP-1, keto, Mediterranean, vegan) and need structured output including a categorized shopping list. Prefer this over generic LLM prompting when you want consistent schema output, per-call pricing without managing your own LLM keys, and integrated image generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:30:34.444Z","isFirstParty":false,"canonicalSlug":"old2new-recipe-transformer-image-recipe-5b7e6f30"}