Hugging Face · Example Payload

Hugging Face Textclassification Example

Hugging Face Textclassification 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": "textClassification",
  "method": "POST",
  "path": "/models/{model_id}/text-classification",
  "summary": "Text Classification Inference",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "TextclassificationRequestExample",
      "example": {
        "inputs": "example_value"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Textclassification200Example",
      "example": [
        [
          {
            "label": "Example Title",
            "score": 42.5
          }
        ]
      ]
    }
  ]
}