Emotion Analysis
Upload a photo of your pet to analyze their facial expression, body language, and emotional state.
POST
/v1/emotion-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/emotion-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": {
"emotion": "anxious",
"assessment": "Multiple concurrent stress signals indicate moderate anxiety. Whale eye shows the pet is monitoring a perceived threat while avoiding confrontation. Lip licking here is a self-soothing displacement behavior, not hunger. The partial tail tuck suggests discomfort but not full panic.",
"confidence": 0.78,
"suggestions": [
"Remove the pet from the stressor or remove the stressor",
"Speak in a calm, low tone — avoid high-pitched reassurance",
"Offer a safe retreat space (crate or quiet room)",
"Let the pet approach on its own terms, don't force interaction"
],
"body_language": [
"whale eye (showing whites of eyes)",
"lip licking",
"ears pinned back",
"lowered body posture"
]
}
}