story-gpt
v0.2.0
Published
Generate a story with an image from a prompt using OpenAI's GPT
Downloads
45
Readme
Story-GPT
Typescript library used to generate the stories for StoryBot
Installation
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);