> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-Image-2 Workflows in ComfyUI

> How to run the GPT-Image-2 text-to-image and image edit workflows in ComfyUI, locally or on Comfy Cloud

This guide shows how to run the GPT-Image-2 workflows in ComfyUI. For what the model is and what it does best, see the [GPT-Image-2 overview](/tutorials/partner-nodes/openai/gpt-image-2).

<Tip>
  To use the Partner Nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the [Partner Nodes Overview](/tutorials/partner-nodes/overview) section of the documentation to understand the specific requirements for using the Partner Nodes.
</Tip>

<Tip>
  <Tabs>
    <Tab title="Local users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated.

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Cloud users">
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

## Getting Started

1. Update ComfyUI to the latest version (v0.19.4 or later), or use [Comfy Cloud](https://links.comfy.org/4u4o7Pv).
2. In the Node Library, search for **OpenAI GPT Image 1.5** and add the node.
3. Set the `model` field to `gpt-image-2`.

## Available workflows

### Text to image (T2I)

Generate an image from a text prompt with GPT-Image-2's reasoning-driven composition.

<CardGroup cols={2}>
  <Card title="Run Text-to-Image on Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_openai_gpt_image_2_t2i&utm_source=docs&utm_medium=referral&utm_campaign=gpt-image-2">
    Try the Text-to-Image workflow instantly on Comfy Cloud.
  </Card>

  <Card title="Download Text-to-Image workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_2_t2i.json">
    Download the workflow JSON.
  </Card>
</CardGroup>

![GPT-Image-2 Text-to-Image workflow preview](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_2_t2i-1.webp)

![GPT-Image-2 Text-to-Image example](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai/gpt_image_2/gpt_image_2_t2i_1.jpg)

### Image edit

Edit an input image with high structural fidelity at up to 2K resolution.

<CardGroup cols={2}>
  <Card title="Run Image Edit on Cloud" icon="cloud" href="https://cloud.comfy.org/?template=api_openai_gpt_image_2_image_edit&utm_source=docs&utm_medium=referral&utm_campaign=gpt-image-2">
    Try the Image Edit workflow instantly on Comfy Cloud.
  </Card>

  <Card title="Download Image Edit workflow" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_2_image_edit.json">
    Download the workflow JSON.
  </Card>
</CardGroup>

![GPT-Image-2 Image Edit workflow preview](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_2_image_edit-1.webp)

<Card title="Download Sample Input Image" icon="image" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/product_shoe.png">
  Get the example input image for this workflow
</Card>

![GPT-Image-2 Image-to-Image example](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai/gpt_image_2/gpt_image_2_i2i_1.jpg)

![GPT-Image-2 Image Edit example 1](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai/gpt_image_2/gpt_image_2_image_edit_1.jpg)

![GPT-Image-2 Image Edit example 2](https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/api_nodes/openai/gpt_image_2/gpt_image_2_image_edit_2.jpg)
