Detector24
AI-Generated Image Detection
ImageAI Generation and Editing

AI-Generated Image Detection

Detect AI-generated images from Midjourney, DALL-E, Stable Diffusion and 100+ generators. 98.3% accuracy with source attribution. Stop synthetic fraud.

Accuracy
98.3%
Avg. Speed
180ms
Per Request
$0.0075
API Name
ai-generated-image

Bynn Trinity AI-Generated Image Detection

The Trinity AI-Generated Image Detection model analyzes images to determine whether they were entirely created by artificial intelligence or represent genuine human-created content. This model serves as a critical defense against the potential misuse of synthetic and AI-generated imagery.

The Challenge

AI image generation has evolved from producing obviously artificial outputs to creating photorealistic images indistinguishable from genuine photographs. Tools like Stable Diffusion, Midjourney, and DALL-E are now accessible to anyone, enabling mass production of synthetic imagery within seconds.

This technological leap has enabled new forms of fraud and manipulation. Fake insurance claims use AI-generated damage photos. Misinformation campaigns spread fabricated images of events that never occurred. Scammers create synthetic identity documents and profile pictures. Romance fraudsters generate fake personas. The line between real and artificial has become dangerously blurred, eroding trust in visual evidence across every domain—from journalism to legal proceedings to personal relationships.

Model Overview

When provided with an image input, Trinity's detection system identifies whether the content is AI-generated and, if so, which specific image synthesis model created it. The model was trained on an extensive dataset containing millions of artificially generated images alongside human-created content including photographs, digital and traditional artwork, illustrations, and memes sourced from across the web.

The model returns both a binary determination of whether an image is AI-generated and detailed attribution identifying the source generator. Confidence scores accompany each classification, enabling straightforward interpretation of results. Achieving 98.3% accuracy in binary classification and 89.4% accuracy in generator identification, Trinity represents a robust solution for synthetic content detection.

How It Works

Trinity analyzes the pixel-level visual content of images to identify distinctive patterns and artifacts characteristic of AI generation. The analysis examines only the actual image data, completely independent of metadata, making it resilient to EXIF data manipulation or metadata falsification.

The model incorporates recognition capabilities for images produced by the most prominent AI generation systems currently deployed, including Stable Diffusion (versions 1.5, 2.1, 3, XL, and Cascade), Flux, Midjourney, DALL-E, Adobe Firefly, OpenAI GPT Image, Imagen, Kandinsky, Lumina, BigGAN, and various other generators. Support for additional models continues to expand as new generation technologies become available.

Two-Stage Multi-Patch Detection

Trinity uses an intelligent two-stage detection approach to optimize both speed and accuracy:

  • Stage 1 - Quick Assessment: A center-crop (518x518) analysis provides rapid initial classification. High-confidence results (AI probability >0.80 or <0.20) are returned immediately.
  • Stage 2 - Multi-Patch Analysis: For ambiguous cases (0.20-0.80 probability), the model analyzes 5 patches across the image (center + 4 corners) using max-pooling aggregation. This ensures AI content is detected even when not centered.

This approach maintains fast response times for clear-cut cases while providing thorough analysis for edge cases and hybrid images.

Response Structure

The Trinity model operates with a two-head classification architecture:

Generation Classification Head

  • ai_generated: Image was created by an AI system
  • real: Image is human-created or photographed

Source Classification Head

Identifies the specific AI generator with support for 100+ models. The classification returns one of the following values:

  • Stable Diffusion family: stablediffusion (1.5), stablediffusion2.1, stablediffusion3, stablediffusionxl, stablecascade, ssd-1b, sdxlinpaint, stablediffusioninpaint
  • Flux variants: flux, flux2
  • OpenAI/DALL-E: dalle, 4o (GPT-4o), gptimage1_5
  • Google models: imagen, imagen4, gemini, gemini3
  • Midjourney and commercial tools: midjourney, adobefirefly, leonardo, recraft, bingimagecreator, krea, imagineart
  • Open source generators: deepfloyd (IF), kandinsky, kolors, lumina (luminagpt), pixart, glide, amused, wuerstchen, hunyuan, qwen
  • Advanced models: sana, emu3, omnigen, cosmos, janus, dmd2, switti, ideogram, titan, var
  • GANs and diffusion variants: gan (BigGAN), vqdiffusion (VQDM), lcm, cogview
  • Specialized generators: grok, grokimagine, wan, infinity, higgsfield, reve, seedream, mai, lucid, zimage, bria, blip3o, ovis, longcat, bagel, ray3, hidream, dreamid, scail, meta, vibe
  • Special classifications:
  • real: Human-created content (not AI-generated)
  • other_image_generators: AI-generated by a model not specifically identified
  • inconclusive: Unable to determine with confidence

Confidence scores for both classification heads are provided, with the generation head delivering a binary confidence score and the source head providing probability distributions across all supported generators. When the model cannot definitively identify a specific source generator but determines the image is AI-generated, it may return other_image_generators or inconclusive under the source classification.

Detection Mode

The response includes a detection_mode field indicating which analysis method was used:

  • single_crop: Standard center-crop analysis (used for high-confidence results)
  • multi_patch: Extended analysis examining 5 image regions (used for ambiguous cases)

When multi-patch mode is used, a patch_confidences array is included showing AI probability for each analyzed region (center, top_left, top_right, bottom_left, bottom_right).

C2PA Metadata Detection

Where applicable, Trinity extracts and returns an image's C2PA metadata, which provides provenance information about the image's origin, including which generative model created it. When an image contains C2PA metadata, this field will be populated in the response. Since image metadata can be removed or falsified, we recommend evaluating the complete API response holistically rather than relying solely on C2PA data.

Performance Metrics

Metric Score
Binary Accuracy (AI vs Real) 98.3%
Generator Classification 89.4%
Average Response Time 180ms
Max File Size 20MB
Supported Formats GIF, JPEG, JPG, PNG, WebP

Supported AI Generators

Trinity can identify images created by 25 different AI generation systems plus real/human images:

High Performance Generators (F1 > 0.90)

  • BigGAN (F1: 0.99)
  • Real/Human Images (F1: 0.98)
  • IF (Deep Floyd) (F1: 0.95)
  • VQDM (F1: 0.94)
  • Flux.1 (F1: 0.94)
  • SD Cascade (F1: 0.93)
  • Kandinsky (F1: 0.92)
  • Lumina (F1: 0.91)
  • SDXL (F1: 0.91)
  • Stable Diffusion 3 (F1: 0.91)
  • Mobius (F1: 0.90)

Supported Generators

  • Stable Diffusion 1.5
  • Stable Diffusion 2.1
  • Stable Diffusion 3
  • SDXL
  • SD Cascade
  • SSD-1B
  • Flux.1
  • JuggernautXL
  • Mobius
  • Kandinsky
  • Kolors
  • Lumina
  • PixArt Alpha
  • IF (Deep Floyd)
  • BigGAN
  • ADM
  • Glide
  • Midjourney
  • OpenAI GPT Image
  • VQDM
  • Wukong
  • Nano Banana
  • Z_Image
  • Realistic Stock Photo
  • Real/Human Images

Use Cases

  • Misinformation Prevention: Tag AI-generated imagery to limit the spread of fake news and manipulated visual content
  • Content Moderation: Implement stricter moderation rules on AI-generated content to maintain platform authenticity
  • Fraud Detection: Identify potential fraud including fake IDs, synthetic profiles, and fabricated insurance claims
  • Spam Prevention: Detect and limit AI-generated spam content across platforms
  • Policy Enforcement: Enforce platform policies that restrict or ban AI-generated imagery
  • Content Authenticity: Verify the authenticity of user-submitted images for high-stakes applications

Known Limitations

⚠️ Important Considerations:

  • Generator Coverage: The model is trained on AI generators available up to January 2026. Newer generators released after this date may not be detected accurately.
  • Image Processing Effects: Heavy editing, compression, or significant cropping may reduce detection accuracy.
  • Image Preprocessing: Works best with images 518x518 or larger. Images are analyzed using 518x518 pixel patches to preserve frequency artifacts critical for detection.
  • Hybrid Content: Images that combine real and AI-generated elements benefit from multi-patch analysis, which examines multiple regions to detect AI content anywhere in the image. However, very localized AI edits may still be challenging to detect.

Disclaimers and Ethical Considerations

This model provides probability scores, not definitive proof of AI generation.

Key Points to Consider

  • One Signal Among Many: Use this model as part of a broader content moderation strategy, not as the sole decision factor
  • False Positives/Negatives: Like all AI detection systems, this model may occasionally misclassify images. Human review is recommended for high-stakes decisions
  • Regular Updates Needed: As new AI generation technologies emerge, the model should be updated to maintain effectiveness
  • Not Legal Evidence: Detection results should not be used as sole legal evidence. They indicate probability, not certainty
  • Context Matters: Consider the context, source, and other available information when making decisions based on detection results
  • Responsible Use: Should be used as a screening tool only, not for definitive determinations

Best Practice: Combine Trinity detection results with human review, metadata analysis, and contextual information for optimal content moderation outcomes.

API Reference

Version
2601
Jan 3, 2026
Avg. Processing
180ms
Per Request
$0.0075
Required Plan
trial

Input Parameters

Detects AI-generated images and identifies the generator (Midjourney, DALL-E, etc.)

image_urlstringRequired

URL of the image to check for AI generation

Example:
https://example.com/image.jpg

Response Fields

AI generation detection with generator identification and optional per-patch analysis

ai_probabilityfloat

Probability that image is AI-generated (0.0-1.0)

Example:
0.95
is_ai_generatedboolean

True if probability exceeds 0.5

Example:
true
sourcestring

Detection method used

Example:
inference
top_generatorobject

Most likely AI generator

Example:
{ "name": "midjourney", "probability": 0.87 }
Object Properties:
namestring

Generator name

probabilityfloat

Confidence (0.0-1.0)

generatorsarray

All 24 generators ranked by probability

Example:
[ { "name": "midjourney", "probability": 0.87 }, { "name": "dall_e", "probability": 0.05 } ]
c2pa_signerstring

Signer if C2PA watermark was found

Example:
Adobe Photoshop
detection_modestring

Detection mode used: single_crop (quick, high confidence) or multi_patch (detailed, for ambiguous cases)

Example:
single_crop
patch_confidencesarray

Per-patch AI probabilities (only present when detection_mode is multi_patch)

Example:
[ { "region": "top_left", "ai_probability": 0.23 }, { "region": "top_right", "ai_probability": 0.91 }, { "region": "bottom_left", "ai_probability": 0.18 }, { "region": "bottom_right", "ai_probability": 0.15 } ]

Complete Example

Request

{
  "model": "ai-generated-image",
  "image_url": "https://example.com/image.jpg"
}

Response

{
  "inference_id": "inf_abc123def456ghi789",
  "model_id": "ai_generated_image",
  "model_name": "AI-Generated Image Detection",
  "moderation_type": "image",
  "status": "completed",
  "result": {
    "ai_probability": 0.95,
    "is_ai_generated": true,
    "source": "inference",
    "top_generator": {
      "name": "midjourney",
      "probability": 0.87
    },
    "generators": [
      {
        "name": "flux_1",
        "probability": 0
      },
      {
        "name": "if",
        "probability": 0
      },
      {
        "name": "juggernaut_xl",
        "probability": 0
      },
      {
        "name": "kandinsky",
        "probability": 0
      },
      {
        "name": "kolors",
        "probability": 0
      }
    ],
    "c2pa_signer": null,
    "detection_mode": "single_crop",
    "patch_confidences": null
  },
  "response_time_ms": 180,
  "created_at": "2026-02-07T09:07:18Z",
  "completed_at": "2026-02-07T09:07:18Z"
}

Additional Information

Rate Limiting
If we throttle your request, you will receive a 429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.
Supported Formats
gif, jpeg, jpg, png, webp
Maximum File Size
20MB
Tags:aisyntheticgenerated

Ready to get started?

Integrate AI-Generated Image Detection into your application today with our easy-to-use API.