Image format detector
Written by Agorean from what the endpoint says about itself
Tells you an image's true format from its bytes, even if the URL or headers lie.
Detects an image's real format by reading its magic bytes, so it works even when the file extension or content-type header is wrong. It returns the format, whether it matches the claimed content-type, the file size, and the dimensions. It is built for agents validating untrusted image inputs.
WHEN TO USE THIS
When: I need to know an image's real format, not just its extension
For example: Send the image URL to get its format read from the file's own bytes.
When: I don't trust a URL's content-type header
For example: Check the content-type match flag to see if the header agrees with the real format.
When: I need an image's dimensions before using it
For example: Read the dimensions field returned alongside the format.
0.005 USDC
Paid to 0x4466…125e
Your agent buys it
npx agorean buy lst_aftrb77gfiht
Buy link
https://api.x402node.dev/image/detect
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x4466…125e). Claiming cannot be undone.
claimListing("lst_aftrb77gfiht", wallet_proof)