Get Started
A Complete Example
Showing how to use the AI or Not API to analyze an image
Assuming,
- You followed the setup guide; and,
- You have an image file named
image.jpeg
that is less than 10mb in the current working directory
you can use the following example to analyze an image in python.
which produces the following response,
Translating this response to human terms,
- The
id
is the unique identifier for this API invocation. - The image is likely to be AI generated
- The image is of high quality (no excessive blur or compression artifacts)
- The image has no NSFW content
- The image was likely generated by OpenAI 4o
Please note that the particular confidence scores may vary over time as we update our models. However, in general, the higher the confidence, the more likely the given class was detected.
For all available endpoints, see the API Reference.