Dedicated.Token
Tokenization
By giving a text input, generate a tokenized output of token IDs.
post/dedicated/v1/tokenize
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": "(endpoint-id)",
"prompt": "What is generative AI?"
}Response
Successfully tokenized the text.
Changes
No recorded changes to this operation across all 1 revision of this API.