Overview
Veri computes a SHA-256 hash of every image submitted for detection. TheimageHash and cached fields are included in every response to support future caching infrastructure.
Caching is not yet active. The
cached field is currently always false. When caching is enabled, previously analyzed images will return instantly without consuming credits.How It Will Work
- When you submit an image, Veri computes a SHA-256 hash of the image data
- If a cached result exists for that hash, it will be returned immediately
- If not, the image is processed and the result is stored
Identifying Cached Results
Check thecached field in the response:
Image Hashing
The image hash is based on the raw image bytes. This means:- Same image, different format → Different hash → Analyzed separately
- Resized image → Different hash → Analyzed separately
- Identical bytes → Same hash → Will use cache when available
Best Practices
- Use original images - Don’t re-encode before sending to maximize future cache hits
- Store the image hash - Use
result.image_hashto track what you’ve analyzed