2 2
3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.
4 4
5Use the Content Provenance API to check whether an image or audio file contains5Use the Content Provenance API to check whether an image, audio file, or PDF
6supported OpenAI provenance signals. Send a file to6contains supported OpenAI provenance signals. Send a file to
7`POST /v1/content_provenance_checks` to receive the completed verification7`POST /v1/content_provenance_checks` to receive the completed verification
8results in the same response. Use these signals in content review,8results in the same response. Use these signals in content review,
9fact-checking, labeling, and trust and safety workflows.9fact-checking, labeling, and trust and safety workflows.
33 33
34| Signal | Applies to | What it checks |34| Signal | Applies to | What it checks |
35| ------------------------ | ---------------- | ------------------------------------------------ |35| ------------------------ | ---------------- | ------------------------------------------------ |
36| C2PA Content Credentials | Images | Signed metadata with issuer and AI-use details |36| C2PA Content Credentials | Images and PDFs | Signed metadata with issuer and AI-use details |
37| SynthID | Images and audio | A watermark embedded directly in supported media |37| SynthID | Images and audio | A watermark embedded directly in supported media |
38 38
39C2PA metadata provides more context about a file's origin. Editing, converting,39C2PA metadata provides more context about a file's origin. Editing, converting,
40or sharing a file can remove its metadata. A SynthID watermark is part of the40or sharing a file can remove its metadata. A SynthID watermark is part of the
41image or audio itself and may survive some transformations.41image or audio itself and may survive some transformations.
42 42
43Supported PDF exports from ChatGPT and the Responses API include embedded C2PA
44metadata. These exports can include PDFs you upload and download again without
45changing their contents. Upload the exported PDF to the Content Provenance API
46to check its metadata.
47
43The API checks for supported OpenAI signals. It isn't a general-purpose AI48The API checks for supported OpenAI signals. It isn't a general-purpose AI
44detector and doesn't identify content generated by every AI system. Visible49detector and doesn't identify content generated by every AI system. Visible
45watermarks and labels are separate from the provenance signals checked by the50watermarks and labels are separate from the provenance signals checked by the
47 52
48## Verify a file53## Verify a file
49 54
50Send an image or audio file as the `file` field with the OpenAI SDK. The SDK55Send an image, audio file, or PDF as the `file` field with the OpenAI SDK. The
51builds the multipart request and reads your API key from the `OPENAI_API_KEY`56SDK builds the multipart request and reads your API key from the
52environment variable:57`OPENAI_API_KEY` environment variable:
53 58
54Verify an image59Verify an image
55 60
158 -F "file=@./example.opus;type=audio/ogg"163 -F "file=@./example.opus;type=audio/ogg"
159```164```
160 165
166To verify a PDF with the same command, use the path to your PDF and set the
167`file` part's media type to `application/pdf`.
168
161The response contains the completed result. For example, an image returns:169The response contains the completed result. For example, an image returns:
162 170
163```json171```json
185 193
186The `object` field identifies the response, and `created_at` is the check's194The `object` field identifies the response, and `created_at` is the check's
187creation time as a Unix timestamp in seconds. The entries in `results` depend on195creation time as a Unix timestamp in seconds. The entries in `results` depend on
188the uploaded file: images include C2PA and SynthID results, and audio includes a196the uploaded file. Images include C2PA and SynthID results, audio includes a
189SynthID result. The API omits checks that don't apply instead of returning197SynthID result, and PDFs include a C2PA result. The API omits checks that don't
190`not_detected`.198apply instead of returning `not_detected`.
191 199
192The API completes verification before it returns. You don't need to create a200The API completes verification before it returns. You don't need to create a
193background job, poll another endpoint, or upload the file to the Files API.201background job, poll another endpoint, or upload the file to the Files API.
200 208
201## Understand verification results209## Understand verification results
202 210
203Read each applicable entry in `results` independently. Image results include211Read each applicable entry in `results` independently. The response doesn't
204C2PA and SynthID entries, while audio results include a SynthID entry. The212include a top-level `outcome`.
205response doesn't include a top-level `outcome`.
206 213
207### C2PA results214### C2PA results
208 215
209A C2PA result describes the state of an image's Content Credentials:216A C2PA result describes the state of the Content Credentials in an image or PDF.
217This example shows an image result.
210 218
211```json219```json
212{220{
221 229
222Use the fields as follows:230Use the fields as follows:
223 231
224- `outcome` indicates whether OpenAI-issued AI-generation credentials were232- `outcome` indicates whether a supported OpenAI C2PA signal was `detected`
225 `detected` or `not_detected`.233 or `not_detected`.
226- `validation_state` indicates whether the manifest is `trusted`, `valid`,234- `validation_state` indicates whether the manifest is `trusted`, `valid`,
227 `invalid`, or `not_present`.235 `invalid`, or `not_present`.
228- `issuer` identifies the manifest issuer when that information is available.236- `issuer` identifies the manifest issuer when that information is available.
229- `model` identifies the generating model when that information is available.237- `model` identifies the model recorded in the provenance signal, when
238 available.
230- `generated_at` identifies the content's generation time when that information239- `generated_at` identifies the content's generation time when that information
231 is available.240 is available.
232 241
233The outcome is `detected` only when a `trusted` or `valid` manifest identifies242For images, the outcome is `detected` only when a `trusted` or `valid` manifest
234OpenAI as its issuer and includes an AI-generation action. A third-party243identifies OpenAI as its issuer and includes an AI-generation action. A third-party
235manifest, a manifest without an AI-generation action, an `invalid` manifest, or244manifest, a manifest without an AI-generation action, an `invalid` manifest, or
236a `not_present` manifest produces `not_detected`. The `issuer` and245a `not_present` manifest produces `not_detected`. The `issuer` and
237`validation_state` can still describe a manifest even when the outcome is246`validation_state` can still describe a manifest even when the outcome is
238`not_detected`.247`not_detected`.
239 248
249For PDFs, a `detected` outcome requires a `trusted` OpenAI manifest with a
250supported provenance signal. A [trusted manifest](https://spec.c2pa.org/specifications/specifications/2.5/specs/C2PA_Specification.html#_trusted_manifest)
251meets the requirements for a [valid manifest](https://spec.c2pa.org/specifications/specifications/2.5/specs/C2PA_Specification.html#_valid_manifest)
252and has a signer certificate chain that leads to an accepted trust anchor.
253A detected PDF signal indicates that an OpenAI tool processed the file. The
254signal alone cannot establish whether, or to what extent, the tool generated
255or edited its contents.
256
240Don't treat an `invalid` manifest as reliable provenance evidence. A257Don't treat an `invalid` manifest as reliable provenance evidence. A
241`not_present` result means the image has no available C2PA manifest.258`not_present` result means the file has no available C2PA manifest.
242 259
243### SynthID results260### SynthID results
244 261
266 283
267- **Images:** PNG, JPEG, WebP, and GIF.284- **Images:** PNG, JPEG, WebP, and GIF.
268- **Audio:** MP3, Opus, AAC, FLAC, WAV, and PCM.285- **Audio:** MP3, Opus, AAC, FLAC, WAV, and PCM.
286- **Documents:** PDF.
269 287
270Limit each uploaded file to 50 MiB. Audio must be 60 seconds or shorter after288Limit each uploaded file to 50 MiB. Audio must be 60 seconds or shorter after
271decoding.289decoding.
272 290
273Set the uploaded `file` part's media type. Use `image/gif` for a GIF, `image/png`291Set the uploaded `file` part's media type. Use `image/gif` for a GIF, `image/png`
274for a PNG image, or `audio/ogg` for Opus audio. Don't add a separate `type` field or292for a PNG image, `audio/ogg` for Opus audio, or `application/pdf` for a PDF.
275manually set the `multipart/form-data` request header. The `curl` `-F` option293Don't add a separate `type` field or manually set the `multipart/form-data`
276sets the request content type and multipart boundary. Send one file per request.294request header. The `curl` `-F` option sets the request content type and multipart
295boundary. Send one file per request.
277 296
278## Rate limits297<a id="rate-limits"></a>
298
299## Rate limits and Zero Data Retention (ZDR)
300
301The public Content Provenance API is eligible for
302[Zero Data Retention (ZDR)](https://developers.openai.com/api/docs/guides/your-data#zero-data-retention)
303when you verify images or audio at default rate limits.
279 304
280Strict rate limits help protect the API against misuse. Organizations can305Strict rate limits help protect the API against misuse. Organizations can
281[apply for higher limits](https://openai.com/form/content-provenance-api/), and306[apply for higher limits](https://openai.com/form/content-provenance-api/), and
282OpenAI reviews each application on a case-by-case basis.307OpenAI reviews each application on a case-by-case basis.
283 308
309Access with higher rate limits is ineligible for ZDR.
310
284If the API returns `429 rate_limit_exceeded`, reduce your request rate and311If the API returns `429 rate_limit_exceeded`, reduce your request rate and
285honor the `Retry-After` header when present. See312honor the `Retry-After` header when present. See
286[rate limits](https://developers.openai.com/api/docs/guides/rate-limits) for general retry guidance.313[rate limits](https://developers.openai.com/api/docs/guides/rate-limits) for general retry guidance.
293 history of a file.320 history of a file.
294- Treat `not_detected` as an absence of detected evidence, not proof that the321- Treat `not_detected` as an absence of detected evidence, not proof that the
295 content is human-created or wasn't generated with OpenAI.322 content is human-created or wasn't generated with OpenAI.
296- Check the C2PA issuer before attributing an image to a particular provider.323- Check the C2PA issuer before attributing an image or PDF to a particular
324 provider.
297- Verify the original file when possible. Compression, cropping, screenshots,325- Verify the original file when possible. Compression, cropping, screenshots,
298 metadata removal, and format conversions can erase or weaken a signal.326 metadata removal, and format conversions can erase or weaken a signal.
299- Account for the originating product, model, file format, and creation date.327- Account for the originating product, model, file format, and creation date.