---
title: "Tokenize"
method: POST
path: "/tokenize"
tags: ["chat"]
---

# Tokenize

`POST /tokenize`

Tokenize a string and return the tokenized output as a set of input_ids and strings -- this only works
if the worker implements the tokenize endpoint.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/transformerlab/apis/transformerlab-api.md) · [All operations](https://skmtc.net/transformerlab/apis/transformerlab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/transformerlab/transformerlab-api/revisions/44da5f6e34ca/schema)
