comfy generate: stale Gemini model enum and incomplete GPT Image 2 output/edit support

オープン
#613 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
openapi, python
領域
ai, api, cli

調査の方向性

nano-banana のフォールバック enum、汎用的な結果抽出、OpenAIImageEditRequest、および https://api.comfy.org/openapi.yml をリクエストする refresh コマンドから始めます。スキーマ、GPT Image 2 の生成/編集コマンド、および refresh コマンドを再現し、その後、関連するカタログとレスポンス処理を調べます。現在の Gemini 名が検証され、b64_json 画像がダウンロードされ、編集画像の入力が受け付けられ、refresh が動作するカタログエンドポイントを使用すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

comfy generate: stale Gemini image model enum and incomplete GPT Image 2 output/edit support

Describe the bug

comfy generate does not currently expose or fully handle several image models that are available through the current ComfyUI Partner Nodes:

  1. The nano-banana adapter uses a fixed Gemini model enum. It accepts the legacy gemini-3-pro-image-preview name, which the server resolves successfully to gemini-3-pro-image, but it rejects the current stable gemini-3-pro-image name and Nano Banana 2 (gemini-3.1-flash-image) before making a request.
  2. GPT Image 2 generation is accepted by the server through dalle --model gpt-image-2, but the response contains data[].b64_json. The CLI reports that no image URLs were found and --download does not save the image.
  3. The dalle-edit schema does not include an image input, so GPT Image 2 editing cannot be submitted: --image is rejected as an unknown flag.
  4. comfy generate refresh currently requests https://api.comfy.org/openapi.yml, which returns HTTP 404, so it cannot refresh the local catalog.

I also checked the current main branch. The Gemini fallback enum, URL-only generic result extraction, and OpenAIImageEditRequest without an image property are still present there.

To Reproduce

Environment:

comfy-cli 1.12.0
Python 3.12
macOS x86_64
Authentication: COMFY_API_KEY environment variable (no browser login)

Inspect the Nano Banana schema:

comfy generate schema nano-banana --json

The model enum is:

gemini-2.5-flash-image
gemini-2.5-flash-image-preview
gemini-3-pro-image-preview

Current stable model names are rejected locally:

comfy generate nano-banana \
  --prompt "A blue ceramic cube on a white background" \
  --model gemini-3-pro-image \
  --json

comfy generate nano-banana \
  --prompt "A blue ceramic cube on a white background" \
  --model gemini-3.1-flash-image \
  --json

Both return:

--model: '<model>' is not one of [...]

However, the legacy Pro name succeeds:

comfy generate nano-banana \
  --prompt "A blue ceramic cube on a white background" \
  --model gemini-3-pro-image-preview \
  --json

The successful server response reports:

{
  "modelVersion": "gemini-3-pro-image"
}

GPT Image 2 generation reaches the server successfully:

comfy generate dalle \
  --model gpt-image-2 \
  --prompt "A red glass sphere on a light gray background" \
  --n 1 \
  --quality low \
  --size 1024x1024 \
  --output_format png \
  --download gpt-image-2.png

The command exits successfully but does not save the image:

No image URLs found in response. Pass --json to inspect.
--download requested but no image URLs found in response.

The JSON response uses data[].b64_json. Trying to force a URL does not work:

comfy generate dalle \
  --model gpt-image-2 \
  --prompt "A green glass sphere on a light gray background" \
  --response_format url \
  --download gpt-image-2.png

The API returns:

API error 400
Unknown parameter: 'response_format'.

GPT Image 2 editing is blocked by the local schema:

comfy generate dalle-edit \
  --model gpt-image-2 \
  --prompt "Replace the circle with a star" \
  --image input.png \
  --download edited.png

Result:

Unknown flag: '--image'.

Finally:

comfy generate refresh

returns:

Failed to fetch https://api.comfy.org/openapi.yml: 404 Not Found

Expected behavior

  • nano-banana should accept the current Partner Node model identifiers, including gemini-3-pro-image and gemini-3.1-flash-image, or obtain the enum dynamically from the active catalog.
  • --download should decode and save OpenAI data[].b64_json image responses, similar to the existing Gemini inline-image decoder.
  • dalle-edit should expose the required image input(s), and optional mask input where supported, so GPT Image 2 editing can be submitted.
  • comfy generate refresh should fetch the current authenticated/public OpenAPI catalog from a working endpoint.
  • comfy generate list / schema should reflect models currently supported by the official ComfyUI Partner Nodes.

Nice to have

  • Terminal output
  • Screenshots

Additional context

  • Nano Banana Pro generation and image editing both succeeded when using gemini-3-pro-image-preview; the response identified the actual model as gemini-3-pro-image.
  • No API keys, account identifiers, generated base64 payloads, or private URLs are included in this report.
主要言語
Python
スター
1k
フォーク
176
平均マージ
1日 11時間
マージ済み PR(30日)
87

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Comfy-Org/comfy-cli のほかの issue

Comfy-Org/comfy-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。