How to write my life story for my grandchildren: aim for 20,000 words, talk instead of type, and print five KDP hardcovers for $34. Python math inside.
DMs Guild and DriveThruRPG reject text from AI language generators. A short Python model shows what a game master keeps per copy elsewhere: $6.62 on itch.io, $5.46 on Kindle, $3.98 on DMsGuild at $7.95.
A small Python cost model prices a 50,000-word first draft on seven OpenAI and Claude models: from $0.04 to $16.71. About 73% of a naive bill is resending earlier chapters, and prompt caching removes most of it.
KDP's royalty rules fit in about 30 lines of Python. Run them and three pricing cliffs appear: $12.99 vs $13.00 on ebooks, $9.98 vs $9.99 on paperbacks, and file size at $2.99.