Recipes

Performs NSFW level detection and content safety classification on media content.

post/v2/consumer/recipes/mediaRating

Request

  • The document declares no server URL.
  • Auth: none required

Query parameters

experimentalboolean
allowMatureContentboolean
whatifboolean
ephemeralboolean
tier'paid' | 'free'

How a workflow is paid for.

Request body

imagestring source-image nullable

The image to rate. URLs are imported into blob storage before the job is queued so the worker can pre-fetch it.

includeAgeClassificationboolean required

Include conditional age-classification details for R-or-higher content in the results. The top-level CSAM signal is evaluated regardless of this setting.

includeFaceRecognitionboolean required

Include face recognition and similarity analysis in the results

includeAIRecognitionboolean required

Include AI vs real image detection in the results

includeAnimeRecognitionboolean required

Include anime vs real image detection in the results

includeHumanRecognitionboolean required

Include human vs non-human detection in the results

includeBodyAgeClassificationboolean required

Include body-only apparent-age and child-risk classification in the results.

includeAnimeBodyAgeClassificationboolean required

Include anime apparent-age and child-risk classification in the results.

includeJointAgeClassificationboolean required

Include joint face-and-body apparent-age classification for photo and anime content.

Response

OK

nsfwLevel'pg' | 'pg13' | 'r' | 'x' | 'xxx' | 'na' required
blockedReasonstring nullable
isBlockedboolean required
labelsstring[] nullable

Detected content labels (e.g., "Animal", "Child", etc.).

csamboolean nullable

Potential CSAM signal from conditional age classification on R-or-higher content. Null means the image was below R or age classification failed.

Changes