/* eslint-disable */
/* blog/token-myths-cost.jsx — article page */

const ArticleEN = () => (
  <article className="tm-article">
    <header className="tm-article-header">
      <a href="/blog" className="tm-article-back">← Blog</a>
      <h1 className="tm-article-title">Token Myths: How Much Does It Actually Cost?</h1>
      <p className="tm-article-titlesub">What a Governed Query Actually Costs &mdash; With and Without Teramot</p>
      <div className="tm-article-byline">
        <span className="tm-article-author">By Bruno Ruy&uacute;</span>
        <span className="tm-article-date">September 2026</span>
      </div>
    </header>

    <div className="tm-article-body">
      <p>In a previous post, <a href="the-token-excuse">The Token Excuse</a>, we made the case that token cost &mdash; used as a reason to slow-walk AI access &mdash; rarely survives an actual calculation. This post asks a narrower, different question, one that only makes sense once a governed data layer already exists: given that layer, how many tokens does it really take to answer a business request, and how does that change with and without Teramot doing the work?</p>

      <div className="tm-article-highlight">
        <p className="tm-article-highlight-label">The number that actually matters</p>
        <p className="tm-article-highlight-num">$100K&ndash;$300K</p>
        <p className="tm-article-highlight-sub">what a typical data-engineering project costs to build this same governed layer by hand. The token numbers below are a rounding error next to it.</p>
      </div>

      <p><strong>What this post is not measuring.</strong> Every number below assumes the curated, documented data layer already exists &mdash; tables tagged with business rules, column definitions, lineage: the knowledge layer that normally takes a data team weeks or months to build by hand, and that Teramot builds in minutes.</p>
      <p>&ldquo;Without Teramot&rdquo; here does not mean &ldquo;without that layer.&rdquo; It means the same underlying tables, the same request, but the model working without Teramot&rsquo;s schema curation, SQL validation, and governed publishing step. This is the last mile &mdash; answering a question &mdash; not the much larger job of building the foundation underneath it. That foundation is a separate, bigger gap, and it isn&rsquo;t in this chart.</p>

      <h2>A Real Request: REQ-02429</h2>
      <p>Take a ticket from a live customer demo, a large retail chain: a business user submits a plain-language request for a report, and the trace runs end to end &mdash; from that request to a published, correct view and a dashboard. Here&rsquo;s what the trace costs in tokens, measured both ways: once as it actually ran through Teramot, once as a hypothetical reconstruction of the same task with a raw model working against the same tables, unassisted.</p>

      <div className="tm-article-stat-grid">
        <div className="tm-article-stat-card tm-article-stat-card--with">
          <p className="tm-article-stat-kicker">With Teramot (real)</p>
          <p className="tm-article-stat-total">~52K tokens</p>
          <p className="tm-article-stat-cost">≈ $0.15</p>
          <ul className="tm-article-stat-list">
            <li><span>System prompt + tools</span><span>14K</span></li>
            <li><span>User messages</span><span>2K</span></li>
            <li><span>Tool calls (MCP)</span><span>6K</span></li>
            <li><span>Tool results</span><span>12K</span></li>
            <li><span>Model responses</span><span>10K</span></li>
            <li><span>HTML dashboard</span><span>8K</span></li>
          </ul>
        </div>
        <div className="tm-article-stat-card">
          <p className="tm-article-stat-kicker">Without Teramot (hypothetical)</p>
          <p className="tm-article-stat-total">~340K tokens</p>
          <p className="tm-article-stat-cost">≈ $1.02</p>
          <ul className="tm-article-stat-list">
            <li><span>Full schema per turn (×12)</span><span>144K</span></li>
            <li><span>Business rules per turn (×12)</span><span>36K</span></li>
            <li><span>Retries on invalid SQL (~5)</span><span>60K</span></li>
            <li><span>Extra exploratory queries</span><span>40K</span></li>
            <li><span>Model responses</span><span>30K</span></li>
            <li><span>Custom prompt engineering</span><span>18K</span></li>
            <li><span>HTML dashboard</span><span>12K</span></li>
          </ul>
        </div>
      </div>

      <p>The &ldquo;without Teramot&rdquo; column is already the generous version of that scenario. It assumes an unusually capable model that eventually lands on a correct answer through brute force: the full schema re-sent every turn, business rules typed in by hand, five rounds of retries after invalid SQL, extra queries against <code>information_schema</code> just to figure out what&rsquo;s there. In practice, a lot of these attempts don&rsquo;t converge at all &mdash; someone ends up finishing the job by hand. We priced the version where the model succeeds anyway.</p>

      <div className="tm-article-multiplier">
        <span className="tm-article-multiplier-num">6.5×</span>
        <span className="tm-article-multiplier-label">more tokens without Teramot, for the same result</span>
      </div>

      <h2>Where the Difference Comes From</h2>
      <div className="tm-article-compare-wrap">
        <table className="tm-article-compare-table">
          <thead>
            <tr>
              <th>Category</th>
              <th>With Teramot</th>
              <th>Without Teramot</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Schema injection &mdash; Teramot sends only the relevant tables; without it, the full schema goes out every turn.</td>
              <td>~1K/turn</td>
              <td>~12K/turn</td>
            </tr>
            <tr>
              <td>Domain knowledge &mdash; Teramot carries a knowledge layer of business rules; without it, they&rsquo;re retyped into every prompt.</td>
              <td>0 tokens</td>
              <td>~3K/turn</td>
            </tr>
            <tr>
              <td>SQL validation &mdash; Teramot validates before executing; without it, the model hallucinates columns and needs retries.</td>
              <td>0 retries</td>
              <td>~5 retries</td>
            </tr>
            <tr>
              <td>Metadata exploration &mdash; <code>explore_tables</code>, <code>search_schema</code> vs. manual queries against <code>information_schema</code>.</td>
              <td>2 calls</td>
              <td>8+ queries</td>
            </tr>
            <tr>
              <td>Publishing the view &mdash; <code>create_gold_table</code> is one call; without it, manual DDL, permissions, lineage, docs.</td>
              <td>1 call</td>
              <td>Not resolved</td>
            </tr>
          </tbody>
        </table>
      </div>

      <div className="tm-article-callout">
        <p><strong>What the tokens don&rsquo;t count.</strong> Without Teramot there is no governance, no lineage, no versioning, and no published view. Those aren&rsquo;t capabilities you get back by spending more tokens &mdash; they require infrastructure. The 52K-vs-340K comparison only measures generating the SQL and the dashboard, not the full cycle from raw data to a published view someone else can safely consume.</p>
        <p>Building that governed layer by hand is a project of its own, and it isn&rsquo;t cheap. Industry benchmarks put a typical data-engineering project &mdash; documenting a company&rsquo;s tables, defining business rules, wiring up lineage and governance &mdash; at roughly $100,000&ndash;$300,000 in engineering time. A data engineer&rsquo;s fully-loaded cost runs close to $150,000 a year, and work like this realistically absorbs six months to a year of it, often split across more than one person. That&rsquo;s the number this whole token comparison exists to put in perspective.</p>
      </div>

      <h2>At Scale: 21 Requests</h2>
      <p>Project this across a realistic backlog &mdash; 21 similar requests waiting on a data team:</p>

      <div className="tm-article-stat-grid">
        <div className="tm-article-stat-card tm-article-stat-card--with">
          <p className="tm-article-stat-kicker">21 views, with Teramot</p>
          <p className="tm-article-stat-total">~1.1M tokens</p>
          <p className="tm-article-stat-cost">≈ $3.15</p>
        </div>
        <div className="tm-article-stat-card">
          <p className="tm-article-stat-kicker">21 views, without Teramot</p>
          <p className="tm-article-stat-total">~7.1M tokens</p>
          <p className="tm-article-stat-cost">≈ $21.42</p>
        </div>
      </div>

      <p>In both scenarios, the token bill is a rounding error on any budget that matters &mdash; the saving there is about $18 for this whole backlog. The number that actually matters sits one line up: the $100,000&ndash;$300,000 data-engineering project a backlog like this would otherwise require. Add the two together and the total saving from running this through Teramot is still, overwhelmingly, that $100K&ndash;$300K in engineering time, not the token bill. What matters is whether those 21 views get answered in an afternoon or sit in a six-month backlog. The bottleneck was never the cost of the model &mdash; it&rsquo;s the time of the team that would otherwise be writing that SQL, checking it, and documenting it by hand.</p>

      <h2>The Point Isn&rsquo;t the Price of Tokens</h2>
      <p>This doesn&rsquo;t contradict the fact that none of this works without Teramot &mdash; it&rsquo;s the same point from a different angle. Even in the one place where a raw model can, in theory, muscle through without any of Teramot&rsquo;s infrastructure &mdash; answering a single question against tables that are already documented &mdash; it still takes 6.5&times; the tokens, five rounds of guessing, and produces nothing governed, versioned, or safe to hand to another team. And that&rsquo;s the generous case. The harder problem &mdash; building the documented, governed layer those tables needed in the first place &mdash; doesn&rsquo;t appear in this chart at all. That part is measured in minutes with Teramot, and in months without it.</p>
    </div>

    <footer className="tm-article-footer">
      <p><em>Teramot is a data lakehouse platform that deploys governed, AI-ready data infrastructure for companies. Learn more at <a href="https://teramot.com">teramot.com</a>.</em></p>
    </footer>
  </article>
);

const ArticleES = () => (
  <article className="tm-article">
    <header className="tm-article-header">
      <a href="/blog" className="tm-article-back">← Perspectivas</a>
      <h1 className="tm-article-title">Mitos de los Tokens: &iquest;Cu&aacute;nto Cuesta Realmente?</h1>
      <p className="tm-article-titlesub">Lo Que Realmente Cuesta una Consulta Gobernada &mdash; Con y Sin Teramot</p>
      <div className="tm-article-byline">
        <span className="tm-article-author">Por Bruno Ruy&uacute;</span>
        <span className="tm-article-date">Septiembre 2026</span>
      </div>
    </header>

    <div className="tm-article-body">
      <p>En un post anterior, <a href="the-token-excuse">La Excusa de los Tokens</a>, planteamos que el costo de tokens &mdash; usado como raz&oacute;n para frenar el acceso a IA &mdash; casi nunca sobrevive a un c&aacute;lculo real. Este post hace una pregunta distinta y m&aacute;s acotada, que solo tiene sentido cuando ya existe una capa de datos gobernada: dada esa capa, &iquest;cu&aacute;ntos tokens hace falta realmente para responder una solicitud de negocio, y c&oacute;mo cambia eso con y sin Teramot haciendo el trabajo?</p>

      <div className="tm-article-highlight">
        <p className="tm-article-highlight-label">El n&uacute;mero que realmente importa</p>
        <p className="tm-article-highlight-num">USD $100K&ndash;$300K</p>
        <p className="tm-article-highlight-sub">lo que cuesta t&iacute;picamente un proyecto de Data Engineering para construir esta misma capa gobernada a mano. Los n&uacute;meros de tokens de abajo son un redondeo al lado de esto.</p>
      </div>

      <p><strong>Lo que este post no est&aacute; midiendo.</strong> Cada n&uacute;mero de abajo asume que la capa de datos curada y documentada ya existe &mdash; tablas etiquetadas con reglas de negocio, definiciones de columnas, linaje: la capa de conocimiento que normalmente le toma semanas o meses a un equipo de datos construir a mano, y que Teramot construye en minutos.</p>
      <p>&ldquo;Sin Teramot&rdquo; ac&aacute; no significa &ldquo;sin esa capa.&rdquo; Significa las mismas tablas subyacentes, la misma solicitud, pero el modelo trabajando sin la curaci&oacute;n de schema de Teramot, su validaci&oacute;n de SQL y su paso de publicaci&oacute;n gobernada. Esta es la &uacute;ltima milla &mdash; responder una pregunta &mdash;, no el trabajo mucho m&aacute;s grande de construir la base debajo de esa pregunta. Esa base es una brecha distinta y m&aacute;s grande, y no est&aacute; en este gr&aacute;fico.</p>

      <h2>Una Solicitud Real: REQ-02429</h2>
      <p>Tomemos un ticket de una demo real con un cliente, una cadena de retail grande: un usuario de negocio manda una solicitud en lenguaje natural para un informe, y el trace corre de punta a punta &mdash; desde esa solicitud hasta una vista publicada y correcta, m&aacute;s un dashboard. Esto es lo que cuesta ese trace en tokens, medido de las dos formas: una vez tal como corri&oacute; realmente por Teramot, y otra como reconstrucci&oacute;n hipot&eacute;tica de la misma tarea con un modelo crudo trabajando contra las mismas tablas, sin asistencia.</p>

      <div className="tm-article-stat-grid">
        <div className="tm-article-stat-card tm-article-stat-card--with">
          <p className="tm-article-stat-kicker">Con Teramot (real)</p>
          <p className="tm-article-stat-total">~52K tokens</p>
          <p className="tm-article-stat-cost">≈ USD $0,15</p>
          <ul className="tm-article-stat-list">
            <li><span>System prompt + tools</span><span>14K</span></li>
            <li><span>Mensajes del usuario</span><span>2K</span></li>
            <li><span>Tool calls (MCP)</span><span>6K</span></li>
            <li><span>Resultados de tools</span><span>12K</span></li>
            <li><span>Respuestas del modelo</span><span>10K</span></li>
            <li><span>HTML dashboard</span><span>8K</span></li>
          </ul>
        </div>
        <div className="tm-article-stat-card">
          <p className="tm-article-stat-kicker">Sin Teramot (hipot&eacute;tico)</p>
          <p className="tm-article-stat-total">~340K tokens</p>
          <p className="tm-article-stat-cost">≈ USD $1,02</p>
          <ul className="tm-article-stat-list">
            <li><span>Schema completo por turno (×12)</span><span>144K</span></li>
            <li><span>Reglas de negocio por turno (×12)</span><span>36K</span></li>
            <li><span>Retries por SQL inv&aacute;lido (~5)</span><span>60K</span></li>
            <li><span>Queries exploratorias extra</span><span>40K</span></li>
            <li><span>Respuestas del modelo</span><span>30K</span></li>
            <li><span>Prompt engineering custom</span><span>18K</span></li>
            <li><span>HTML dashboard</span><span>12K</span></li>
          </ul>
        </div>
      </div>

      <p>La columna &ldquo;sin Teramot&rdquo; ya es la versi&oacute;n generosa de ese escenario. Asume un modelo inusualmente capaz que igual termina llegando a una respuesta correcta a la fuerza: el schema completo reenviado cada turno, las reglas de negocio tipeadas a mano, cinco rondas de retries despu&eacute;s de SQL inv&aacute;lido, queries extra contra <code>information_schema</code> solo para entender qu&eacute; hay ah&iacute;. En la pr&aacute;ctica, muchos de estos intentos ni siquiera convergen &mdash; alguien termina resolviendo el trabajo a mano. Ac&aacute; cotizamos la versi&oacute;n donde el modelo igual lo logra.</p>

      <div className="tm-article-multiplier">
        <span className="tm-article-multiplier-num">6,5×</span>
        <span className="tm-article-multiplier-label">m&aacute;s tokens sin Teramot, para el mismo resultado</span>
      </div>

      <h2>&iquest;De D&oacute;nde Sale la Diferencia?</h2>
      <div className="tm-article-compare-wrap">
        <table className="tm-article-compare-table">
          <thead>
            <tr>
              <th>Categor&iacute;a</th>
              <th>Con Teramot</th>
              <th>Sin Teramot</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Inyecci&oacute;n de schema &mdash; Teramot inyecta solo las tablas relevantes; sin &eacute;l, se manda el schema completo cada turno.</td>
              <td>~1K/turno</td>
              <td>~12K/turno</td>
            </tr>
            <tr>
              <td>Conocimiento de dominio &mdash; Teramot tiene un knowledge layer con reglas de negocio; sin &eacute;l, se inyectan a mano en cada prompt.</td>
              <td>0 tokens</td>
              <td>~3K/turno</td>
            </tr>
            <tr>
              <td>Validaci&oacute;n de SQL &mdash; Teramot valida antes de ejecutar; sin validaci&oacute;n, el modelo alucina columnas y necesita retries.</td>
              <td>0 retries</td>
              <td>~5 retries</td>
            </tr>
            <tr>
              <td>Exploraci&oacute;n de metadata &mdash; <code>explore_tables</code>, <code>search_schema</code> vs. queries manuales a <code>information_schema</code>.</td>
              <td>2 calls</td>
              <td>8+ queries</td>
            </tr>
            <tr>
              <td>Publicaci&oacute;n de la vista &mdash; <code>create_gold_table</code> es un paso; sin &eacute;l, DDL manual, permisos, linaje, documentaci&oacute;n.</td>
              <td>1 call</td>
              <td>No resuelto</td>
            </tr>
          </tbody>
        </table>
      </div>

      <div className="tm-article-callout">
        <p><strong>Lo que los tokens no cuentan.</strong> Sin Teramot no hay gobierno, linaje, versionado, ni publicaci&oacute;n de la vista. Esas capacidades no se recuperan gastando m&aacute;s tokens &mdash; requieren infraestructura. La comparaci&oacute;n de 52K vs 340K solo mide la generaci&oacute;n del SQL y el dashboard, no el ciclo completo de datos crudos a una vista publicada que otro equipo pueda consumir con seguridad.</p>
        <p>Construir esa capa gobernada a mano es un proyecto en s&iacute; mismo, y no es barato. Los benchmarks de la industria ubican un proyecto t&iacute;pico de Data Engineering &mdash; documentar las tablas de una empresa, definir reglas de negocio, armar linaje y gobierno &mdash; en algo as&iacute; como USD $100.000 a $300.000 en horas de ingenier&iacute;a. El costo fully-loaded de un data engineer ronda los USD $150.000 al a&ntilde;o, y un trabajo as&iacute; realmente absorbe entre seis meses y un a&ntilde;o de eso, muchas veces repartido entre m&aacute;s de una persona. Ese es el n&uacute;mero que esta comparaci&oacute;n de tokens existe para poner en perspectiva.</p>
      </div>

      <h2>A Escala: 21 Solicitudes</h2>
      <p>Proyect&aacute; esto sobre un backlog realista &mdash; 21 solicitudes similares esperando a un equipo de datos:</p>

      <div className="tm-article-stat-grid">
        <div className="tm-article-stat-card tm-article-stat-card--with">
          <p className="tm-article-stat-kicker">21 vistas, con Teramot</p>
          <p className="tm-article-stat-total">~1,1M tokens</p>
          <p className="tm-article-stat-cost">≈ USD $3,15</p>
        </div>
        <div className="tm-article-stat-card">
          <p className="tm-article-stat-kicker">21 vistas, sin Teramot</p>
          <p className="tm-article-stat-total">~7,1M tokens</p>
          <p className="tm-article-stat-cost">≈ USD $21,42</p>
        </div>
      </div>

      <p>En ambos escenarios, la factura de tokens es un redondeo en cualquier presupuesto que importe &mdash; el ahorro ah&iacute; es de unos USD $18 para todo este backlog. El n&uacute;mero que realmente importa est&aacute; una l&iacute;nea arriba: el proyecto de Data Engineering de USD $100.000 a $300.000 que un backlog as&iacute; requerir&iacute;a de otra forma. Sum&aacute; los dos y el ahorro total de resolver esto con Teramot sigue siendo, de manera abrumadora, ese rango de $100K a $300K en horas de ingenier&iacute;a, no la factura de tokens. Lo relevante es si esas 21 vistas se resuelven en una tarde o quedan en un backlog de seis meses. El cuello de botella nunca fue el costo del modelo &mdash; es el tiempo del equipo que, si no, estar&iacute;a escribiendo ese SQL, revis&aacute;ndolo y document&aacute;ndolo a mano.</p>

      <h2>El Punto No Es el Precio de los Tokens</h2>
      <p>Esto no contradice el hecho de que nada de esto funciona sin Teramot &mdash; es el mismo punto desde otro &aacute;ngulo. Incluso en el &uacute;nico lugar donde un modelo crudo puede, en teor&iacute;a, forzar una respuesta sin nada de la infraestructura de Teramot &mdash; responder una sola pregunta contra tablas que ya est&aacute;n documentadas &mdash;, igual le toma 6,5&times; los tokens, cinco rondas de intentos, y no produce nada gobernado, versionado o seguro para pasarle a otro equipo. Y esa es la versi&oacute;n generosa. El problema m&aacute;s dif&iacute;cil &mdash; construir la capa documentada y gobernada que esas tablas necesitaban en primer lugar &mdash; ni siquiera aparece en este gr&aacute;fico. Esa parte se mide en minutos con Teramot, y en meses sin &eacute;l.</p>
    </div>

    <footer className="tm-article-footer">
      <p><em>Teramot es una plataforma de data lakehouse que deploya infraestructura de datos gobernada y lista para IA. Conoc&eacute; m&aacute;s en <a href="https://teramot.com">teramot.com</a>.</em></p>
    </footer>
  </article>
);

const ArticlePage = () => {
  const { lang } = useLang();
  return (
    <>
      <ArticleSchema
        slug="token-myths-cost"
        headline={lang === 'en' ? "Token Myths: How Much Does It Actually Cost?" : "Mitos de los Tokens: ¿Cuánto Cuesta Realmente?"}
        description={lang === 'en' ? "A real trace, measured in tokens: answering a governed data request costs 6.5× more without Teramot — and still produces nothing governed, versioned, or published." : "Un trace real, medido en tokens: responder una solicitud de datos gobernada cuesta 6,5× más sin Teramot — y aun así no produce nada gobernado, versionado ni publicado."}
        datePublished="2026-09"
      />
      <NavBar />
      <main className="tm-article-page">
        <div className="tm-article-container">
          {lang === 'en' ? <ArticleEN /> : <ArticleES />}
          <aside className="tm-article-mas">
            <p className="tm-article-mas-titulo">{lang === 'en' ? 'Keep reading' : 'Seguir leyendo'}</p>
            <div className="tm-article-mas-lista">
              <a className="tm-article-mas-item" href="the-token-excuse">
                <strong>{lang === 'en' ? "The Token Excuse" : "La Excusa de los Tokens"}</strong>
                <span>{lang === 'en' ? "Why “We're Worried About Token Costs” Doesn't Hold Up As A Financial Argument" : "Por qué “nos preocupan los costos de tokens” no se sostiene como argumento financiero"}</span>
              </a>
              <a className="tm-article-mas-item" href="data-is-not-software">
                <strong>{lang === 'en' ? "Data Is Not Software" : "Los Datos No Son Software"}</strong>
                <span>{lang === 'en' ? "What Anthropic's AI Analytics Project Reveals About the Real Challenge" : "Lo que el proyecto de Analytics de Anthropic revela sobre el verdadero desafío"}</span>
              </a>
            </div>
          </aside>
        </div>
      </main>
      <Footer />
    </>
  );
};

ReactDOM.createRoot(document.getElementById('root')).render(
  <LangProvider><ArticlePage /></LangProvider>
);
