Hugging Face · Example Payload

Hugging Face Imageclassification Example

Hugging Face Imageclassification Example is an example object payload from Hugging Face, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "imageClassification",
  "method": "POST",
  "path": "/models/{model_id}/image-classification",
  "summary": "Image Classification Inference",
  "requestExamples": [
    {
      "contentType": "application/octet-stream",
      "name": "ImageclassificationRequestExample",
      "example": "example_value"
    },
    {
      "contentType": "application/json",
      "name": "ImageclassificationRequestExample",
      "example": {
        "inputs": "example_value"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Imageclassification200Example",
      "example": [
        {
          "label": "Example Title",
          "score": 42.5
        }
      ]
    }
  ]
}