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.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
X-Client-Name
The name of the project that is making the request.
Request
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 headers
X-API-Warning
The name of the project that is making the request.
Response
OK
text
A string representing the list of tokens.
meta
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
498
Invalid Token Error
499
Client Closed Request Error
500
Internal Server Error
501
Not Implemented Error
503
Service Unavailable Error
504
Gateway Timeout Error