Skip to main content
POST
https://serverless.tensormesh.ai
/
detokenize
Detokenize Tokens
curl --request POST \
  --url https://serverless.tensormesh.ai/detokenize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "openai/gpt-oss-20b",
  "tokens": [
    15496,
    0
  ]
}
'
{
  "prompt": "Hello!"
}
Use this page when you want to turn token ids back into text for a specific serverless model.
  • Auth: Authorization: Bearer <API_KEY>
  • Host: https://serverless.tensormesh.ai
  • Model: pass a serverless model name in the JSON request body

Authorizations

Authorization
string
header
required

Bearer authentication using your serverless API key. Format: Bearer <API_KEY>

Body

application/json
model
string
required

Serverless model name to use.

Example:

"openai/gpt-oss-20b"

tokens
integer[]
required

Response

Successful Response

prompt
string
Example:

"Hello!"