AI APIs & Tokens
OpenAI API
GPT-4o, o1, and DALL-E 3 API with function calling, structured output, and batch inference discounts.
The smallest unit of text a language model processes: on average, one token is roughly 3/4 of an English word. It is the billing unit of LLM APIs.
A token is the chunk of text a language model (LLM) actually sees. Before processing any sentence, the model splits it into tokens using a *tokenizer*: common words become a single token, long or rare words split into several pieces, and punctuation and spaces count too. Non-English languages usually produce slightly more tokens per word, because tokenizers are trained mostly on English text.
Tokens matter for two practical reasons:
Concrete example: the phrase "generative artificial intelligence" becomes around 4 to 6 tokens depending on the tokenizer. A 20-page contract can exceed 15,000 tokens, which determines whether it fits in the model's window and how much it costs to process.
AI APIs & Tokens
GPT-4o, o1, and DALL-E 3 API with function calling, structured output, and batch inference discounts.
AI Coding
Unified interface for every model: find the best models and prices for your prompts.
AI Coding
Open-source AI gateway that puts your full AI stack behind one OpenAI-compatible key: spend tracking, model routing, and self-hosting, with 140+ providers.