Análisis emocional
Sube una foto de tu mascota para analizar su expresión facial, lenguaje corporal y estado emocional.
POST
/v1/emotion-analysisImagen5 Creditos por llamada
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
image | string | Sí | Datos de imagen codificados en Base64 (JPG/PNG/WEBP, máx 4MB) |
animalType | string | No | Tipo de animal para análisis (ej. dog, cat, rabbit, hamster) |
language | string | No | Código de idioma de respuesta (en, zh, es) |
API Playground
Idioma
Ejemplo de solicitud
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"
}'Ejemplo de respuesta
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"
]
}
}