Skip to main content
POST
/
api
/
v2
/
lhama
/
image
/
check
Verificar imagem NSFW
curl --request POST \
  --url https://api.lhama.ambarks.com/api/v2/lhama/image/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "data": {
    "id": "NL0HPOD85W",
    "status": "COMPLETE",
    "nsfw": true,
    "webhook": "NOT::AVAILABLE",
    "nsfw_data": {
      "porn": 123,
      "simple": 123,
      "sexy": 123,
      "hentai": 123,
      "cartoon": 123
    },
    "created_at": "2023-11-07T05:31:56Z",
    "error": true,
    "success": true
  }
}
filename
Post: /api/v2/lhama/image/check

Authorizations headers

Authorizations
string
required
Todas as requisições devem incluir sua chave de API no header Authorization usando o formato Bearer <ambarks-api-key>. Sem esse header a requisição será rejeitada

Body

image
file
required
Nesse campo você enviará o caminho ou arquivo que será analizado.Este é o único campo que deve se preocupar — o processamento total será feito em background, e não será retornado em webhook.

Respostas

Após sua requisição você poderá ter 2 tipos de respostas, 200 (Sucesso) ou 422 (Não processado)
{
    "data": {
        "id": "OL6CODX54X",
        "status": "COMPLETE",
        "nsfw": false,
        "webhook": "NOT::AVALIABLE",
        "nsfw_data": {
            "porn": 0.2319,
            "simple": 0.054,
            "sexy": 0.01,
            "hentai": 0.7037,
            "cartoon": 0.0003
        },
        "created_at": "2026-03-31T08:22:21.062Z",
        "error": false,
        "success": true
    }
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

Arquivo de imagem para análise (jpg, png, etc)

Response

Resultado da análise

data
object
required