I'm building a tactics game where players fuse two character classes into a new one. The first player to try a pair triggers generation, and the result is permanent and shared by everyone, a bit like Infinite Craft's "first discovery". The difference is the size of the output: not a word and an emoji, but a full playable class with a name, abilities, and a mechanic in a small rule language that the engine validates and runs.
Two problems:
1. Cost. A new class costs roughly $0.50 to $1 in LLM tokens and takes several minutes. Fusing is the core loop, so I end up rationing the one thing the game is about.
2. Combinatorics. 8 base classes give 36 first-generation classes, about 950 in the second, about 500k in the third, and billions in the fourth.
What I've ruled out, and why:
- Pre-generate everything. See the numbers above. Only generation 1 can be fully mapped.
- A local model on the player's GPU. It's a browser game, and content shared by all players can't be trusted from a client without re-validating it on the server.
- Fine-tuning my own small model. I have a few hundred examples and the rule language still changes.
- Bring your own key. The content is shared by everyone, and most players will never do it.
- Unlimited generation behind a flat subscription. Every example I found ended up metering usage.
Where I'm leaning: generate on demand only, cap how many generations each player gets per month, pay for them with a metered subscription, and move work from the model to code so each generation costs less.
Questions:
- Has anyone shipped runtime generation of GAME RULES (not dialogue) with a cloud model, and how did you pay for it?
- Would you collapse the space so many pairs map to the same result, or keep one result per pair and accept that most pairs never exist?
- Has a metered subscription covered generation cost for you in a game, as opposed to a chat product?
EDIT: one catch tho: it's a shared world, each pair gives the same class to everyone, so I can't just swap a class people already own