Plant problem diagnosis
POST /v1/plant/diagnose · $0.01 a call
Send a close-up of a damaged leaf or plant. A vision model names the visible problems from a fixed list of pests, diseases and care issues, with severity and the evidence it saw. Each problem comes with the same treatment steps every time, plus when to ask a nursery for help. A genus guess, when given, is checked against a botanical name registry.
For plant care apps, garden apps, plant shops.
Request
Send the photo as image (multipart), image_base64 or image_url, as described in the overview. These fields go alongside it:
| Field | Type | Description |
|---|---|---|
context | string, up to 500 characters | What the user has noticed, e.g. "watered twice a week, spots started after repotting". |
Photo tips. Fill the frame with the damaged leaf, top side and underside if you can, in daylight and in focus. Include the stem or soil if the problem starts there.
curl https://truelens.keronlabs.com/v1/plant/diagnose \
-H "Authorization: Bearer $TRUELENS_KEY" \
-F image=@plant.jpg \
-F context="example"
Response
| Field | Description |
|---|---|
summary | One line, e.g. "Moderate powdery mildew, plus mild physical damage". |
is_plant | false when there is no plant in the photo; the other fields are then empty. |
status | healthy, minor_issues, unhealthy or severe, from the worst problem found. |
issues[] | type, label, severity (mild, moderate, severe), evidence, and treatment steps. Worst first. |
genus_guess | The plant's genus when it can be told from the photo, or null. |
get_help | When to show the plant to a nursery or plant clinic. |
photo_tip | How to take a better photo, or null. |
Example
Output of this API’s own code on a sample photo. Values will differ for your photos.
{
"metadata": {
"id": "req_9cf4da08fe7f40dab71a",
"engine": "plant/diagnose",
"status": "success",
"cached": false,
"credits_used": 1,
"created_at": "2026-10-19T09:30:00.000Z",
"processing_ms": 3400
},
"summary": "Moderate powdery mildew, plus mild physical damage",
"is_plant": true,
"status": "unhealthy",
"issues": [
{
"type": "powdery_mildew",
"label": "Powdery mildew",
"severity": "moderate",
"evidence": "White powdery patches spread across the upper leaf surface.",
"treatment": [
"Remove the worst affected leaves.",
"Improve air flow and avoid crowding plants.",
"Spray with a fungicide labelled for powdery mildew, or a potassium bicarbonate solution."
]
},
{
"type": "physical_damage",
"label": "Physical damage",
"severity": "mild",
"evidence": "A small tear near the leaf tip.",
"treatment": [
"Trim torn or broken leaves if they bother you; the plant will grow new ones.",
"Move it out of high-traffic spots."
]
}
],
"genus_guess": "Acer",
"get_help": "Start treatment now and keep the plant away from others. If it is no better in a week or two, show a local nursery or garden center.",
"photo_tip": null
}