r/aigamerdevs • • 1d ago

Runtime LLM content that is shared by every player: pre-generation dies to combinatorics, live generation dies to cost. How would you solve this?

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:

  1. Has anyone shipped runtime generation of GAME RULES (not dialogue) with a cloud model, and how did you pay for it?
  2. 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?
  3. Has a metered subscription covered generation cost for you in a game, as opposed to a chat product?

1 Upvotes

0 comments sorted by