Detokenization
Inference
Model APIs Detokenization
Convert a list of token IDs back into text.
POST
Detokenization
Convert a list of token IDs back into text.
To request successfully, it is mandatory to enter a Personal API Key (e.g. flp_XXX) value in the Bearer Token field.
Refer to the authentication section on our introduction page to learn how to acquire this variable and visit here to generate your API Key.
Authorizations
Headers
ID of team to run requests as (optional parameter).
Body
application/json
Code of the model to use. See available model list.
Example:
"zai-org/GLM-5.2"
A token sequence to detokenize.
Example:
[128000, 3923, 374, 1803, 1413, 15592, 30]
Response
Successfully detokenized the tokens.
Detokenized text output.
Last modified on June 9, 2026