Detokenize
This endpoint takes tokens using byte-pair encoding and returns their text representation. To learn more about tokenization and byte pair encoding, see the tokens page.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
X-Client-Name
The name of the project that is making the request.
Request
This endpoint expects an object.
tokens
The list of tokens to be detokenized.
model
An optional parameter to provide the model name. This will ensure that the detokenization is done by the tokenizer used by that model.
Response
OK
text
A string representing the list of tokens.
meta