Poomi
APP

呕吐物分析

上传宠物呕吐物照片,分析其成分、颜色和质地,检测潜在健康问题。

POST/api/v1/vomit-analysis
图片5 每次调用额度
字段类型必填描述
imagestringBase64 编码的图片数据(JPG/PNG/WEBP,最大 3MB)
animalTypestring分析的动物类型(如:dog、cat、rabbit、hamster)
languagestring响应语言代码(zh, en)

API Playground

语言

请求示例

bash
curl -X POST https://poomi.cn/api/v1/vomit-analysis \
  -H "Authorization: Bearer pk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "base64_encoded_data",
    "animalType": "dog",
    "language": "zh"
  }'

响应字段

字段类型必填描述
severitystringOverall severity of the visible vomiting sample
vomit_typestringMost likely vomit category based on what is visible
colorstringObserved vomit color
summarystringA concise 2 to 4 sentence summary covering the key visible observations, the overall interpretation, and any important limitation
home_carearray<string>Practical at-home care or monitoring steps. Use an empty array when none are needed.
vet_advicearray<string>When veterinary follow-up is appropriate based on the visible findings. Use an empty array when none are needed.

响应 Schema

json-schema
{
  "type": "object",
  "properties": {
    "severity": {
      "type": "string",
      "description": "Overall severity of the visible vomiting sample",
      "enum": [
        "mild",
        "moderate",
        "severe",
        "inconclusive"
      ]
    },
    "vomit_type": {
      "type": "string",
      "description": "Most likely vomit category based on what is visible"
    },
    "color": {
      "type": "string",
      "description": "Observed vomit color"
    },
    "summary": {
      "type": "string",
      "description": "A concise 2 to 4 sentence summary covering the key visible observations, the overall interpretation, and any important limitation"
    },
    "home_care": {
      "type": "array",
      "description": "Practical at-home care or monitoring steps. Use an empty array when none are needed.",
      "items": {
        "type": "string"
      }
    },
    "vet_advice": {
      "type": "array",
      "description": "When veterinary follow-up is appropriate based on the visible findings. Use an empty array when none are needed.",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "severity",
    "vomit_type",
    "color",
    "summary",
    "home_care",
    "vet_advice"
  ],
  "additionalProperties": false
}

响应示例

json200 OK
{
  "success": true,
  "request_id": "req_xxxxxxxx",
  "data": {
    "severity": "mild",
    "vomit_type": "food regurgitation",
    "color": "light tan",
    "summary": "This sample looks most consistent with a mild food regurgitation or vomit episode. I do not see obvious blood, large amounts of bile, or a clearly concerning foreign object in the visible material. The image alone is not enough to identify a single definite cause.",
    "home_care": [
      "Monitor for repeated vomiting, lethargy, pain, or trouble keeping water down"
    ],
    "vet_advice": []
  }
}
呕吐物分析 - Poomi Docs