POST
/
agents
/
{agentId}
/
analyze
/
image
curl --request POST \
  --url https://gardianai.com/api/v1/agents/{agentId}/analyze/image \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Tabby_cat_with_visible_nictitating_membrane.jpg/800px-Tabby_cat_with_visible_nictitating_membrane.jpg"
}'
{
  "agent_id": "66683c760ea17e1c58a16649",
  "agent_name": "Image NSFW",
  "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Tabby_cat_with_visible_nictitating_membrane.jpg/800px-Tabby_cat_with_visible_nictitating_membrane.jpg",
  "label": "neutral",
  "score": 1,
  "label_scores": {
    "gore": 0,
    "nudity": 0,
    "suggestive": 0,
    "alcohol": 0,
    "violence": 0,
    "hate": 0,
    "smoking": 0,
    "drugs": 0,
    "weapon": 0,
    "neutral": 1
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

agentId
string
required

The ID of the agent to send feedback to.

Body

application/json
image_url
string

Url of the image you'd like to analyze

Example:

"https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Tabby_cat_with_visible_nictitating_membrane.jpg/800px-Tabby_cat_with_visible_nictitating_membrane.jpg"

Response

200 - application/json
Successful response
agent_id
string
Example:

"66683c760ea17e1c58a16649"

agent_name
string
Example:

"Image NSFW"

image_url
string
Example:

"https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Tabby_cat_with_visible_nictitating_membrane.jpg/800px-Tabby_cat_with_visible_nictitating_membrane.jpg"

label
string
Example:

"neutral"

score
number
Example:

1

label_scores
object
Example:
{
  "gore": 0,
  "nudity": 0,
  "suggestive": 0,
  "alcohol": 0,
  "violence": 0,
  "hate": 0,
  "smoking": 0,
  "drugs": 0,
  "weapon": 0,
  "neutral": 1
}