Hugging Face · Example Payload

Hugging Face Zeroshotclassification Example

Hugging Face Zeroshotclassification 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": "zeroShotClassification",
  "method": "POST",
  "path": "/models/{model_id}/zero-shot-classification",
  "summary": "Zero-shot Classification Inference",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "ZeroshotclassificationRequestExample",
      "example": {
        "inputs": "example_value",
        "parameters": {
          "candidate_labels": [
            "example_value"
          ],
          "multi_label": true
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Zeroshotclassification200Example",
      "example": {
        "sequence": "example_value",
        "labels": [
          "example_value"
        ],
        "scores": [
          42.5
        ]
      }
    }
  ]
}