← 返回
未分类 中文

trackup food analyze

analyze a food image with AISpark TrackUp production APIs, using AnalyzeWholeFood for full analysis and dedicated endpoints for macros, ingredients, health i...
使用 AISpark TrackUp 生产 API 分析食物图片,使用 AnalyzeWholeFood 进行完整分析,并通过专用端点获取宏量营养素、成分、健康等数据
trackup
未分类 clawhub v1.0.4 1 版本 100000 Key: 无需
★ 0
Stars
📥 432
下载
💾 0
安装
1
版本
#latest

概述

TrackUp Food Analyze

Use this skill to analyze a food image with:

  • https://deepeat.ai/step.aispark.api.API/AnalyzeWholeFood
  • https://deepeat.ai/step.aispark.api.API/ExtractFoodMacros
  • https://deepeat.ai/step.aispark.api.API/AnalyzeIngredients
  • https://deepeat.ai/step.aispark.api.API/GetHealthInsight
  • https://deepeat.ai/step.aispark.api.API/SearchFood

Rules

  • Always use POST
  • Always send Content-Type: application/json
  • Image analysis requests must contain image_url or image_base64
  • If both exist, image_base64 wins
  • image_base64 must be raw base64 without data:image/...;base64,
  • For complete food image analysis, call AnalyzeWholeFood directly
  • Only call a specialized image-analysis API when the user explicitly asks for one specific analysis dimension
  • Use ExtractFoodMacros for basic macro extraction
  • Use AnalyzeIngredients for deep ingredient and metabolic analysis
  • Use GetHealthInsight for professional health insight
  • SearchFood request body must contain keyword
  • SearchFood returns at most the first 20 results

API Selection

Choose the API based on the user's intent:

  1. Full food analysis: AnalyzeWholeFood
  2. Basic macro extraction only: ExtractFoodMacros
  3. Deep ingredient and metabolic analysis only: AnalyzeIngredients
  4. Professional health insight only: GetHealthInsight
  5. Keyword-based lookup without image analysis: SearchFood

Food Search

Use SearchFood when the user wants keyword-based food lookup instead of image analysis.

Request example:

curl --silent --show-error --location \
  'https://deepeat.ai/step.aispark.api.API/SearchFood' \
  --header 'Content-Type: application/json' \
  --data '{
    "keyword": "banana"
  }'

Expected response shape:

{
  "foods": [
    {
      "food_name": "Banana",
      "calories_cal": "89000",
      "weight_g": "100",
      "carbs_g": "22.8",
      "proteins_g": "1.1",
      "fats_g": "0.3",
      "display_gi": 51,
      "brand": ""
    }
  ],
  "pagination": {
    "size": 20,
    "page": 1,
    "total": 123
  }
}

Local Image Workflow

Convert local image to base64:

base64 < /absolute/path/to/image.jpg | tr -d '\n' > /tmp/food_image.b64

Build payload:

printf '{"image_base64":"' > /tmp/food_image.json
cat /tmp/food_image.b64 >> /tmp/food_image.json
printf '"}' >> /tmp/food_image.json

Call full food analysis directly:

curl --silent --show-error --location \
  'https://deepeat.ai/step.aispark.api.API/AnalyzeWholeFood' \
  --header 'Content-Type: application/json' \
  --data-binary @/tmp/food_image.json

Proxy Fix

If curl incorrectly tries a local proxy like 127.0.0.1:7890, retry with:

env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY curl ...

Response Fields

AnalyzeWholeFood:

  • food_name
  • total_weight_g
  • total_calories_kcal
  • carbs_g
  • proteins_g
  • fats_g
  • display_gi
  • dietary_fiber_g
  • sugar_g
  • ingredients[]
  • health_score
  • health_profile

ExtractFoodMacros:

  • food_name
  • total_weight_g
  • total_calories_kcal
  • carbs_g
  • proteins_g
  • fats_g

AnalyzeIngredients:

  • display_gi
  • dietary_fiber_g
  • sugar_g
  • ingredients[]

GetHealthInsight:

  • health_score
  • health_profile

SearchFood:

  • foods[]
  • pagination.page
  • pagination.size
  • pagination.total

health_score meaning:

  • 1-5 score generated by AI food evaluation
  • 5 is the highest score
  • Use it to help users make nutritionally informed choices

Output Rules

  • Keep numeric values exactly as returned
  • Do not invent missing fields
  • For complete image analysis, use AnalyzeWholeFood as the default API
  • For specialized analysis, use only the dedicated API that matches the user's request
  • For SearchFood, return the foods in API order and do not claim more than 20 items unless the response actually contains them

Common Errors

  • 400 invalid_request
  • 422 food_not_recognized
  • 422 barcode_only_result
  • 429 rate_limit_exceeded
  • 500 internal_error
  • 502 upstream_flow_error

版本历史

共 1 个版本

  • v1.0.4 当前
    2026-03-31 00:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

Stock Monitor

thirtyfang
全功能智能股票监控预警系统。支持成本百分比、均线金叉死叉、RSI超买超卖、成交量异动、跳空缺口、动态止盈等7大预警规则。符合中国投资者习惯(红涨绿跌)。
★ 101 📥 33,334
professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 204 📥 64,614
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 134 📥 43,266