🥞
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
  • Known issues & caveats
  • How to use the glif block
  • More examples & use cases
  • Fetch pages from Wikipedia
  • Enhancing image generation prompts
  1. Blocks
  2. Advanced/Experimental

Glif Block

Use glifs in other glifs. The Composable Glifverse.

PreviousAudio Input BlockNextWeb Fetcher Block

Last updated 11 months ago

Advanced/Experimental or to report issues

Glifs can be used as building blocks inside other glifs. This is powerful magick. Our UI for this is pretty rough right now, but it works.

Some other examples of utility glifs you might use in your glifs:

  • - outputs simple strings like "20-something female pakistani student"

  • - removes background from input image, outputs an image

  • and many more

Find many more examples in our and categories.

Known issues & caveats

  • No safety checks: If you make changes to the other glif, you might break any dependent glifs! There is not currently any version-linking or similar to prevent this.

  • Annoyingly: Finding glifs and pasting in glif IDs is very annoying. It should be a search control, or a button on another glif saying "use this glif in your other glif". Bonus points if any glif lists prioritizes your personal glifs or glifs that you've liked or ran in the past.

  • No error bubbling: Errors inside the other glif aren't surfaced well.

How to use the glif block

  1. Add the glif block by clicking the "+" button in the builder and selecting "Glif Block" in the Experimental/Advanced section.

  2. Select an existing glif from the dropdown menu, or press the pencil edit icon and paste in a glif ID.

  3. The inputs from that glif will appear. You can hardcode the inputs, or use {variables} to compose text to send to the next glif:

Note how the glif ID is edited in (clv55...), and then input values from the Microscopic Vision glif are passed as variables to the SD3 glif's prompt and negative fields. e.g. {ar}, {generating_imageprompt}

More examples & use cases

Fetch pages from Wikipedia

Enhancing image generation prompts

Uses LLM calls to turn brief prompts into detailed, effective image prompts for different image gen models (SD1.5 vs DALLE vs SD3 etc).

Known bug: All of the other glif's inputs show up as text inputs. So , menus are all just text inputs, and defaults aren't parsed well. So be careful!

The (below) uses a glifBlock to call our staff-created glif. The SD3 glif generates an image using the Stability.ai API.

Search Wikipedia & return the page text from the top result:

Fetch the "Today in History" page from Wikipedia:

🧑‍🔬
↔️
image inputs
multipick
Microscopic Vision glif
StableDiffusion 3 (with negative prompt)
https://glif.app/@fab1an/glifs/clufscg2600007pg6wpnb13dh
https://glif.app/@jamiedubs/glifs/clqx796yp000610ym0ngo1oef
Contact us
join Discord
Random person
Background Replacer
GlifBlocks
Utility Glifs