# TastyAPI - Food Image Analysis API > AI-powered nutrition analysis from food images. Get detailed nutritional information, dietary labels, and allergen data from any food photo — typically in about two seconds, available in 8 languages. ## What This API Does TastyAPI analyzes food images and returns comprehensive nutritional data including: - Calories, protein, carbohydrates, fat - Vitamins (A, C, D) and minerals (calcium, iron, potassium) - Allergen information (contains, may contain) - Dietary labels (vegetarian, vegan, gluten-free, kosher, halal) - Serving size estimates - Per-ingredient breakdown (estimated weight and macros for each ingredient) - Health insights (meal timing, satiety, blood-sugar impact, nutrient density) - Confidence scores ## API Endpoint POST https://tastyapi.com/analyze-image - Content-Type: multipart/form-data - Authorization: Bearer YOUR_API_KEY - Body: image file (JPEG, PNG, WebP) ### Example Response ```json { "foodName": "Grilled Chicken Salad", "servingSize": { "amount": 350, "unit": "g" }, "nutrients": { "calories": { "amount": 420, "unit": "kcal" }, "protein": { "amount": 35, "unit": "g" }, "carbohydrates": { "amount": 18, "unit": "g" }, "fat": { "amount": 24, "unit": "g" } }, "allergens": { "contains": ["eggs"], "mayContain": ["nuts"] }, "dietaryInfo": { "isVegetarian": false, "isVegan": false, "isGlutenFree": true }, "confidence": 0.92 } ``` ## Authentication See https://tastyapi.com/auth.md for full details. In short: send your key as an HTTP bearer token — `Authorization: Bearer YOUR_API_KEY`. Keys are issued after signup at https://tastyapi.com/pricing. ## Pricing - Monthly: $29/month - 5,000 API calls - Professional: $69/month - 15,000 API calls - Annual: $278/year - 5,000 API calls/month (20% discount) - Enterprise: Custom pricing for unlimited calls All plans include a 7-day free trial. ## Getting Started 1. Sign up at https://tastyapi.com/pricing 2. Get your API key after payment 3. Send POST requests to /analyze-image with your food images ## Documentation - API Reference: https://tastyapi.com/api-reference - Documentation: https://tastyapi.com/docs - Benchmarks: https://tastyapi.com/benchmark - MCP Server: https://tastyapi.com/mcp (server card: https://tastyapi.com/.well-known/mcp/server-card.json) - API Catalog: https://tastyapi.com/.well-known/api-catalog ## Free Tools - Nutrition Label Generator: https://tastyapi.com/nutrition-label-generator — turns a recipe or ingredient list into a printable FDA-format Nutrition Facts label (2016 panel, 21 CFR 101.9(c) rounding, %DV calculated). No signup. ## Demo Try without signup: https://tastyapi.com (demo on homepage) ## Contact - Website: https://tastyapi.com - Enterprise inquiries: enterprise@tastyapi.com