Rate image

Queues a content rating for an image and returns the task. The result is a single level, so this is the cheap check to run before publishing something generated.

POST/image/rate
AuthAPI keyorOAuth tokenHow to send it

Request body#

levelsobject[]required
≥ 2 items≤ 7 items
descriptionstringrequired
≥ 1 characters≤ 150 characters
valuestringrequired
≥ 1 characters≤ 24 characters
mode"custom"required
urlstringrequired

Response#

Image rating task created

dataobjectrequired
estimatedCoststringrequired

Estimated cost in USD reserved for this task. Failed tasks are not charged.

e.g. "0.0002"
taskIdstringrequired

Task ID

e.g. "tsk_01KE7XWWEQ4MCGWKBQKJ1G47RP"

Errors#

A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.