curl --request POST \
--url https://api.example.com/api/parseRecipeFromImage \
--header 'Content-Type: application/json' \
--data '{}'{
"success": true,
"title": "<string>",
"ingredients": [
{
"groupName": "<string>",
"ingredients": [
{
"amount": "<string>",
"units": "<string>",
"ingredient": "<string>"
}
]
}
],
"instructions": [
{}
],
"summary": "<string>",
"author": "<string>",
"cuisine": [
{}
],
"servings": "<string>",
"prepTimeMinutes": 123,
"cookTimeMinutes": 123,
"totalTimeMinutes": 123,
"imageData": "<string>",
"imageFilename": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retryAfter": 123
}
}Extract recipe data from uploaded images using AI vision models
curl --request POST \
--url https://api.example.com/api/parseRecipeFromImage \
--header 'Content-Type: application/json' \
--data '{}'{
"success": true,
"title": "<string>",
"ingredients": [
{
"groupName": "<string>",
"ingredients": [
{
"amount": "<string>",
"units": "<string>",
"ingredient": "<string>"
}
]
}
],
"instructions": [
{}
],
"summary": "<string>",
"author": "<string>",
"cuisine": [
{}
],
"servings": "<string>",
"prepTimeMinutes": 123,
"cookTimeMinutes": 123,
"totalTimeMinutes": 123,
"imageData": "<string>",
"imageFilename": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retryAfter": 123
}
}/api/parseRecipeFromImage endpoint accepts image uploads (recipe cards, cookbook pages, screenshots) and uses AI vision models to extract recipe data from the image.
Supported formats: JPG, PNG, WEBP, GIF
Maximum file size: 10MB
multipart/form-data requests with an image file.
true for successful responsesgroupName and an array of ingredients.Show Ingredient Group Structure
["Italian", "Mediterranean"])false for error responsescurl -X POST https://your-domain.com/api/parseRecipeFromImage \
-H "Content-Type: multipart/form-data" \
-F "[email protected]"
{
"success": true,
"title": "Grandma's Chocolate Cake",
"ingredients": [
{
"groupName": "For the cake",
"ingredients": [
{
"amount": "2",
"units": "cups",
"ingredient": "all-purpose flour"
},
{
"amount": "1 3/4",
"units": "cups",
"ingredient": "granulated sugar"
}
]
}
],
"instructions": [
"Preheat oven to 350°F.",
"Mix flour and sugar in a large bowl.",
"Bake for 30-35 minutes."
],
"summary": "A classic chocolate cake recipe with rich, moist layers.",
"author": "Grandma Smith",
"servings": "12 servings",
"prepTimeMinutes": 20,
"cookTimeMinutes": 35,
"totalTimeMinutes": 55,
"imageData": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"imageFilename": "recipe-card.jpg"
}
{
"success": false,
"error": {
"code": "ERR_INVALID_URL",
"message": "Invalid file type. Please upload a JPG, PNG, WEBP, or GIF image."
}
}