Skip to content

Generate random artistic text prompts for use with generative AI models

Notifications You must be signed in to change notification settings

charann29/promptmaker

Repository files navigation

promptmaker

Generate random artistic text prompts for use with generative AI models

Data comes from the CLIP Interrogator

Installation

npm install promptmaker

Usage

Call the function without arguments to get a random prompt:

promptmaker();
// -> graffiti art of ocean waves mannerism by Georg Schrimpf, distant expression, eyes closed or not visible

Specify an optional medium, subject, artist, movement, or flavors:

promptmaker({
  medium: "graffiti art",
  subject: "ocean waves",
});
// -> graffiti art of ocean waves mannerism by Georg Schrimpf, distant expression, eyes closed or not visible

API

promptmaker([options])

Options, all of which default to random if unspecified:

  • medium String
  • subject String
  • artist String
  • movement String
  • flavors Array of Strings

Returns a string in the format:

{medium} of {subject} {movement} by {artist}, {flavors}

CLI

npx promptmaker <optional-subject>

Tests

npm install
npm test

About

Generate random artistic text prompts for use with generative AI models

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published