πŸ₯ž
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
      • 🎬Videokit Tools
    • πŸ’…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. Blocks
  2. Generators

Image Block

PreviousText BlockNextImage to Text Block

Last updated 5 months ago

Image blocks generate an image based on a text prompt or another image (via advanced controls) or both.

Title

  • Click the pencil icon next to the block’s title to edit it.

    • Tip: This is also the block’s variable name, which can be used to dynamically populate data in other blocks.

Prompt

  • Write a prompt that guides the AI to generate your desired image.

    • Use variables within your prompt to dynamically add data from other blocks.

Tip: The more specific the prompt, the better the output!

  • When crafting a prompt for an image generator, it can be helpful to imagine that you’re talking to an alien who is visiting Earth for the first time. Break down the prompt into simple step-by-step instructions and be as descriptive as possible. Your new alien friend has never witnessed visual aspects of this planet before and needs a lot of context in order to draw an accurate picture of your prompt.

Variables

Variables can be used to dynamically populate data supplied by other blocks. Click on a variable name from the list to add it to anywhere in your prompt. Variable names match a block’s title.

Image Generation Model

Select the image generation model used to create your image. Currently supported models, as of 5/31/24, are:

  • Stable Diffusion XL (Stability AI)

  • DALL-E 3 (OpenAI) [Currently disabled]

  • Flux Pro (Black Forest Labs)

  • Flux Dev (Black Forest Labs)

  • Flux Schnell (Black Forest Labs)

  • Flux Pro v1.1 (Black Forest Labs)

  • Flux Pro v1.1 Ultra (Black Forest Labs)

  • Controllism

    • Note: Not really an image model in itself. It uses Stable Diffusion v1.5 with ControlNet QR.

Size

Select the desired aspect ratio of your image output.

  • Square (1:1)

  • Cinema (7:4)

  • Landscape (19:13)

  • Computer (9:7)

  • Portrait (7:9)

  • Tablet (13:19)

Advanced Image Block Controls

Note: Advanced controls are not available for the DALL-E image generation model.

Negative prompts

Enter prompts that you do not want to be part of the image here. For example, add β€œhat” here if you want to exclude all hats from your image.

This setting is available for all supported image generation models except DALL-E.

Steps

The number of steps taken by the AI in refining its parameters.

  • Tip: Reduce the number of steps to speed up processing time. More steps will create a more refined output, but results in longer processing times.

This setting is available for all supported image generation models except DALL-E.

Prompt power

Prompt power refers to the influence that a prompt has over the generated output. The higher the prompt power, the more strictly the AI model will adhere to your prompt.

This setting is available for all supported image generation models except DALL-E.

Sampler

Currently supported samplers are:

  • pndm

  • unipc

  • k_euler_a

  • k_dpm_2_a

  • dpmpp

  • ddim

  • lcm

This setting is available for all supported image generation models except DALL-E.

Seed

Randomize Seed

The seed refers to the initial randomization or starting point for generating an image. Randomizing the seed will result in more diverse outcomes.

This setting is available for all supported image generation models except DALL-E.

Enable ControlNet

Enabling ControlNet allows you to specify an existing image as a reference for your generated image. ControlNet is a powerful and customizable tool that will stick to your prompt more closely than img2img. Paste the URL of the existing image that you want to use as the reference image. You can tweak the conditioning, canny upper/lower, and guidance start/end using the sliders.

Enable Input Image (Img2img)

Enabling img2img allows you to specify an existing image as a reference for your generated image. Img2img adheres to a prompt less closely than ControlNet. The resulting image may vary in style, color, and other aspects from the original. Paste the URL of the existing image that you want to use as the reference image. You can tweak the strength using the slider.

Restore faces

Enhances facial features in images. This setting is available for all supported image generation models except DALL-E.

This setting is only available for Stable Diffusion and Controllism.

Preview

Shows you a preview image. (Pretty self-explanatory!)

Note: DALL-E also will not generate an image of a celebrity, per .

πŸͺ„
πŸ–ΌοΈ
its usage policies