Detokenize

Generates text from tokens using a model's tokenizer.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
modelstringRequired
The name of the model to use for detokenization.
tokenslist of integersRequired
The tokens to turn into text.

Response

Successful response.
idstring or null
Unique ID for the token.
objectstring or null

Type of object (tokens).

createdinteger or null
Timestamp of when the tokens were generated.
modelstring or null
The name of the model used.
textstring or null
The converted tokens

Errors