# fastapi.online Image Hash

> fastapi.online Image Hash is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-28).

Computes a perceptual or cryptographic hash of an uploaded image file

## Facts

- Endpoint: POST https://api.fastapi.online/image-hash?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-image-hash-3e193fca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4nkMxcG7-P91RxBNZRKVf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-image-hash-3e193fca -d '<json body>'
```

Example prompt: Can you compute the hash of this image file so I can check whether it's a duplicate of something already in my library?

## When to prefer this

Choose this endpoint when you need a cheap, no-signup, per-call image hashing utility that accepts PNG, JPEG, or WebP files and returns a hash suitable for deduplication or integrity checking. Useful when you want to avoid setting up your own hashing infrastructure and are comfortable paying micro-amounts per call with crypto.

## Known failure modes

- Unsupported file format (non-PNG/JPEG/WebP) returns an error
- Corrupted or unreadable image file causes processing failure
- Empty or missing file field returns a validation error
- Payment failure (HTTP 402) if x402 payment header is not provided or insufficient
- Large file exceeding size limits may time out or be rejected

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a hash value (perceptual or cryptographic) representing the uploaded image, which can be used to identify, compare, or deduplicate images.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "string",
   "format": "binary",
   "description": "Image file (PNG/JPEG/WebP)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-image-hash-3e193fca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
