> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-style-transfer-guide-1774068104.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with AI Image Generation

> This tutorial will guide you through your first image generation with ComfyUI, covering basic interface operations like workflow loading, model installation, and image generation

This guide aims to help you understand ComfyUI's basic operations and complete your first image generation. We'll cover:

1. Loading example workflows
   * Loading from ComfyUI's workflow templates
   * Loading from images with workflow metadata
2. Model installation guidance
   * Automatic model installation
   * Manual model installation
   * Using ComfyUI Manager for model installation
3. Completing your first text-to-image generation

## About Text-to-Image

Text-to-Image is a fundamental AI drawing feature that generates images from text descriptions. It's one of the most commonly used functions in AI art generation. You can think of the process as telling your requirements (positive and negative prompts) to an artist (the drawing model), who will then create what you want. Detailed explanations about text-to-image will be covered in the [Text to Image](/tutorials/basic/text-to-image) chapter.

## ComfyUI Text-to-Image Workflow Tutorial

### 1. Launch ComfyUI

Make sure you've followed the [installation guide](/installation/system_requirements) to start ComfyUI and can successfully enter the ComfyUI interface. Alternatively, you can use [Comfy Cloud](/get_started/cloud) to use ComfyUI without any installation.

<img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/q-7nRlUErTRQ1Fj-/images/interface/comfyui-boot-screen.jpg?fit=max&auto=format&n=q-7nRlUErTRQ1Fj-&q=85&s=c2487b34d465299fbaba4a67596988b2" alt="ComfyUI Interface" width="1068" height="819" data-path="images/interface/comfyui-boot-screen.jpg" />

If you have not installed ComfyUI, please choose a suitable version to install based on your device.

<AccordionGroup>
  <Accordion title="ComfyUI Desktop">
    ComfyUI Desktop currently supports standalone installation for **Windows and MacOS (ARM)**, currently in Beta

    * Code is open source on [Github](https://github.com/Comfy-Org/desktop)

    <Tip>
      Because Desktop is always built based on the **stable release**, so the latest updates may take some time to experience for Desktop, if you want to always experience the latest version, please use the portable version or manual installation
    </Tip>

    You can choose the appropriate installation for your system and hardware below

    <Tabs>
      <Tab title="Windows">
        <Card title="ComfyUI Desktop (Windows) Installation Guide" icon="link" href="/installation/desktop/windows">
          Suitable for **Windows** version with **Nvidia** GPU
        </Card>
      </Tab>

      <Tab title="MacOS(Apple Silicon)">
        <Card title="ComfyUI Desktop (MacOS) Installation Guide" icon="link" href="/installation/desktop/macos">
          Suitable for MacOS with **Apple Silicon**
        </Card>
      </Tab>

      <Tab title="Linux">
        <Note>ComfyUI Desktop **currently has no Linux prebuilds**, please visit the [Manual Installation](/installation/manual_install) section to install ComfyUI</Note>
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="ComfyUI Portable (Windows)">
    Portable version is a ComfyUI version that integrates an independent embedded Python environment, using the portable version you can experience the latest features, currently only supports **Windows** system

    <Card title="ComfyUI Portable (Windows) Installation Guide" icon="link" href="/installation/comfyui_portable_windows">
      Supports **Windows** ComfyUI version running on **Nvidia GPUs** or **CPU-only**, always use the latest commits and completely portable.
    </Card>
  </Accordion>

  <Accordion title="Manual Installation">
    <Card title="ComfyUI Manual Installation Guide" icon="link" href="/installation/manual_install">
      Supports all system types and GPU types (Nvidia, AMD, Intel, Apple Silicon, Ascend NPU, Cambricon MLU)
    </Card>
  </Accordion>
</AccordionGroup>

### 2. Load Default Text-to-Image Workflow

ComfyUI usually loads the default text-to-image workflow automatically when launched. However, you can try different methods to load workflows to familiarize yourself with ComfyUI's basic operations:

<Tabs>
  <Tab title="Load from Workflow Template">
    <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-1.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=f36907b86275d587856890f60cd9dffa" alt="ComfyUI Interface" width="973" height="696" data-path="images/tutorial/gettingstarted/first-image-generation-1.jpg" />

    Follow the numbered steps in the image:

    1. Click the **Fit View** button in the bottom right to ensure any loaded workflow isn't hidden
    2. Click the **folder icon (workflows)** in the sidebar
    3. Click the **Browse example workflows** button at the top of the Workflows panel

    Continue with:

    <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-2-load-workflow.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=8150e0d615a7870ea0e03a329fd60eca" alt="Load Workflow" width="972" height="692" data-path="images/tutorial/gettingstarted/first-image-generation-2-load-workflow.jpg" />

    4. Select the first default workflow **Image Generation** to load it

    Alternatively, you can select **Browse workflow templates** from the workflow menu

    <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-1-menu.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=8da40da00d3ff8d61117b59486fc7e10" alt="ComfyUI Menu - Browse Workflow Templates" width="612" height="536" data-path="images/tutorial/gettingstarted/first-image-generation-1-menu.jpg" />
  </Tab>

  <Tab title="Load from Images with Metadata">
    All images generated by ComfyUI contain metadata including workflow information. You can load workflows by:

    * Dragging and dropping a ComfyUI-generated image into the interface
    * Using menu **Workflows** -> **Open** to open an image

    Try loading the workflow using this example image:
    ![ComfyUI-Text to Image Workflow](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/text-to-image-workflow.png)
  </Tab>

  <Tab title="Load from workflow.json">
    ComfyUI workflows can be stored in JSON format. You can export workflows using menu **Workflows** -> **Export**.

    Try downloading and loading this example workflow:

    <a className="prose" href="https://github.com/Comfy-Org/docs/blob/main/public/text-to-image.json" download style={{ display: 'inline-block', backgroundColor: '#0078D6', color: '#ffffff', padding: '10px 20px', borderRadius: '8px', borderColor: "transparent", textDecoration: 'none', fontWeight: 'bold'}}>
      <p className="prose" style={{ margin: 0, fontSize: "0.8rem" }}>Download text-to-image.json</p>
    </a>

    After downloading, use menu **Workflows** -> **Open** to load the JSON file.
  </Tab>
</Tabs>

### 3. Model Installation

Most ComfyUI installations don't include base models by default. After loading the workflow, if you don't have the [v1-5-pruned-emaonly-fp16.safetensors](https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/blob/main/v1-5-pruned-emaonly-fp16.safetensors) model installed, you'll see this prompt:

<img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-3-missing-models.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=8c0caf2e3c786c231a609ea12e098b6b" alt="Missing Models" width="972" height="696" data-path="images/tutorial/gettingstarted/first-image-generation-3-missing-models.jpg" />

All models are stored in `<your ComfyUI installation>/ComfyUI/models/` with subfolders like `checkpoints`, `embeddings`, `vae`, `lora`, `upscale_model`, etc. ComfyUI detects models in these folders and paths configured in `extra_model_paths.yaml` at startup.

<img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-4-models-folder.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=778f5059f3006d74f301353d2e8b7283" alt="ComfyUI Models Folder" width="1564" height="1228" data-path="images/tutorial/gettingstarted/first-image-generation-4-models-folder.jpg" />

You can install models through:

<Tabs>
  <Tab title="Automatic Download">
    After you click the **Download** button, ComfyUI will execute the download, and different behaviors will be performed depending on the version you are using.

    <Tabs>
      <Tab title="ComfyUI Desktop">
        The desktop version will automatically complete the model download and save it to the `<your ComfyUI installation location>/ComfyUI/models/checkpoints` directory.
        You can wait for the installation to complete or view the installation progress in the model panel on the sidebar.

        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-4-download-status.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=6670dffa055e0259d86508daf9fa7e6d" alt="Model Download Progress" width="974" height="697" data-path="images/tutorial/gettingstarted/first-image-generation-4-download-status.jpg" />

        If everything goes smoothly, the model should be able to download locally. If the download fails for a long time, please try other installation methods.
      </Tab>

      <Tab title="ComfyUI Portable">
        The browser will execute file downloads. Please save the file to the `<your ComfyUI installation location>/ComfyUI_windows_portable/ComfyUI/models/checkpoints` directory after the download is complete.
      </Tab>
    </Tabs>
  </Tab>

  <Tab title="ComfyUI Manager">
    ComfyUI Manager is a tool for managing custom nodes, models, and plugins.

    <Steps>
      <Step title="Open ComfyUI Manager">
        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=35089fff2e0f149668db12ed61884b5c" alt="ComfyUI Manager Installation" width="492" height="124" data-path="images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager.jpg" />

        Click the `Manager` button to open ComfyUI Manager
      </Step>

      <Step title="Open Model Manager">
        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager-model-manager.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=8bcac3c9ba49905c5dadf82f926acf2b" alt="ComfyUI Manager Model Management" width="1200" height="723" data-path="images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager-model-manager.jpg" />

        Click `Model Manager`
      </Step>

      <Step title="Search and Install Model">
        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager-download-model.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=a872d7ed8c800fa99f4bc43226611874" alt="ComfyUI Manager Model Download" width="1200" height="723" data-path="images/tutorial/gettingstarted/first-image-generation-4-comfyui-manager-download-model.jpg" />

        1. Search for `v1-5-pruned-emaonly.ckpt`
        2. Click `install` on the desired model
      </Step>
    </Steps>
  </Tab>

  <Tab title="Manual Installation">
    Visit [v1-5-pruned-emaonly-fp16.safetensors](https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/blob/main/v1-5-pruned-emaonly-fp16.safetensors) and follow this guide:

    <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-5-hugging-face.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=a355f8e389778410391df67ea894f750" alt="Hugging Face Model Download" width="769" height="727" data-path="images/tutorial/gettingstarted/first-image-generation-5-hugging-face.jpg" />

    Save the downloaded file to:

    <Tabs>
      <Tab title="ComfyUI Desktop">
        Save to `<your ComfyUI installation>/ComfyUI/models/checkpoints`

        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-6-2-desktop.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=55dafa97aedb1d44b5f66e2203008f73" alt="ComfyUI Desktop Model Save Location" width="911" height="710" data-path="images/tutorial/gettingstarted/first-image-generation-6-2-desktop.jpg" />
      </Tab>

      <Tab title="ComfyUI Portable">
        Save to `ComfyUI_windows_portable/ComfyUI/models/checkpoints`

        <img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-6-1-portable.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=c2eac23f3c0a044eaa1859bf436acde7" alt="ComfyUI Portable Model Save Location" width="1081" height="709" data-path="images/tutorial/gettingstarted/first-image-generation-6-1-portable.jpg" />
      </Tab>
    </Tabs>

    Refresh or restart ComfyUI after saving.
  </Tab>
</Tabs>

### 4. Load Model and Generate Your First Image

After installing the model:

<img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-7-queue.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=986b71eaa06a352ee541baa77baa159e" alt="Image Generation" width="2640" height="1384" data-path="images/tutorial/gettingstarted/first-image-generation-7-queue.jpg" />

1. In the **Load Checkpoint** node, ensure **v1-5-pruned-emaonly-fp16.safetensors** is selected
2. Click `Queue` or press `Ctrl + Enter` to generate

The result will appear in the **Save Image** node. Right-click to save locally.

<img src="https://mintcdn.com/dripart-mintlify-style-transfer-guide-1774068104/1IDsFwEtegrJBYcV/images/tutorial/gettingstarted/first-image-generation-8-result.jpg?fit=max&auto=format&n=1IDsFwEtegrJBYcV&q=85&s=e2e8c5c1da0e1819e598a17910aa6a03" alt="ComfyUI First Image Generation Result" width="2642" height="1390" data-path="images/tutorial/gettingstarted/first-image-generation-8-result.jpg" />

For detailed text-to-image instructions, see our comprehensive guide:

<Card title="ComfyUI Text-to-Image Workflow Guide" icon="link" href="/tutorials/basic/text-to-image">
  Click here for detailed text-to-image workflow instructions
</Card>

## Troubleshooting

### Model Loading Issues

If the `Load Checkpoint` node shows no models or displays "null", verify your model installation location and try refreshing or restarting ComfyUI.
