Skip to content

sinansonmez/story-writer-ai

Repository files navigation

Description

This is an open-source project that leverages OpenAI's APIs, React, Next.js, and TypeScript to generate short stories with images for children aged between 3-7

The project uses OpenAI to generate the text for the story and DALL-E to create an accompanying image. The application allows users to enter a brief prompt that the algorithm will use to generate the story. The output is a short story with an accompanying image that can be shared, printed, or saved.

Why I Created This Project

I created this project to help parents, teachers, and caregivers create fun and engaging stories for young children. With so much of our lives moving online, I wanted to create a tool that would make it easy for people to generate stories for their kids that would help improve their reading skills, imagination, and creativity.

How to Run Locally

To run the project locally, follow these steps:

  • Clone the repository to your local machine.
  • Install the required dependencies using npm install.
  • Create an OpenAI API key and add them to your .env.local file.
  • Start the application using npm run dev.
  • Open your browser and navigate to http://localhost:3000.

Screenshots

Screenshot 2023-04-30 at 21-26-07 Create Next App

Screenshot 2023-04-30 at 21-20-20 Create Next App

Links

License

This project is licensed under the MIT license. See the LICENSE file for more information.