API Documentation
bitgrit Generative AI API

bitgrit Generative AI API Documentation

Getting Started

The Generative AI Fake Image Detection API can be used to programmatically detect the fake images (aka images created by Generative AI).

The underlying algorithm is developed via generative AI competition hosted on the bitgrit competition platform.

The following sections explain how to use the API.

How to get access to Generative AI API

  1. Sign up and send request for API Key.
  2. Receive an api key upon approval.
  3. Once your request is approved, you will receive the welcome email with an api key enclosed.
  4. Submit the image file to the API via an API tool of your choice (i.e. Postman).

Call GenerativeAI API from Postman

Call Generative AI from Postman
  1. Download Postman app. (https://www.postman.com/)
  2. Select 'POST' method.
  3. Type in API URL.
  4. In the “Authorization” pane, set 'Type' to 'API Key' and type in 'x-api-key' to Key and your API Key to 'Value' section.
Call Generative AI from Postman
  1. In 'Body' pane, choose 'binary' and select the file you want to upload.
  2. After you select the file, hit 'Send' button.

Request and Response

You can send images with the following extension: PNG, JPG, JPEG.

Response from the API is as follows:
{ "Prediction" (string): Confidence Score (numeric) } i.e. {'Real': 0.98}

Throttling limit

All API keys have the same level of throttling.

Usage Limit: 1000 calls per month.

Throttling Limit: 10 requests per second

API URL: https://www.bitgritapi.net/gen-ai-person

Disclaimer

The algorithm is developed by the dataset provided in the “Generative AI competition.” Although it contains a good amount of signals to develop a solid algorithm, it doesn’t cover the whole population (i.e. gender, ethnicity, race, etc.). Hence, the response from API doesn’t guarantee its accuracy.