耳道分析
上传宠物耳朵照片,分析感染、耳螨、耳垢堆积等耳部状况。
POST
/api/v1/ear-analysis图片5 每次调用额度
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
image | string | 是 | Base64 编码的图片数据(JPG/PNG/WEBP,最大 3MB) |
animalType | string | 否 | 分析的动物类型(如:dog、cat、rabbit、hamster) |
language | string | 否 | 响应语言代码(zh) |
API Playground
语言
请求示例
bash
curl -X POST https://poomi.cn/api/v1/ear-analysis \
-H "Authorization: Bearer pk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"image": "base64_encoded_data",
"animalType": "dog",
"language": "zh"
}'响应字段
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
summary | string | 是 | A detailed 4 to 6 sentence owner-facing summary that explains the key visible observations, the overall interpretation, any important limitation, and the main takeaway for the user |
severity | string | 是 | Overall severity of the visible ear findings, written in the requested response language |
condition | string | 是 | Owner-facing label for the visible ear condition |
home_care | array<string> | 是 | Practical at-home care or monitoring steps with enough context to be useful. Must contain at least 3 items, even when the findings look normal. |
vet_advice | array<string> | 是 | Veterinary follow-up guidance with concrete triggers, urgency, or timeframes when supported by the visible findings. Use an empty array when no clinic follow-up is supported. |
响应 Schema
json-schema
{
"type": "object",
"required": [
"severity",
"condition",
"summary",
"home_care",
"vet_advice"
],
"properties": {
"summary": {
"type": "string",
"description": "A detailed 4 to 6 sentence owner-facing summary that explains the key visible observations, the overall interpretation, any important limitation, and the main takeaway for the user"
},
"severity": {
"type": "string",
"description": "Overall severity of the visible ear findings, written in the requested response language"
},
"condition": {
"type": "string",
"description": "Owner-facing label for the visible ear condition"
},
"home_care": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 3,
"description": "Practical at-home care or monitoring steps with enough context to be useful. Must contain at least 3 items, even when the findings look normal."
},
"vet_advice": {
"type": "array",
"items": {
"type": "string"
},
"description": "Veterinary follow-up guidance with concrete triggers, urgency, or timeframes when supported by the visible findings. Use an empty array when no clinic follow-up is supported."
}
},
"additionalProperties": false
}响应示例
json200 OK
{
"success": true,
"request_id": "req_xxxxxxxx",
"data": {
"summary": "The visible ear entrance looks pink and reasonably clean in this image. I do not see obvious redness, discharge, swelling, heavy debris, or crusting in the visible portion. That visible appearance is most consistent with an ear that is within normal limits if the pet is not scratching, head shaking, or reacting painfully. The photo does not show the deep canal or eardrum, so it cannot rule out deeper irritation, but the part that can be assessed looks reassuring.",
"severity": "normal",
"condition": "appears within normal limits",
"home_care": [
"Do a quick visual ear check once a week for redness, discharge, or unusual smell",
"Gently dry the outer ear after baths or swimming to prevent moisture buildup",
"Watch for head shaking, scratching at the ears, or new odor and recheck if any appear"
],
"vet_advice": []
}
}