SDK reference · Python SDK

prov.attest.media.screen

prov.attest.media.screen in Python SDK.

Signature

prov.attest.media.screen(**body: Any = …) -> Any

Parameters

**bodyAny

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
image_base64stringRequired
The image bytes, base64-encoded.

Returns

Any The synthetic-media score and its factors.

HTTP operation

POST /v1/attest/media/screen: Screen media

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/media/screen`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "image_base64": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAP" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.