Generate random artistic text prompts for use with generative AI models
Data comes from the CLIP Interrogator
npm install promptmakerCall 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 visibleSpecify 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 Options, all of which default to random if unspecified:
mediumStringsubjectStringartistString.movementString. Set tofalseto exclude it.flavorsArray of Strings. Se
Returns 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.
An array of artist names, like "Constance Copeman", "Amos Sewell", and "Amelia Robertson Hill"
An array of artistic mediums, like "a flemish Baroque", "a jigsaw puzzle", and "an oil on canvas painting"
An array of movements, like "abstract expressionism", "art deco", and "baroque"
An array of flavors, like "highly detailed", "cinematic lighting", and "eyes open, looking at viewer"
npx promptmaker <optional-subject>
npm install
npm test