Single-species identification
General information
Single-species identification returns a top-list of probable plant species, presented in decreasing order of confidence score.
Confidence scores are between 0 and 1.
Up to 5 input images can be sent in a single request.
Only images with image/jpeg or image/png mimetype are allowed, and total POST size (sum of input image files sizes) cannot exceed 50 MB.
One request identifies one plant. When multiple images are submitted at once, they must represent the same individual.
Routes list
/v2/identify/{project}- Identify a plant species from one or more pictures
See OpenAPI doc for details.
Input
Project
Also known as "floras" or "referentials", "projects" are lists of species-level taxa, related to a geographical area or a theme.
Set project to any value from /v2/projects to get more accurate results, or to all by default.
If you don't know which project to use, set project to all to get results from the most relevant project.
Set type to legacy only if you explicitely wish to run identification on a legacy project.
Identification requests on legacy projects are performed by an outdated model and will be dropped in the near future! You should always use KT projects instead.
See this page for details about projects and projects types.
Images and organs
images are binary files, in JPG or PNG format. You can submit up to 5 images representing the same plant individual. Use the parameter multiple times to do so.
Whenever possible, send images with POST requests to improve processing speed.
We recommend to use jpeg compression with a quality of 90%.
Submitted images are resized to 1280 pixels on the smaller side, but smaller submitted images are never upscaled.
Identification performance is not guaranteed for images smaller than 800x800px.
Set organs to values among the following to indicate which plant organ is represented by each input image:
leafflowerfruitbark
Use value auto to let AI detect the organ based on the image.
Number of values for organs must match number of input images. Each organ is associated to an image in the order given.
If multiple images represent the same organ, use the same value multiple times.
Omitting parameter organs sets every organ to auto, in a shortest way.
Sending several images of the same individual plant (up to 5) does improve the results, even if they are of the same type of view. Some organs are more informative than others, in the following order (best first): flower, fruit, leaf, entire plant, bark. It is thus often more efficient to submit several images of the most informative parts (e.g. several flowers and/or fruits) than trying to be exhaustive in the coverage of the different organs.
The bark view in particular is challenging. It is useful when there is no other visible part of the plant (e.g. deciduous trees during winter) but it leads to significantly lower accuracy than other views. Leaves are also often much less discriminative than flowers and fruits.
Nevertheless, the AI automatically assigns different weights to the different organs in accordance with those properties, so you can submit images of different organs without worrying too much about it.
Rejection
Images identified as non-plants (landscape, human being, object…) are rejected, and lead to a "404 Species not found" error. Should an inappropriate image be submitted, it will most likely be filtered by this mechanism.
Set no-reject to true to still get the (less probable) plant species predictions when the most probable result is not a plant.
When no plant species is predicted at all, even with a very low score, a "404 Species not found" error is returned regardless of no-reject.
Results related parameters
Setting include-related-images to true will return a list of most-similar images for each probable species.
See Using images to learn about images reuse and citation.
Set nb-results to an integer >= 1 to restrict size of output list of probable species. Fewer results improve response time.
Set detailed to true to include extra identification results such as results per family and results per genus. Those extra results are returned under otherResults field. This increases response time.
Other input parameters
Set lang to a language code returned by /v2/languages route to get contextualized results, such as common names.
Ouput format
Output is of the following form.
{
"query": {},
"predictedOrgans": [],
"bestMatch": "Ajuga genevensis L.",
"results": [],
"otherResults": [],
"version": "2025-01-17 (7.3)",
"remainingIdentificationRequests": 498,
(…)
}
query summarizes input.
results is the list of predicted probable plant species, by order of confidence score decreasing.
otherResults contains optional extra identification results, such as the list of predicted probable plant genera and families.
bestMatch is a shortcut to the complete species name of the top 1 probable species identified.
predictedOrgans gives the top1 of predicted organs for each input image.
version gives the version of the AI engine that processed your request.
Each species in results may have a gbif.id property. Use it with the GBIF species API to get more data about the species, for example its vernacular names: https://api.gbif.org/v1/species/3189863/vernacularNames.
remainingIdentificationRequests informs you about your quota consumption for the current day.
Identification model
The identification model is updated approximately every two months, following a principle of non-regression. The version output field tells which model processed a request.
Non-regression is measured in terms of several indicators: accuracy, number of species recognized, respect of an acceptable response time, respect of an acceptable energy consumption, memory usage, etc. Accuracy is obtained by testing the model on a set of private datasets of different nature, from the easiest (e.g. common species from various families) to the most difficult (e.g. very similar species of complex and/or data deficient genera).
cURL examples
POST /v2/identify
curl -X POST 'https://my-api.plantnet.org/v2/identify/all?api-key=YOUR_API_KEY' -F 'images=@/path/to/image.jpg'
{
"query": {
"project": "all",
"images": [
"5440fc78d0dd7c382ee5d743eafb68d9"
],
"organs": [
"auto"
],
"includeRelatedImages": false,
"noReject": false,
"type": null
},
"predictedOrgans": [
{
"image": "5440fc78d0dd7c382ee5d743eafb68d9",
"filename": "image.jpg",
"organ": "flower",
"score": 0.66656
}
],
"language": "en",
"preferedReferential": "k-world-flora",
"bestMatch": "Ajuga genevensis L.",
"results": [
{
"score": 0.90734,
"species": {
"scientificNameWithoutAuthor": "Ajuga genevensis",
"scientificNameAuthorship": "L.",
"genus": {
"scientificNameWithoutAuthor": "Ajuga",
"scientificNameAuthorship": "",
"scientificName": "Ajuga"
},
"family": {
"scientificNameWithoutAuthor": "Lamiaceae",
"scientificNameAuthorship": "",
"scientificName": "Lamiaceae"
},
"commonNames": [
"Blue bugleweed",
"Blue bugle",
"Geneva Bugle"
],
"scientificName": "Ajuga genevensis L."
},
"gbif": {
"id": "2927079"
},
"powo": {
"id": "444576-1"
}
},
{
"score": 0.05933,
"species": {
"scientificNameWithoutAuthor": "Ajuga orientalis",
"scientificNameAuthorship": "L.",
"genus": {
"scientificNameWithoutAuthor": "Ajuga",
"scientificNameAuthorship": "",
"scientificName": "Ajuga"
},
"family": {
"scientificNameWithoutAuthor": "Lamiaceae",
"scientificNameAuthorship": "",
"scientificName": "Lamiaceae"
},
"commonNames": [
"Eastern bugle"
],
"scientificName": "Ajuga orientalis L."
},
"gbif": {
"id": "7307097"
},
"powo": {
"id": "444639-1"
}
},
(…)
],
"version": "2025-01-17 (7.3)",
"remainingIdentificationRequests": 498
}