Skip to content

Verify ​

Checks an image for Content Credentials, the C2PA standard's signed record of how a file was made. The same check runs on civitai.com/safety/is-this-ai.

The file is read and discarded: it is not stored, and nothing about it is logged. The check runs offline: nothing the file points to is fetched.

Check an image ​

POST /api/v1/verify

Auth: Mixed. Works without a token. Signed-in callers get a per-user budget.

Body: the raw image file (JPEG, PNG, WebP, AVIF or HEIC), up to 10 MiB, sent with a Content-Length header. Not multipart.

Rate limit: 10 requests a minute per IP when anonymous. Signed in: 30 a minute per user, and 60 a minute per IP across all signed-in users on it.

Response ​

json
{
  "credentials": "valid",
  "signer": {
    "issuer": "C2PA Test Signing Cert",
    "commonName": "C2PA Signer",
    "signedAt": "2024-08-06T21:53:37+00:00"
  },
  "generator": "make_test_images",
  "aiGenerated": false
}
FieldTypeDescription
credentialsvalid | invalid | none | unreadablevalid: unchanged since it was signed. invalid: the credentials don't check out (changed after signing, or the signature itself isn't valid, such as an expired certificate). none: no Content Credentials (most sites remove them when they resize or re-save a file). unreadable: credentials are present but damaged, stored remotely, or in a form the reader doesn't support.
signerobjectWith valid and invalid. The certificate's issuer, commonName and signing time, as written in the file. A name is not proof of who signed: certificates aren't checked against a trust list.
generatorstringThe tool the manifest says created the file, when given.
aiGeneratedbooleantrue when the manifest declares an AI source type (IPTC trainedAlgorithmicMedia or compositeWithTrainedAlgorithmicMedia). false means not declared, not "not AI".

The response doesn't yet say whether an image was made on Civitai. That comes when Civitai's own signing and invisible watermark go live.

Errors ​

Error bodies use the shared envelope: {"error": "<message>", "message": "<message>", "code": "<code>"}.

StatuscodemessageCause
400BAD_REQUESTThe file is emptyContent-Length: 0.
400BAD_REQUESTUpload body was incompleteFewer bytes arrived than Content-Length declared.
411BAD_REQUESTSend the file with a Content-Length headerNo Content-Length (for example, a chunked upload).
413BAD_REQUESTFile too largeOver 10 MiB.
415BAD_REQUESTSend a JPEG, PNG, WebP, AVIF or HEIC imageNot a supported image type.
429TOO_MANY_REQUESTSRate limit exceeded, please retry shortly.Over the rate limit; see Retry-After.
503TOO_MANY_REQUESTSBusy, please retry shortly.Too many checks in progress on the server; see Retry-After.
503INTERNAL_SERVER_ERRORThe check is unavailable, please retry shortly.The reader failed or timed out; nothing is known about the file. See Retry-After.

Example ​

bash
curl -X POST --data-binary @photo.jpg -H "Content-Type: image/jpeg" \
  https://civitai.com/api/v1/verify

Civitai Developer Documentation