GET /v1/image-hashImage Hash / Checksum
Image Utils lf-image-utils
Makes a fingerprint of an image so you can tell whether two files are the same. Supports md5, sha256, sha512, or perceptual. Returns hash, algorithm, and size_bytes.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Source image URL |
algorithm | string | No | md5, sha256, sha512, or perceptual |
Response Schema
hash (string): Computed hash
algorithm (string): Algorithm used
size_bytes (integer): Image size
cURL Example
curl 'https://lf-image-utils.laminarforge.dev/v1/image-hash?url=<url>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-image-utils.laminarforge.dev/v1/image-hash'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': '<url>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())