Skip to main content
POST
Tokenize Text
Use this page when you want token ids for a specific serverless model.
  • Auth: Authorization: Bearer <API_KEY>
  • Host: https://serverless.tensormesh.ai
  • Model: pass a serverless model name in the JSON request body

Authorizations

Authorization
string
header
required

Bearer authentication using your serverless API key. Format: Bearer <API_KEY>

Body

application/json
model
string
required

Serverless model name to use.

Example:

"openai/gpt-oss-20b"

prompt
string
required
Example:

"Hello!"

messages
object[]

Response

Successful Response

count
integer
max_model_len
integer
tokens
integer[]
token_strs
string[]