Poomi
APP

呕吐物分析

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

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

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"
  }'

响应字段

字段类型必填描述
colorstringObserved vomit color
summarystringA detailed 4 to 6 sentence owner-facing summary that explains the key visible observations, the overall interpretation, any important limitation, and the main takeaway for the user
severitystringOverall severity of the visible vomiting sample, written in the requested response language
home_carearray<string>Practical at-home care or monitoring steps with enough context to be useful. Must contain at least 3 items, even when the episode looks mild.
vet_advicearray<string>Veterinary follow-up guidance with concrete triggers, urgency, or timeframes when supported by the visible findings. Use an empty array when no clinic follow-up is supported.
vomit_typestringMost likely vomit category based on what is visible

响应 Schema

json-schema
{
  "type": "object",
  "required": [
    "severity",
    "vomit_type",
    "color",
    "summary",
    "home_care",
    "vet_advice"
  ],
  "properties": {
    "color": {
      "type": "string",
      "description": "Observed vomit color"
    },
    "summary": {
      "type": "string",
      "description": "A detailed 4 to 6 sentence owner-facing summary that explains the key visible observations, the overall interpretation, any important limitation, and the main takeaway for the user"
    },
    "severity": {
      "type": "string",
      "description": "Overall severity of the visible vomiting sample, written in the requested response language"
    },
    "home_care": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 3,
      "description": "Practical at-home care or monitoring steps with enough context to be useful. Must contain at least 3 items, even when the episode looks mild."
    },
    "vet_advice": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Veterinary follow-up guidance with concrete triggers, urgency, or timeframes when supported by the visible findings. Use an empty array when no clinic follow-up is supported."
    },
    "vomit_type": {
      "type": "string",
      "description": "Most likely vomit category based on what is visible"
    }
  },
  "additionalProperties": false
}

响应示例

json200 OK
{
  "success": true,
  "request_id": "req_xxxxxxxx",
  "data": {
    "color": "light tan",
    "summary": "This sample looks most consistent with a mild food regurgitation or vomit episode. The visible material appears light tan and food-like, without obvious blood, large amounts of bile, or a clearly concerning foreign object. A single mild episode can happen after eating too quickly, minor stomach upset, or a recent diet change, but the image alone cannot identify one definite cause. The most useful next step is to monitor whether this was isolated or becomes repeated, because pattern and behavior are more informative than one photo.",
    "severity": "mild",
    "home_care": [
      "Withhold food for 2-4 hours, then offer a small bland meal",
      "Provide small, frequent sips of fresh water to prevent dehydration",
      "Monitor for repeated vomiting, lethargy, pain, or trouble keeping water down over the next 24 hours"
    ],
    "vet_advice": [],
    "vomit_type": "food regurgitation"
  }
}
呕吐物分析 - Poomi Docs