Import a recipe from a photo
import_recipe_from_imageImports a recipe from a photo (cookbook page, screenshot or handwritten card) given a fetchable http(s) imageUrl, restructures it to Chop It's recipe standard and saves it to the user's library. A needs_review result carries a preview and the issues found, for correction with save_recipe. If the image can't be fetched, the recipe text can be imported as a caption with import_recipe_from_url. Imports that need paid processing require confirmPaidImport after the user agrees. Limited per conversation. Requires a linked Chop It account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional extra context, e.g. the dish name or text the photo cuts off. | |
| imageUrl | Yes | http(s) URL of a photo of the recipe — a cookbook page, screenshot, or handwritten card. Must be a fetchable link; if the fetch fails, fall back to import_recipe_from_url with the recipe text as caption. | |
| requestId | No | Generate a unique ID before starting a new import. Reuse it until that import completes, including confirmation and recovery; a later new import needs a new ID. | |
| confirmPaidImport | No | True only after the user explicitly approves 1 credit once the 10 free weekly imports are exhausted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| appUrl | No | ||
| status | Yes | ||
| keepUrl | No | ||
| message | Yes | ||
| recipeId | No | ||
| failedRules | No | ||
| recipePreview | No |