Building a Coherent AI Dungeon Master with DeepSeek: 1000+ Turns for Under $2

zacurryy · reddit · 2026-08-14

A developer successfully built a coherent AI Dungeon Master using the DeepSeek model.

Typically, LLMs struggle with long-term memory in multi-turn scenarios due to context window limits. This developer overcame the issue by using multiple API calls for different tasks within a single turn. While this architecture is prohibitively expensive with OpenAI or Anthropic APIs, DeepSeek's low pricing made it highly practical.

In real-world testing, despite requiring about three API calls per turn to maintain memory and logic, the total cost for a campaign lasting over 1,000 turns was less than $2, with no noticeable memory leaks or severe hallucinations.

Related event: Dev Builds Long-Memory AI Dungeon Master with DeepSeek(2 posts)→

Original post →

More from coding & agent

coding & agent channel →