PhotoCheck API

PhotoCheck API in cURL

To check a photo for AI generation and faces in cURL, POST it to https://photocheckapi.com/api/v1/analyze with your key as a Bearer token. The response is JSON with ai.score, faces.count and the file's metadata. The example below is complete and runs as it is.

1. Set your key

shell
export PHOTOCHECK_API_KEY="pc_live_…"

No key yet? Leave the header out: you get 5 keyless calls a day to try it. Credit packs start at $4.95.

2. Check a photo

cURL
curl https://photocheckapi.com/api/v1/analyze \
  -H "Authorization: Bearer $PHOTOCHECK_API_KEY" \
  -F image=@photo.jpg

# From a URL instead of a file:
curl https://photocheckapi.com/api/v1/analyze \
  -H "Authorization: Bearer $PHOTOCHECK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://example.com/photo.jpg"}'

Notes

  • Leave out the Authorization header to try it: five keyless calls a day per IP.
  • Add -i to see X-Credits-Remaining and X-Request-Id in the response headers.
  • Swap /analyze for /faces, /ai-detect or /metadata to run one check. Each costs the same one credit.
  • Branch on error.type rather than the HTTP status alone; the full list is in the error reference.

Other languages

JavaScript (Node.js), Python, PHP, Go, Ruby, Java, C# (.NET), Rust.