This guide walks you through sending an image to the /detect endpoint and reading the result.

Before you begin

You need:
1

Set your API key

Store your key in an environment variable so it stays out of your code:
2

Send your first request

Call POST /detect with your image:
Replace /path/to/image.jpg with the path to your own image.
3

Check the response

A successful request returns 200 OK with JSON like this:

Top-Level Fields

Output Fields

Predictions Object Fields

Optional parameters

Something went wrong?

See Errors for the full list.

Next steps

Authentication

Learn how API keys work and how to keep them secure.

Errors

Understand error responses and how to handle them.