Hugging Face · Example Payload

Hugging Face Tokenize Example

Hugging Face Tokenize 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": "tokenize",
  "method": "POST",
  "path": "/tokenize",
  "summary": "Tokenize Text",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "TokenizeRequestExample",
      "example": {
        "inputs": "example_value",
        "add_special_tokens": true
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Tokenize200Example",
      "example": [
        {
          "id": "abc123",
          "text": "example_value",
          "start": 10,
          "stop": 10,
          "special": true
        }
      ]
    }
  ]
}