# Old2New Recipe Transformer (Image + Recipe)

> Old2New Recipe Transformer (Image + Recipe) is a paid API for AI agents from old2new.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-10).

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.

## Facts

- Endpoint: POST https://old2new.app/api/agent/transform-image?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/old2new-recipe-transformer-image-recipe-5b7e6f30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0scY6YEOVepslb23nAsQS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability old2new-recipe-transformer-image-recipe-5b7e6f30 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Transform your old comfort recipes into healthy new favorites. Recipe transformation for GLP-1, keto, mediterranean and all healthy diets.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/old2new-recipe-transformer-image-recipe-5b7e6f30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from old2new.app](https://www.zero.xyz/host/old2new.app/llms.txt)
