呕吐物分析
上传宠物呕吐物照片,分析其成分、颜色和质地,检测潜在健康问题。
POST
/v1/vomit-analysis图片5 每次调用额度
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
image | string | 是 | Base64 编码的图片数据(JPG/PNG/WEBP,最大 4MB) |
animalType | string | 否 | 分析的动物类型(如:dog、cat、rabbit、hamster) |
language | string | 否 | 响应语言代码(en, zh, es) |
API Playground
语言
请求示例
bash
curl -X POST https://www.poomi.pet/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": "en"
}'响应示例
json200 OK
{
"success": true,
"request_id": "req_xxxxxxxx",
"data": {
"type": "bile",
"color": "bright yellow-green",
"contents": [
"bile fluid",
"traces of foam"
],
"severity": "moderate",
"assessment": "Yellow-green color indicates bile from the upper small intestine, not stomach contents. Absence of food points to bilious vomiting syndrome from prolonged fasting. The foamy texture shows gastric acid mixing with bile. If recurring more than once weekly, may signal chronic gastritis.",
"health_score": 5,
"possible_causes": [
"bilious vomiting syndrome",
"prolonged empty stomach",
"early pancreatitis"
],
"recommendations": [
"Offer a small meal now to neutralize stomach acid",
"Split daily food into 3-4 smaller meals",
"Add a late-night snack to prevent morning bile vomiting",
"Vet visit if this recurs more than twice a week"
],
"health_score_max": 10
}
}