Detect Image

Detect AI-generated content in images using Bittensor Subnet 34

Detect AI-generated images

post
/34/detect-image

Analyzes an image (provided as a URL or Base64 data) to determine if it was generated by AI. Returns a boolean prediction, confidence score, and similarity metrics. Uses models from Bittensor Subnet 34 with C2PA (Coalition for Content Provenance and Authenticity) analysis for enhanced authenticity verification.

The API automatically creates three optimized versions of each image:

  • Validator Image (256×256 center-cropped JPEG) - For AI detection

  • Service Image (up to 2000×2000px) - For similarity/moderation

  • C2PA Image (original format) - For content provenance verification

Authorizations
AuthorizationstringRequired

API key authentication for service-to-service communication.

Include your API key in the Authorization header:

Authorization: Bearer your-api-key
x-bitmind-application: oracle-api
Body
imagestringRequired

URL or Base64 encoded image.

  • For URLs: The image must be publicly accessible with a maximum download size of 512MB.
  • For Base64: The max size is 4MB. Supported MIME types: image/gif, image/jpeg, image/png, image/bmp, image/tiff.
richbooleanOptional

Enable rich response with detailed analysis

Default: false
sourcestringOptional

Source identifier for tracking (e.g., URL of the content)

Responses
post
/34/detect-image
POST /oracle/v1/34/detect-image HTTP/1.1
Host: api.bitmind.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 243

{
  "image": "https://images.pexels.com/photos/28957752/pexels-photo-28957752/free-photo-of-young-woman-enjoys-summer-with-fresh-oranges.jpeg?auto=compress&cs=tinysrgb&w=800&lazy=load",
  "rich": true,
  "source": "https://twitter.com/user/status/123456"
}
{
  "isAI": false,
  "confidence": 0.001132372178555594,
  "similarity": 0.10585000000000003,
  "processingTime": 1.234,
  "fqdn": "sn34"
}

Last updated