-
Notifications
You must be signed in to change notification settings - Fork 45
Home
❗Check documentation for API v3
Plant.id offers a machine learning-based plant identification service. Once you have obtained the API key, you can try out our sample code to speed up the development of your implementation.
Plant.id provides JSON REST API.
Basic usage of the API is via POST and GET requests with Content-Type application/json
.
The POST requests typically contain your data in the following format:
{
"str_param": "value",
"int_param": 123,
...
}
In this format, images are decoded as Base64 encoded strings.
Alternatively, you can send your data with Content-Type multipart/form-data
. In this case, images will be sent as files and your parameters as JSON strings in the data
field. Even if you don't want to send any additional parameters, the data
field must be present as empty JSON {}.
For authentication you will need a personal api_key
(get one here).
The easiest way how to authenticate is to include the Api-Key
header with your api_key
.
For other authentication methods see Authentication.
The result is in JSON format.
See our FAQ.
If you need help, contact us at support@mlapi.ai.