Truvane
Docs

API Documentation

Truvane Image is a single-endpoint API: send a photo, get back a verdict. This page covers authentication, the request/response shape, error handling, and the official SDKs.

Quickstart

Provide exactly one of image (a file) or image_url (a public HTTPS URL) and you’ll get a verdict back in the same call.

from truvane import TruvaneClient
client = TruvaneClient(api_key="tv_live_••••")
# from a public URL
result = client.verify(
image_url="https://cdn.merchant.com/returns/8841.jpg",
)
# or upload a file directly
result = client.verify(image=open("damage.jpg", "rb"))
print(result.authentic, result.confidence)
# result.authentic False
# result.confidence 0.94
# result.manipulation_type "ai_inpainting"
Copied to clipboard

Authentication

Every request needs an API key sent as the X-API-Key header. Keys aren’t self-serve yet, get one from your Truvane contact at hello@truvane.ai.

Endpoint

MethodPOST
Path/api/v1/verify
Content typemultipart/form-data
BodyExactly one of image (file upload) or image_url (public HTTPS URL)

Response fields

FieldTypeDescription
submission_idstringIdentifier for this verification call
authenticbooleanWhether the photo passed as genuine
confidencenumberConfidence score, 0 to 1
manipulation_typestring | nullBest-guess manipulation category, if flagged

Errors

StatusMeaningPython / Node exception
401 / 403Invalid, missing, or disabled API keyTruvaneAuthError
413 / 422Bad image, unsupported format, or bad image_urlTruvaneValidationError
429Too many requests / quota exceededTruvaneRateLimitError
OtherUnexpected API errorTruvaneAPIError

SDKs

Official clients for Python and Node.js wrap the endpoint above. Neither is published to a package registry yet, install from source until then:

  • Python — pip install truvane Coming soon. Until then: github.com/metezem/truvane-python
  • Node.js — npm install truvane Coming soon. Until then: github.com/metezem/truvane-node
  • No SDK required, the endpoint is a plain HTTP call, see the REST tab above.

Questions

Reach us at hello@truvane.ai.