Skip to main content
POST
/
v1
/
prompt-injection
/
image
/
multipart
Scan image for prompt injection (multipart upload)
curl --request POST \
  --url https://api.centure.ai/v1/prompt-injection/image/multipart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image=@example-file
{
  "is_safe": true,
  "categories": [
    {
      "code": "behavioral_override_low",
      "confidence": "medium"
    }
  ],
  "request_id": "<string>",
  "api_key_id": "<string>",
  "request_units": 123,
  "service_tier": "low"
}
This endpoint is the same as the Scan Image for Prompt Injection endpoint but that it allows you to send the image using a multipart http request

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
image
file
required

Image file upload. Supported formats: PNG, JPEG, GIF, WebP

Response

Scan result

is_safe
boolean
required
categories
object[]
required
request_id
string
required
api_key_id
string
required
request_units
number
required
service_tier
enum<string>
required
Available options:
low,
standard,
dedicated