curl --request POST \
--url https://serverless.tensormesh.ai/tokenize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-oss-20b",
"prompt": "Hello!"
}
'{
"count": 123,
"max_model_len": 123,
"tokens": [
123
],
"token_strs": [
"<string>"
]
}Tokenize text with the verified Tensormesh Serverless host.
curl --request POST \
--url https://serverless.tensormesh.ai/tokenize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-oss-20b",
"prompt": "Hello!"
}
'{
"count": 123,
"max_model_len": 123,
"tokens": [
123
],
"token_strs": [
"<string>"
]
}Use this page when you want token ids for a specific serverless model.Documentation Index
Fetch the complete documentation index at: https://docs.tensormesh.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <API_KEY>https://serverless.tensormesh.aiBearer authentication using your serverless API key. Format: Bearer <API_KEY>
Was this page helpful?