Generate random artistic text prompts for use with generative AI models
Data comes from the CLIP Interrogator
npm install promptmaker
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. Set falsy value to omit that part of the prompt:
promptmaker({
medium: "graffiti art",
subject: "ocean waves",
artist: "unknown artist",
flavors: null
});
// -> graffiti art of ocean waves abstract expressionism by unknown artist
promptmaker([options])Options, all of which default to random if unspecified:
medium Stringsubject Stringartist String.movement String. Set to false to exclude it.flavors Array of Strings. SeReturns a string in the format:
{medium} of {subject} {movement} by {artist}, {flavors}
To exclude any of the above options from the generated prompt string, set them to a falsy value, like null or false.
promptmaker.artistsAn array of artist names, like "Constance Copeman", "Amos Sewell", and "Amelia Robertson Hill"
promptmaker.mediumsAn array of artistic mediums, like "a flemish Baroque", "a jigsaw puzzle", and "an oil on canvas painting"
promptmaker.movementsAn array of movements, like "abstract expressionism", "art deco", and "baroque"
promptmaker.flavorsAn array of flavors, like "highly detailed", "cinematic lighting", and "eyes open, looking at viewer"
npx promptmaker <optional-subject>
npm install
npm test