Blog

Product insight

OfficeMaker can use dramatically fewer tokens than a Python slide-generation agent

OfficeMakerAI Build Team16 April 2026

When an AI assistant builds a PowerPoint-style deck, token usage is rarely discussed—but it drives cost, latency, and how soon you hit context limits. The numbers below are reasoned estimates from a single representative workflow, not audited benchmarks. They still illustrate why OfficeMaker often stays much leaner than an agent that orchestrates Python, PptxGenJS, local tooling, and visual QA in the chat.

Where the Python / PptxGenJS tokens went

In a typical agent loop, costs stack quickly:

  • Reading workflow documentation (for example SKILL.md plus PptxGenJS references) — on the order of ~2,500 tokens.
  • The generated JavaScript (for example a Washington-themed deck script) — roughly ~3,500 tokens.
  • Multiple tool calls for dependency install, image generation, and LibreOffice (or similar) conversion — each adding context and outputs.
  • Visual QA in the loop: nine exported slide images passed back into the model for review. Image inputs are expensive; a common planning range is ~1,500–3,000 tokens each once embeddings are counted. That band alone can dominate the budget.
  • Iterative fix-and-verify cycles multiply the above as the agent re-reads errors, patches the script, and re-runs QA.

Together, those layers push a single deck session into the tens of thousands of tokens without much “real” authoring happening in the model—much of it is orchestration, logs, and pixels back in context.

Why OfficeMaker stayed leaner

OfficeMaker is designed around schema-first discovery and a structured create call:

  • Tool and schema discovery traffic stays relatively small compared to shipping entire skill packs and generated scripts on every turn.
  • The heavy lift moves to the document service API: layout and rendering happen server-side, not as a long chain of bash steps whose stdout fills the transcript.
  • The dominant single cost in the assistant thread is often one structured payload — for example a documentJson of about 29 KB to create_document_structured, which is on the order of 7,000–8,000 tokens (rough text-token equivalence). There is no local slide image generation loop and no per-slide image QA in the chat for that path.

Net effect: a ballpark total in the 20,000–30,000 token range for the same class of outcome — materially below the Python agent band above.

What actually widens the gap

If you stripped the visual QA loop (loading rendered slide images into the model after each pass), the two approaches would move closer: much of the 2–4× difference in practice comes from image context, not from “Python vs JSON” in the abstract.

OfficeMaker also outsources generation to a dedicated API, so the assistant thread keeps what it must hold in context smaller: schemas, deltas, and structured document state—not every intermediate file and screenshot.

Important caveats

  • These figures are estimates for one workflow shape. Your prompts, model choice, and number of revision rounds will move them.
  • A large documentJson in a single tool call still consumes context. For a much larger or more complex deck, that payload can approach limits in a way a script-based agent might avoid by streaming smaller steps—so OfficeMaker is not “free,” and extremes need design (chunking, templates, or server-side composition).
  • For exact token counts per request, use your provider’s usage dashboard or the usage fields in API responses (for example Anthropic’s console)—those are the source of truth.

Bottom line: for presentation-style work, pushing pixels through the LLM for QA is expensive. OfficeMaker’s pattern—structured input, server-side rendering, fewer image-in-context loops—can deliver the same business outcome with substantially lower token spend in realistic agent sessions.

Learn more about OfficeMaker →