Tokenize text into token IDs using your Friendli Dedicated Endpoint. Useful for counting tokens and validating input length before inference.
ID of team to run requests as (optional parameter).
ID of target endpoint. If you want to send request to specific adapter, use the format "YOUR_ENDPOINT_ID:YOUR_ADAPTER_ROUTE". Otherwise, you can just use "YOUR_ENDPOINT_ID" alone.
"(endpoint-id)"
Input text prompt to tokenize.
"What is generative AI?"
Successfully tokenized the text.
A list of token IDs.