Skip to content

Generate a story with an image from a prompt using OpenAI's GPT

Notifications You must be signed in to change notification settings

CodingBull-dev/story-gpt

Repository files navigation

Story-GPT

Typescript library used to generate the stories for StoryBot

Installation

NPM Release

NPM Version

npm install --save story-gpt

Usage

import { createStory } from "story-gpt";

const story = await createStory("A story about a happy horse", new OpenAI({apiKey: ">my api key<"}));

console.log("The story is named %s and it's tells the following story:", story.title, story.content);
console.log("See the cover picture for the story here:", story.image);