Content moderation
Analyze image
Analyze image with your Moderation API project
POST
/
moderate
/
image
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
url
string
requiredThe URL of the image you want to analyze.
doNotStore
boolean
Do not store the content. The content won't enter the review queue
authorId
string
The author of the content.
contextId
string
For example the ID of a chat room or a post
metadata
object
Any metadata you want to store with the content
Response
200 - application/json
status
string
requiredSuccess if the request was successful
request
object
requiredInformation about the request
flagged
boolean
requiredWhether the content was flagged by any models
labels
object[]
requiredThe confidence of all labels
contentId
string
The ID of the content. Only returned if the content was stored.
texts
string[]
The texts found in the image, if the image text model is enabled
Was this page helpful?