Your API key is set as a cookie within your browser only and is used to generate each chapter as you interact with the story.
Each chapter makes 2 requests to OpenAI: one for the text (using gpt-4o) and one for the image (using dall-e-3). The total cost per chapter varies based on the size of your prompt and the story's progression. Each chapter typically costs between $0.06-$0.20. DALL-E 3 charges a flat $0.04 per image, while gpt-4o pricing depends on the prompt length and complexity.