<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Costs on Fernando Ruiz</title><link>https://www.fernandoux.com/tags/costs/</link><description>Recent content in Costs on Fernando Ruiz</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.fernandoux.com/tags/costs/index.xml" rel="self" type="application/rss+xml"/><item><title>Tokens: The Unit AI Thinks (and Bills) In</title><link>https://www.fernandoux.com/en/wiki/ai/tokens/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.fernandoux.com/en/wiki/ai/tokens/</guid><description>&lt;div class="info-panel"&gt;
 &lt;div class="info-header"&gt;
 &lt;span class="material-symbols-outlined info-panel-icon"&gt;info&lt;/span&gt;
 &lt;span class="info-panel-label"&gt;Quick Definition&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class="info-content"&gt;
 A &lt;strong&gt;token&lt;/strong&gt; is the smallest unit of text a language model reads and writes. It can be a whole word, a fragment of a word or a punctuation mark. AI providers measure the size of each request, and its cost, in tokens.
 &lt;/div&gt;
&lt;/div&gt;

&lt;h2 id="what-is-a-token"&gt;What is a token?&lt;/h2&gt;
&lt;p&gt;A model does not see letters or words the way we do. Before processing a text, a component called the &lt;strong&gt;tokenizer&lt;/strong&gt; splits it into pieces from a fixed vocabulary. A frequent word is usually a single token; a rare, long or misspelled word is split into several. Numbers, spaces and emojis also take up tokens.&lt;/p&gt;</description></item></channel></rss>