What is a token?

A token is a small piece of text, often part of a word, that language models read and write. In English one token is about four characters.

Definition

A token is a small piece of text, often part of a word, that language models read and write. In English one token is about four characters.

How it works on TokenRex

Every request is billed by the input tokens you send and the output tokens the model writes.

The usage field of each response shows the exact counts.

Get API keyCost calculatorDocs

Related