메인 콘텐츠로 건너뛰기
OpenAI GPT-Image-1 노드 스크린샷 OpenAI GPT-Image-1은 ComfyUI 파트너 노드 시리즈의 일부로, 사용자가 OpenAI의 GPT-Image-1 모델을 통해 이미지를 생성할 수 있도록 합니다. 이 모델은 ChatGPT 4o에서 이미지 생성에 사용되는 것과 동일합니다. 이 노드는 다음을 지원합니다:
  • 텍스트 기반 이미지 생성
  • 이미지 편집 기능(마스크를 통한 인페인팅)

노드 개요

OpenAI GPT-Image-1 노드는 OpenAI의 이미지 생성 API를 통해 동기식으로 이미지를 생성합니다. 텍스트 프롬프트를 입력받아 설명과 일치하는 이미지를 반환합니다. GPT-Image-1은 현재 이용 가능한 OpenAI의 가장 고급 이미지 생성 모델로, 매우 세밀하고 사실적인 이미지를 만들 수 있습니다.
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 section of the documentation to understand the specific requirements for using the Partner Nodes.
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates. If you can’t find them in the template, your ComfyUI may be outdated. (Desktop version’s update will delay sometime)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

매개변수 설명

필수 매개변수

매개변수유형설명
prompt텍스트생성하려는 이미지의 내용을 설명하는 텍스트 프롬프트

위젯 매개변수

매개변수유형옵션기본값설명
seed정수0-21474836470생성 결과를 제어하는 데 사용되는 난수 시드
quality옵션low, medium, highlow이미지 품질 설정, 비용 및 생성 시간에 영향
background옵션opaque, transparentopaque반환된 이미지에 배경이 있는지 여부
size옵션auto, 1024x1024, 1024x1536, 1536x1024auto생성된 이미지의 크기
n정수1-81생성할 이미지의 수

선택적 매개변수

매개변수유형옵션기본값설명
image이미지임의의 이미지 입력없음이미지 편집을 위한 선택적 참조 이미지
mask마스크마스크 입력없음인페인팅을 위한 선택적 마스크 (흰색 영역이 교체됨)

사용 예시

텍스트 기반 이미지 생성 예시

아래 이미지는 간단한 텍스트 기반 이미지 워크플로우를 포함하고 있습니다. 이미지를 다운로드하여 ComfyUI로 드래그해 해당 워크플로우를 로드해 보세요. ComfyUI openai-gpt-image-1 워크플로우 해당 워크플로우는 매우 간단합니다: ComfyUI openai-gpt-image-1 워크플로우 예시 OpenAI GPT-Image-1 노드를 로드하고, prompt 노드에 생성하려는 이미지의 설명을 입력한 후, Save Image 노드를 연결한 다음 워크플로우를 실행하기만 하면 됩니다.

이미지 기반 이미지 생성 예시

아래 이미지는 간단한 이미지 기반 이미지 워크플로우를 포함하고 있습니다. 이미지를 다운로드하여 ComfyUI로 드래그해 해당 워크플로우를 로드해 보세요. ComfyUI openai-gpt-image-1 워크플로우 다음 이미지를 입력으로 사용하겠습니다: ComfyUI openai-gpt-image-1 워크플로우 입력 이 워크플로우에서는 OpenAI GPT-Image-1 노드를 사용해 이미지를 생성하고, Load Image 노드를 사용해 입력 이미지를 로드한 다음, 이를 OpenAI GPT-Image-1 노드의 image 입력에 연결합니다. ComfyUI openai-gpt-image-1 워크플로우 예시

여러 이미지 입력 예시

아래 이미지를 다운로드하여 ComfyUI로 드래그해 해당 워크플로우를 로드해 보세요. 여러 이미지 입력 예시 다음 모자 이미지를 추가 입력 이미지로 사용하겠습니다. 모자 해당 워크플로우는 아래 이미지와 같습니다: 여러 이미지 입력 예시 Batch Images 노드를 사용해 여러 이미지를 OpenAI GPT-Image-1 노드에 로드합니다.

인페인팅 워크플로우

GPT-Image-1은 이미지 편집 기능도 지원하며, 마스크를 사용해 교체할 영역을 지정할 수 있습니다. 아래는 간단한 인페인팅 워크플로우 예시입니다: 아래 이미지를 다운로드하여 ComfyUI로 드래그해 해당 워크플로우를 로드해 보세요. 이미지 기반 이미지 생성 섹션에서 사용한 입력 이미지를 계속 사용하겠습니다. ComfyUI openai-gpt-image-1 워크플로우 해당 워크플로우는 아래 이미지와 같습니다: ComfyUI openai-gpt-image-1 워크플로우 예시 이미지 기반 이미지 생성 워크플로우와 비교하면, Load Image 노드에서 마우스 오른쪽 클릭 메뉴를 통해 MaskEditor를 사용해 마스크를 그린 다음, 이를 OpenAI GPT-Image-1 노드의 mask 입력에 연결해 워크플로우를 완성합니다. 참고사항
  • 마스크와 이미지는 반드시 같은 크기여야 합니다.
  • 큰 이미지를 입력할 경우, 노드가 자동으로 이미지를 적절한 크기로 조정합니다.

FAQ

Please update your ComfyUI to the latest version (the latest commit or the latest desktop version). We may add more API support in the future, and the corresponding nodes will be updated, so please keep your ComfyUI up to date.
Please note that you need to distinguish between the nightly version and the release version. In some cases, the latest release version may not be updated in time compared to the nightly version. Since we are still iterating quickly, please ensure you are using the latest version when you cannot find the corresponding node.
API access requires that your current request is based on a secure network environment. The current requirements for API access are as follows:
  • The local network only allows access from 127.0.0.1 or localhost, which may mean that you cannot use the Partner Nodes in a ComfyUI service started with the --listen parameter in a LAN environment.
  • Able to access our API service normally (a proxy service may be required in some regions).
  • Your account does not have enough credits.
  • Currently, only 127.0.0.1 or localhost access is supported.
  • Ensure your account has enough credits.
Partner Nodes require credits for API calls to closed-source models, so they do not support free usage.
Please refer to the following documentation:
  1. Comfy Account: Find the User section in the settings menu to log in.
  2. Credits: After logging in, the settings interface will show the credits menu. You can purchase credits in SettingsCredits. We use a prepaid system, so there will be no unexpected charges.
  3. Complete the payment through Stripe.
  4. Check if the credits have been updated. If not, try restarting or refreshing the page.
Currently, we do not support refunds for credits. If you believe there is an error resulting in unused balance due to technical issues, please contact support.
Credits are not intended to be used as a negative balance or credit line. However, due to race conditions where partner nodes don’t always report costs before execution, a single execution may consume more credits than your remaining balance and temporarily result in a negative balance after completion. When your balance is negative, you will not be able to run Partner Nodes until you top up and restore a positive balance. Please ensure you have enough credits before making API calls.
Please visit the Credits menu after logging in to check the corresponding credits.
Currently, the Partner Nodes are still in the testing phase and do not support this feature yet, but we have considered adding it.
Yes, the expiration depends on the type of credits:
  • Monthly credits: Expire at the end of your billing period
  • Top-up credits: Expire 1 year from the date of purchase
No, your credits cannot be transferred to other users and are limited to the currently logged-in account, but we do not restrict the number of devices that can log in.
We do not limit the number of devices that can log in; you can use your account anywhere you want.
Email a request to support@comfy.org and we will delete your information