Serverless.Token
Detokenization
By giving a list of tokens, generate a detokenized output text string.
post/serverless/v1/detokenize
Request
- Base URLhttps://api.friendli.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Friendli-Teamstring nullable
ID of team to run requests as (optional parameter).
Request body
Example request
{
"model": "meta-llama/Llama-3.1-8B-Instruct",
"tokens": [
128000,
3923,
374,
1803,
1413,
15592,
30
]
}Response
Successfully detokenized the tokens.
Changes
No recorded changes to this operation across all 1 revision of this API.