Vomit Analysis
Upload a photo of your pet's vomit to analyze its composition, color, and texture for potential health indicators.
POST
/v1/vomit-analysisImage5 Credits per call
| Field | Type | Required | Description |
|---|---|---|---|
image | string | Yes | Base64-encoded image data (JPG/PNG/WEBP, max 4MB) |
animalType | string | No | Animal type for analysis (e.g. dog, cat, rabbit, hamster) |
language | string | No | Response language code (en, zh, es) |
API Playground
Language
Request Example
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"
}'Response Example
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
}
}