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 URLresult = client.verify( image_url="https://cdn.merchant.com/returns/8841.jpg",) # or upload a file directlyresult = 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
| Method | POST |
| Path | /api/v1/verify |
| Content type | multipart/form-data |
| Body | Exactly one of image (file upload) or image_url (public HTTPS URL) |
Response fields
| Field | Type | Description |
|---|---|---|
submission_id | string | Identifier for this verification call |
authentic | boolean | Whether the photo passed as genuine |
confidence | number | Confidence score, 0 to 1 |
manipulation_type | string | null | Best-guess manipulation category, if flagged |
Errors
| Status | Meaning | Python / Node exception |
|---|---|---|
| 401 / 403 | Invalid, missing, or disabled API key | TruvaneAuthError |
| 413 / 422 | Bad image, unsupported format, or bad image_url | TruvaneValidationError |
| 429 | Too many requests / quota exceeded | TruvaneRateLimitError |
| Other | Unexpected API error | TruvaneAPIError |
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 truvaneComing soon. Until then: github.com/metezem/truvane-python - Node.js —
npm install truvaneComing 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.