falconsai-nsfw-image-detection
falconsai-nsfw-image-detection
Version: 1
Hugging FaceLast updated January 2026
Falconsai/nsfw_image_detection powered by Hugging Face API

Hugging Face API

Send Request

You can use cURL or any REST Client to send a request to the Azure ML endpoint with your Azure ML token.
curl <AZUREML_ENDPOINT_URL> \
    -X POST \
    -H "Authorization: Bearer <AZUREML_TOKEN>" \
    -H "Content-Type: application/json" \
    -d '{"inputs":"http://images.cocodataset.org/val2017/000000077595.jpg","parameters":{"function_to_apply":"sigmoid"}}'

Supported Parameters

  • inputs (string): The input image data as a base64-encoded string.
  • parameters (object, optional):
    • function_to_apply (any of sigmoid, softmax, none, optional): The function to apply to the model outputs in order to retrieve the scores.
    • top_k (int, optional): When specified, limits the output to the top K most probable classes.

Expected output

The image-classification Hugging Face API will generate a JSON with the keys label and score as follows:
  • label (str): The predicted class label out of the ones the model was trained with.
  • score (float): The probability for the predicted class.
Model Specifications
LicenseApache-2.0
Last UpdatedJanuary 2026
ProviderHugging Face