← Back to Docs
Recipe

OCR + Text Cleaner

Extract clean, structured recipe text from screenshots, photos, or raw OCR output. Strip ads, fix line breaks, and normalize ingredients.

Input

Paste raw OCR text or upload a screenshot. The cleaner handles common noise: page headers, social share buttons, "Jump to Recipe" links, and repeated whitespace.

Output

Returns a JSON object with title, ingredients array, steps array, prep time, and yield. Ready for import into meal planners or grocery apps.

Example

POST /api/clean-recipe
Content-Type: multipart/form-data

Response:
{
  "title": "Classic Margherita Pizza",
  "ingredients": [
    "2 cups all-purpose flour",
    "1 tsp salt"
  ],
  "steps": [...],
  "prep_time": "15 min",
  "yield": "2 servings"
}