curl --request POST \
--url https://external.nebius.tensormesh.ai/tokenize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-User-Id: <x-user-id>' \
--data '
{
"model": "openai-gpt-oss-120b-gpu-type-h200x1_8nic16",
"prompt": "Hello!"
}
'{
"count": 123,
"max_model_len": 123,
"tokens": [
123
],
"token_strs": [
"<string>"
]
}Tokenize text with the selected Tensormesh On-Demand host.
curl --request POST \
--url https://external.nebius.tensormesh.ai/tokenize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-User-Id: <x-user-id>' \
--data '
{
"model": "openai-gpt-oss-120b-gpu-type-h200x1_8nic16",
"prompt": "Hello!"
}
'{
"count": 123,
"max_model_len": 123,
"tokens": [
123
],
"token_strs": [
"<string>"
]
}Use this page when you want token ids for a specific routed On-Demand 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>X-User-Id: <uuid>Bearer authentication using your On-Demand API key. Format: Bearer <API_KEY>
Tensormesh user id used for attribution and routing.
Was this page helpful?