DELAPARRA
Index
Color
NL
Category: Core glossary

Token

Explained by Updated

What is Token?

Token: A string that represents a credential or identity. Access tokens (short-lived) and refresh tokens (long-lived) are used in OAuth flows. In AI/NLP, a token is a unit of text (roughly a word or subword) that a language model processes. A token is a string that stands for something else. In security, it represents a credential or an identity: an API token, a session token, or OAuth access and refresh tokens. Whoever holds the token gets the access it grants.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Token

How is Token used in practice?

Access tokens are usually short-lived, minutes to hours, and refresh tokens are used to get new ones without logging in again. Treat every token like a password: send it only over HTTPS, keep it out of URLs and logs, and store it securely.

What should you keep in mind with Token?

In AI and language models, token means something else: a small piece of text, roughly a word or part of a word. Models read and produce text as tokens, and both their limits and their pricing are measured in them. A thousand tokens is roughly 750 English words.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with T

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.