Skip to main content
POST
Detokenize
When called with an API key, or a scoped JWT made from one, the key needs the inference scope (about scopes).

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null
x-api-key
string | null

Body

application/json
model
string
required

model name

Example:

"my-org/my-dedicated-llm"

tokens
integer[]

token ids to detokenize

Response

Successful Response

prompt
string
required

detokenized text