
Detect AI-generated images from Midjourney, DALL-E, Stable Diffusion and 100+ generators. 98.3% accuracy with source attribution. Stop synthetic fraud.
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.
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.
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.
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.
Trinity uses an intelligent two-stage detection approach to optimize both speed and accuracy:
This approach maintains fast response times for clear-cut cases while providing thorough analysis for edge cases and hybrid images.
The Trinity model operates with a two-head classification architecture:
Identifies the specific AI generator with support for 100+ models. The classification returns one of the following values:
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.
The response includes a detection_mode field indicating which analysis method was used:
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).
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.
| 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 |
Trinity can identify images created by 25 different AI generation systems plus real/human images:
⚠️ Important Considerations:
This model provides probability scores, not definitive proof of AI generation.
Best Practice: Combine Trinity detection results with human review, metadata analysis, and contextual information for optimal content moderation outcomes.
Detects AI-generated images and identifies the generator (Midjourney, DALL-E, etc.)
image_urlstringRequiredURL of the image to check for AI generation
https://example.com/image.jpgAI generation detection with generator identification and optional per-patch analysis
ai_probabilityfloatProbability that image is AI-generated (0.0-1.0)
0.95is_ai_generatedbooleanTrue if probability exceeds 0.5
truesourcestringDetection method used
inferencetop_generatorobjectMost likely AI generator
{
"name": "midjourney",
"probability": 0.87
}namestringGenerator name
probabilityfloatConfidence (0.0-1.0)
generatorsarrayAll 24 generators ranked by probability
[
{
"name": "midjourney",
"probability": 0.87
},
{
"name": "dall_e",
"probability": 0.05
}
]c2pa_signerstringSigner if C2PA watermark was found
Adobe Photoshopdetection_modestringDetection mode used: single_crop (quick, high confidence) or multi_patch (detailed, for ambiguous cases)
single_croppatch_confidencesarrayPer-patch AI probabilities (only present when detection_mode is multi_patch)
[
{
"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
}
]{
"model": "ai-generated-image",
"image_url": "https://example.com/image.jpg"
}{
"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"
}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.Integrate AI-Generated Image Detection into your application today with our easy-to-use API.