Prompt Engineering 101
Get the most out of Glif by optimizing your prompts.
Last updated
Get the most out of Glif by optimizing your prompts.
Last updated
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.” ( 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.” ()
“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.” ()
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.” ( glif)
“You're a poetic fictional sci-fi planet inventor.” ( glif)
“You are an award-winning cartoonist Gary Larson, the creator of "The Far Side" ( glif)
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:
Adding in specific examples of your desired output can result in more consistent and accurate results.
Some examples from existing glifs:
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:
Phrases such as “only” and “never” within the prompt can help to shape the output to be more precise.
Some examples from existing glifs:
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:
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
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.
“Think step by step.” ()
“Write a short hilarious odd 90s yearbook quote …” “Now do one more.” ()
“Examples: input: 😂 output: laughing face with tears” ()
“Example: input: photograph of a man with beard output: man with beard” ()
“Some examples: LEMUR: LEMONADE LEMMING GIRAFFE: GELATO GIRAFFALO” (f)
“Blurry, pixel, low quality, grain, ugly, cluttered, pixel art, illustration, drawing” ( glif)
“multiple characters, blurry, photograph,low quality, character sheet, asset, black and white” ()
"human, drawing, cartoon, comic, low quality, blurry, bad quality, amateur” ()
“Only return a short visual description, nothing else.” ()
“Keep it brief, only return the 3 words, do not preface it with anything, just go:” ()
“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:” ()
“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” ()
“award-winning portrait, fine art, film photograph, analog photography, kodak portra 800, dark atmosphere, film grain, VHS tape” ()
“made in Octane, 3d object, 4K render, soft shading, soft-edged, playful, simplified. Isometric perspective, rendered on a white background.” ()