Análisis de vómito
Sube una foto del vómito de tu mascota para analizar su composición, color y textura en busca de indicadores de salud.
POST
/api/v1/vomit-analysisImagen5 Creditos por llamada
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
image | string | Sí | Datos de imagen codificados en Base64 (JPG/PNG/WEBP, máx 3MB) |
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/vomit-analysis \
-H "Authorization: Bearer pk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"image": "base64_encoded_data",
"animalType": "dog",
"language": "es"
}'Campos de respuesta
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
severity | string | Sí | Overall severity of the visible vomiting sample |
vomit_type | string | Sí | Most likely vomit category based on what is visible |
color | string | Sí | Observed vomit color |
summary | string | Sí | A concise 2 to 4 sentence summary covering the key visible observations, the overall interpretation, and any important limitation |
home_care | array<string> | Sí | Practical at-home care or monitoring steps. MUST contain at least 2 items, even when the findings look normal — fall back to routine daily care or monitoring suggestions in that case. |
vet_advice | array<string> | Sí | When veterinary follow-up is appropriate based on the visible findings. Use an empty array when none are needed. |
Schema de respuesta
json-schema
{
"type": "object",
"properties": {
"severity": {
"type": "string",
"description": "Overall severity of the visible vomiting sample",
"enum": [
"mild",
"moderate",
"severe",
"inconclusive"
]
},
"vomit_type": {
"type": "string",
"description": "Most likely vomit category based on what is visible"
},
"color": {
"type": "string",
"description": "Observed vomit color"
},
"summary": {
"type": "string",
"description": "A concise 2 to 4 sentence summary covering the key visible observations, the overall interpretation, and any important limitation"
},
"home_care": {
"type": "array",
"description": "Practical at-home care or monitoring steps. MUST contain at least 2 items, even when the findings look normal — fall back to routine daily care or monitoring suggestions in that case.",
"items": {
"type": "string"
},
"minItems": 2
},
"vet_advice": {
"type": "array",
"description": "When veterinary follow-up is appropriate based on the visible findings. Use an empty array when none are needed.",
"items": {
"type": "string"
}
}
},
"required": [
"severity",
"vomit_type",
"color",
"summary",
"home_care",
"vet_advice"
],
"additionalProperties": false
}Ejemplo de respuesta
json200 OK
{
"success": true,
"request_id": "req_xxxxxxxx",
"data": {
"severity": "mild",
"vomit_type": "food regurgitation",
"color": "light tan",
"summary": "This sample looks most consistent with a mild food regurgitation or vomit episode. I do not see obvious blood, large amounts of bile, or a clearly concerning foreign object in the visible material. The image alone is not enough to identify a single definite cause.",
"home_care": [
"Withhold food for 2-4 hours, then offer a small bland meal",
"Provide small, frequent sips of fresh water to prevent dehydration",
"Monitor for repeated vomiting, lethargy, pain, or trouble keeping water down over the next 24 hours"
],
"vet_advice": []
}
}