🥞
Glif Docs/Guide
  • Getting Started
    • 👋What is Glif?
    • 💡What can I do with a glif?
      • 🏃Run a glif
      • 🔌Build a glif
      • 🔀Remix a glif
      • 🗣️Comment on a glif
      • 🔳Embed a glif
    • ⚒️How do I build a glif?
      • 📽️Video tutorial: Building a simple image generator
      • 🟰Using variables
    • ⚙️Profile Settings
    • 🪙Credits and Payments
    • ❓FAQs
  • Blocks
    • 🙋Inputs
      • ✍️Text Input Block
      • 🖼️Image Input Block
      • 📋Multipick Block
    • 🪄Generators
      • 📃Text Block
      • 🖼️Image Block
      • ➡️Image to Text Block
        • Florence2Sam2Segmenter
    • 🧰Tools
      • 🔀Text Combiner Block
      • 🔬JSON Extractor Block
    • 💅Styling
      • 🎨HTML Block
      • 🖼️Canvas Block
    • 🧑‍🔬Advanced/Experimental
      • 🎙️Audio Input Block
      • ↔️Glif Block
      • 🌐Web Fetcher Block
      • 🔊Audio Spell
      • 🧱ComfyUI Block
      • 📡Audio to Text Block
      • 🎥Video Input Block
      • 🔧JSON Repair Block
  • Apps
    • 🎨Glif It! Browser Extension
  • Glif University
    • 🎥Video Tutorials
      • 🐲How To: D&D Character Sheet Generator
      • 🧠How To: Expanding Brain Meme Generator
      • 🦑How To: Occult Memelord Generator
      • 🥸How To: InstantID Portrait Restyle Glif
      • 🕺How To: Style and Pose a Character with InstantID + Controlnet
      • 😱How To: Create a Simple Cartoon Portrait Animation Glif (LivePortrait + Custom Blocks)
      • 👗How to Create a Clothing Restyler App (IP Adapter, ControlNet + GPT Vision)
      • 🤡How to Create a 4+ Panel Storyboard/Comic (Flux Schnell)
      • 🎂How to Create a Recipe Generator with Accompanying Pictures
      • How to Use JasperAI Depth Controlnet on Flux Dev
      • 🦸‍♂️How to Make a Consistent Comic Panel Generator
    • 🧑‍🏫Prompt Engineering 101
    • 🖼️ControlNet
    • 📚AI Glossary
  • API - for Developers
    • ⚡Running glifs via the API
    • 🤖Using AI Assistants to build with the Glif API
    • 📙Reading & writing data via the API
    • 🗾Glif Graph JSON Schema
    • 📫Embed player & custom webpages
    • 📫Sample code
    • ❓What can I make with the Glif API?
      • Browser Extensions
      • Discord Bots
      • Games
      • Social Media Bots
      • Experimental Projects
  • Policies
    • 👨‍👩‍👧‍👦Community Guidelines
  • Programs
    • 🖼️Loradex Trainer Program
  • Community Resources
    • 🧑‍🤝‍🧑Resources Created by Glif Community Members
  • Contact Us
    • 📣Send us your feedback
    • 🚔Information for law enforcement
Powered by GitBook
On this page
  1. Glif University

Prompt Engineering 101

Get the most out of Glif by optimizing your prompts.

PreviousHow to Make a Consistent Comic Panel GeneratorNextControlNet

Last updated 11 months ago

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.” ()

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.” ( 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)

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:

Provide examples

Adding in specific examples of your desired output can result in more consistent and accurate results.

Some examples from existing glifs:

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:

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:

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:

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.

“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.” ()

🧑‍🏫
Comics from the New Space Age
Coloring Book Images glif
Glifgotchi glif
Fashion of different eras and places
Discover New Planets
Farthest Sider Cartoon Generator
Bell Curve glif
Instant 90s Yearbook Yourself glif
Insane Emoji Upscaler glif
Pixar Yourself glif
GlifPets II gli
Teenage Engineering Generator
RPG NPC Anyone glif
Monster Designer glif
Insane Emoji Upscaler glif
Low Poly Vector Art glif
Candid Style Photography glif
90s Yearbook Anyone glif
Twin Peaks Characters glif
Clay 3D Icons glif