Poomi
APP

情绪分析

上传宠物照片,分析其面部表情、肢体语言和情绪状态。

POST/api/v1/emotion-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/emotion-analysis \
  -H "Authorization: Bearer pk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "base64_encoded_data",
    "animalType": "dog",
    "language": "zh"
  }'

响应字段

字段类型必填描述
emotionstringMost likely current emotional state
summarystringA detailed 4 to 6 sentence summary covering the visible cues, the emotional interpretation, confidence factors, and any important limitation
confidencenumberConfidence score from 0 to 1

响应 Schema

json-schema
{
  "type": "object",
  "required": [
    "emotion",
    "confidence",
    "summary"
  ],
  "properties": {
    "emotion": {
      "type": "string",
      "description": "Most likely current emotional state"
    },
    "summary": {
      "type": "string",
      "description": "A detailed 4 to 6 sentence summary covering the visible cues, the emotional interpretation, confidence factors, and any important limitation"
    },
    "confidence": {
      "type": "number",
      "maximum": 1,
      "minimum": 0,
      "description": "Confidence score from 0 to 1"
    }
  },
  "additionalProperties": false
}

响应示例

json200 OK
{
  "success": true,
  "request_id": "req_xxxxxxxx",
  "data": {
    "emotion": "relaxed",
    "summary": "The pet appears relaxed in this image. The visible posture looks loose and balanced rather than tense or defensive, and there are no strong signs of fear or distress in the visible frame. The calm body carriage supports a comfortable emotional reading, although a full-body view would make tail position and lower-body tension easier to confirm. If this matches the pet's normal behavior, the owner can treat the moment as low concern and continue observing for any sudden change in posture, ears, or facial tension.",
    "confidence": 0.84
  }
}
情绪分析 - Poomi Docs