Tokenize text into token IDs using Friendli Serverless Endpoints. Useful for counting tokens before sending inference requests to the model.
ID of team to run requests as (optional parameter).
Code of the model to use. See available model list.
"meta-llama/Llama-3.1-8B-Instruct"
Input text prompt to tokenize.
"What is generative AI?"
Successfully tokenized the text.
A list of token IDs.