The Unavoidable Cost of AI Narration
Building an AI-powered tabletop RPG platform like EverQuill presents a unique challenge: the core experience – an AI Dungeon Master narrating the story and reacting to player input – is fundamentally a series of language model calls. Each turn, each narrative beat, translates into a message sent to an LLM, and each message incurs a cost. For EverQuill founder Yishai Zvirblis, this wasn't a problem to be deferred until the platform scaled. Instead, it was a set of foundational decisions that had to be made before the first user ever logged in. The choices made at this nascent stage dictate whether a surge in activity translates to a manageable expense or a financial crisis.
Zvirblis identified three critical decisions made pre-launch to proactively manage these AI model costs. These aren't just optimizations; they are fundamental architectural choices that shape the user experience and the business's economic viability from day one.
Tiered Model Routing for Differentiated Experiences
The first strategic decision involved implementing tier-based routing. This approach assigns different AI models to different user segments based on their subscription level. The premise is straightforward: more sophisticated AI models produce higher-quality output but come with a higher price tag. Cheaper models are faster and less resource-intensive but may offer a rougher narrative experience. EverQuill's strategy leverages this trade-off by offering its free players access to Claude Haiku, a model priced around $0.80 per million input tokens. Paying subscribers, however, receive the benefits of Claude Sonnet, a more powerful model that costs approximately $3.00 per million input tokens.
This tiered approach allows EverQuill to provide a demonstrably superior experience for its paying customers, justifying the subscription cost with enhanced narrative depth and responsiveness. Simultaneously, it keeps the operational cost for serving free users manageable, enabling broader accessibility without immediate financial strain. The key here is that this isn't just about offering a better AI for more money; it's about making a conscious decision about the *quality* of the AI experience tied to value. Zvirblis recognized that the free tier needed to be engaging enough to convert users, but not so costly that it became a liability. The choice of Haiku for free users and Sonnet for paid users establishes a clear value proposition and a cost structure that scales with revenue, not just user count.

Optimizing Prompts for Efficiency
Beyond selecting the right model, Zvirblis focused heavily on prompt engineering and optimization. The cost of LLMs is often calculated per token, both for input and output. Therefore, reducing the number of tokens in each API call directly translates to reduced operational expenditure. This involves several tactics:
- Contextual Pruning: Instead of sending the entire game history or character sheet with every prompt, EverQuill selectively includes only the most relevant information. This requires a sophisticated understanding of what context the AI actually needs to generate a coherent and engaging response for the current turn. It's akin to a human Dungeon Master not reciting the entire campaign history before describing the next encounter, but rather recalling only the pertinent details.
- Instructional Conciseness: The instructions given to the AI are meticulously crafted to be as brief as possible while still conveying the desired action. This means avoiding verbose phrasing and focusing on clear, direct commands. For example, instead of asking the AI to "please describe the scene in a vivid and engaging manner, taking into account the player's recent actions and the overall tone of the adventure," a more optimized prompt might be "Narrate scene: [player action], tone: [adventure tone]."
- Output Constraint: Where possible, prompts are designed to encourage shorter, more focused outputs from the model. This might involve instructing the AI to provide a summary or a specific piece of information rather than a lengthy narrative. This is particularly useful for game mechanics that require concise feedback, like dice roll results or status updates.
These prompt optimization techniques are not a one-time fix but an ongoing process. As the platform evolves and new game mechanics are introduced, the prompts will need to be revisited and refined. This proactive approach to token management ensures that even as the complexity of the game increases, the cost per interaction remains controlled. It’s the difference between a leaky faucet dripping pennies into a bucket and a burst pipe flooding the house.
Managing Output Length and Token Costs
The third crucial decision revolved around managing the length of the AI's output. While longer, more descriptive text can enhance immersion, it also directly increases the output token count, and thus the cost. Zvirblis implemented strategies to control this:
- Configurable Detail Levels: Users can choose their preferred level of narrative detail. A player seeking a fast-paced game might opt for shorter descriptions, while someone who wants a deeply immersive experience can select more verbose outputs. This allows the platform to dynamically adjust the expected output length based on user preference and, critically, cost tolerance.
- Post-processing and Summarization: In some cases, the AI might generate more text than is strictly necessary for a particular game event. EverQuill employs post-processing techniques to trim extraneous words or even summarize lengthy responses to fit the required context. This is a delicate balance, as over-editing can strip the narrative of its richness, but judicious application can save significant costs.
- Strategic Use of Cheaper Models for Simpler Tasks: For routine game events or status updates that do not require high-fidelity narrative, cheaper models might be employed even for paying users. This ensures that the more expensive models are reserved for critical narrative junctures where their advanced capabilities are most impactful.
By carefully managing output length, EverQuill can prevent unexpected cost spikes that could arise from verbose AI responses. This proactive control over token consumption is vital for maintaining a predictable cost structure, especially before user growth provides substantial revenue to absorb higher expenses.
The Pre-emptive Strike on AI Costs
Zvirblis's decisions for EverQuill highlight a critical, often overlooked, aspect of building AI-powered products: cost management is not an afterthought but a core design principle. By implementing tiered model routing, aggressive prompt optimization, and careful control over output length, he has built a foundation that can scale economically. These aren't just technical tweaks; they are business strategy decisions that directly impact the long-term viability of the platform. For any founder embarking on an AI-driven venture, understanding and addressing model costs *before* user acquisition is not just prudent—it's essential for survival.
