๐งโ๐ซPrompt Engineering 101
Get the most out of Glif by optimizing your prompts.
Be specific
Explicit, detailed instructions produce the best results.
Some examples from existing glifs:
โCould you describe 4 panels of a comic about the above scene - the first should stir anticipation and intrigue in the reader, with the remaining 3 giving more substance - please include both a summary of the image and the text for each panel.โ (Comics from the New Space Age glif)
โblack and white coloring book drawing of a {input1}, empty background, clean coloring book for adults and children, low detail, black and white outlines of {input1}, Monochromatic line art illustration of a {input1}, blank backdrop, suitable for both adults and children. Minimalist design with crisp, black and white contour lines of {input1}, free from intricate details.โ (Coloring Book Images glif)
โa top front view render of a bizarre tamagotchi with a rectangular screen, a device inspired by the style of {style}, with the word "{logo}" embossed on the device in small letters. 4K HD octane product render. The tamagotchi device is rendered on white background.โ (Glifgotchi glif)
Give the AI a persona
Encourage the AI model to role play. This sounds a little silly, but is actually very powerful. Assigning a persona is a form of priming that will influence the ways in which the model handles the rest of your prompt. This tends to create more creative and less โbot-likeโ output.
Start with a phrase such as โYou are a ____โ or โAct as a ____โ when assigning a persona.
Some examples from existing glifs:
โYou're a historical fashion expert.โ (Fashion of different eras and places glif)
โYou're a poetic fictional sci-fi planet inventor.โ (Discover New Planets glif)
โYou are an award-winning cartoonist Gary Larson, the creator of "The Far Side" (Farthest Sider Cartoon Generator glif)
Provide step-by-step instructions
When crafting your prompt, it can be useful to imagine that youโre speaking to a young child or an entity from another planet that has little prior experience with the concept youโre describing. Breaking things down into steps helps the model process your prompt.
Adding the phrase โThink step by stepโ to your prompt will assist with this, even if the rest of your prompt is not explicitly broken into steps.
Some existing glifs that use this method:
โThink step by step.โ (Bell Curve glif)
โWrite a short hilarious odd 90s yearbook quote โฆโ โNow do one more.โ (Instant 90s Yearbook Yourself glif)
Provide examples
Adding in specific examples of your desired output can result in more consistent and accurate results.
Some examples from existing glifs:
โExamples: input: ๐ output: laughing face with tearsโ (Insane Emoji Upscaler glif)
โExample: input: photograph of a man with beard output: man with beardโ (Pixar Yourself glif)
โSome examples: LEMUR: LEMONADE LEMMING GIRAFFE: GELATO GIRAFFALOโ (GlifPets II glif)
Use negative prompts
Negative prompts exclude unwanted elements from the output. This can include anything from objects to words to styles to unsettling content.
Some examples from existing glifs:
โBlurry, pixel, low quality, grain, ugly, cluttered, pixel art, illustration, drawingโ (Teenage Engineering Generator glif)
โmultiple characters, blurry, photograph,low quality, character sheet, asset, black and whiteโ (RPG NPC Anyone glif)
"human, drawing, cartoon, comic, low quality, blurry, bad quality, amateurโ (Monster Designer glif)
Set limitations
Phrases such as โonlyโ and โneverโ within the prompt can help to shape the output to be more precise.
Some examples from existing glifs:
โOnly return a short visual description, nothing else.โ (Insane Emoji Upscaler glif)
โKeep it brief, only return the 3 words, do not preface it with anything, just go:โ (Low Poly Vector Art glif)
โList 3 additional visual details that add relevant features to this, keep it very brief, do not add numbers, only return a comma separated list, max 10 words, just go:โ (Candid Style Photography glif)
For image output: Describe the device creating the image
If you have a very specific vision in mind for your visual output, it can be useful to specify the camera or software platform that you imagine being used to generate the image.
Some examples from existing glifs:
โshot on film, clean empty blackground, analog film photograph from a 90s yearbook, color photograph, washed out photography, 1990s high school fashion, glam photography of the 90sโ (90s Yearbook Anyone glif)
โaward-winning portrait, fine art, film photograph, analog photography, kodak portra 800, dark atmosphere, film grain, VHS tapeโ (Twin Peaks Characters glif)
โmade in Octane, 3d object, 4K render, soft shading, soft-edged, playful, simplified. Isometric perspective, rendered on a white background.โ (Clay 3D Icons glif)
Be Patient ๐
Our team is constantly working to speed up processing times, but you can also control processing times through your request. The more complex the prompt and its parameters, the longer the processing time will be.
Ways in which you can cut down on processing time include:
Reducing the number of steps
Reducing the number of tokens
Donโt Be Afraid to Experiment
Like with many things in life, perfecting your output requires a lot of trial-and-error and practice. If you donโt like the initial output, donโt be afraid to keep modifying your prompt and parameters until youโre satisfied with the results.
Last updated