Using Artifacts in Session Checks
Include images in your session check using theartifact content part type. You can either send an image inline or reference a previously checked artifact.
Note that you’re going to be charged for every inline artifact as if it was an independent API call to artifact check.
Inline Image
Send the image as an inline artifact in the request. White Circle analyzes the image together with the text:mime_type is optional — the image format is automatically detected from the content bytes.Reference a Pre-checked Artifact
If you’ve already checked an image via Artifact Check, you can reference it by ID. White Circle uses the existing result and includes the image as context for the text evaluation — without re-checking it. If your entire API request contains only this reference to artifact without any new content at all, you will not be charged. By internal ID:If multiple artifacts share the same
external_artifact_id, White Circle uses the most recently created one in the same deployment.Content and ID Combinations
The artifact content part supports different combinations ofcontent, internal_artifact_id, and external_artifact_id:
Only
kind: "image" is supported for inline artifacts in session checks. For video or website content, use the Artifact Check endpoint and reference the result by ID.Combining Text and Images
A single message can contain text and multiple images:Only the last message in the
messages array is evaluated for policy violations. Images in earlier messages serve only as context.Supported Formats
Maximum file size: 20 MB.
Response
When an image violates a policy, theflagged_source array includes "image":
Inline Artifact in Response
When you send an inline artifact content part, the session response includes the artifact details. The artifact embedded in the response follows this structure:Best Practices
Include text context with images
Include text context with images
When moderating images, include any accompanying text. Context matters — an image might be acceptable in one context but violate policies in another.
Pre-check then reference for efficiency
Pre-check then reference for efficiency
For workflows where the same image appears in multiple sessions, check it once via Artifact Check, then reference it by
internal_artifact_id in later session checks. White Circle reuses the existing result and includes the image as context for text evaluation.Moderate AI-generated images
Moderate AI-generated images
If your application generates images, run them through White Circle before displaying them to users:
