GPT Image 2 — Pro Pack on RunComfy

作者 prime-skillsfca19ae084c2MIT收錄於 2026年10月8日更新於 2026年10月8日

Generate and edit images with OpenAI GPT Image 2 (ChatGPT Images 2.0) on RunComfy. Documents GPT Image 2's strengths (embedded text, logos, multilingual typography, instruction precision), its 3 fixed sizes, edit-with-preservation language, and when to route to a sibling (Flux 2 / Nano Banana Pro / Seedream) instead. Calls `runcomfy run openai/gpt-image-2/text-to-image` or `/edit` through the local RunComfy CLI. Triggers on "gpt image 2", "gpt-image-2", "ChatGPT Images 2", "image 2", or any explicit ask to generate or edit with this model.

僅含說明Design & Creative
AI 產生的概覽

說明如何透過 RunComfy CLI 使用 OpenAI GPT Image 2 生成與編輯圖像,涵蓋提示詞、尺寸與模型選擇。

功能
這個技能只有說明文件,介紹如何透過本機 RunComfy CLI 呼叫 RunComfy 模型 API 的 openai/gpt-image-2/text-to-image 與 /edit 端點,包含輸入欄位結構、三種固定尺寸,以及保留式編輯的敘述方式。它也提供針對此模型的提示詞寫法、範例提示詞、適用情境、限制、結束碼,以及何時改用同類模型的建議。產出為生成的圖像檔案,由 CLI 下載到指定的輸出目錄。
適用情境
當使用者明確要求使用 GPT Image 2、ChatGPT Images 2 或 Image 2,或任務需要可靠的畫面內文字、標誌、招牌、多語言排版或版面精準度時使用。它也適合需要保持構圖、人物身分或品牌元素不變的迭代式編輯。
執行需求
需要全域安裝的 RunComfy CLI(透過 npm 安裝)與 RunComfy 帳號,可透過 runcomfy login 登入,或在 CI 與容器中設定 RUNCOMFY_TOKEN 環境變數。需要連線至 model-api.runcomfy.net 以及 runcomfy.net/runcomfy.com 下載主機的網路;編輯請求還需要可公開取得的 HTTPS 圖像網址。此技能未附帶任何指令碼。

GPT Image 2 — Pro Pack on RunComfy

runcomfy.com · Text-to-image · Edit · GitHub

OpenAI GPT Image 2 (ChatGPT Images 2.0) hosted on the RunComfy Model API — no OpenAI key, async REST.

bash
npx skills add agentspace-so/runcomfy-skills --skill gpt-image-2 -g

When to pick this model (vs siblings)

GPT Image 2's distinct strength is directive precision: it follows multi-element prompts, layout cues, and embedded-text instructions more reliably than its peers. Pick it when what's on the canvas matters more than how stylized it looks.

You wantUse
Embedded text, logos, signage, multilingual typographyGPT Image 2
Brand-safe, e-commerce / ad / UI mockup imageryGPT Image 2
Iterative refinement that holds composition stableGPT Image 2
Heavy stylization, painterly lookFlux 2
Hyperrealistic portraitNano Banana Pro
Cinematic / aesthetic-first hero shotsSeedream 5

If the user explicitly asked for GPT Image 2 / ChatGPT Image 2 / Image 2, route here regardless — don't second-guess the model choice.

Prerequisites

  1. RunComfy CLI — npm i -g @runcomfy/cli
  2. RunComfy account — runcomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

Two endpoints, same model.

openai/gpt-image-2/text-to-image

FieldTypeRequiredDefaultNotes
promptstringyes—The positive prompt
sizeenumno1024_10241024_1024 (1:1), 1024_1536 (2:3 portrait), 1536_1024 (3:2 landscape) — only these three

openai/gpt-image-2/edit

FieldTypeRequiredDefaultNotes
promptstringyes—Natural-language edit instruction
imagesstring[]yes—Up to 10 reference image URLs (publicly fetchable HTTPS)
sizeenumnoautoauto (preserve input ratio), or one of the three fixed sizes above

size=auto on edit preserves the input aspect ratio — strongly recommended unless the edit explicitly changes framing.

How to invoke

Text-to-image:

bash
runcomfy run openai/gpt-image-2/text-to-image \  --input '{"prompt": "<user prompt>", "size": "1024_1536"}' \  --output-dir <absolute/path>

Edit (single ref):

bash
runcomfy run openai/gpt-image-2/edit \  --input '{    "prompt": "<edit instruction>",    "images": ["https://..."]  }' \  --output-dir <absolute/path>

Edit (multi-ref, up to 10):

bash
runcomfy run openai/gpt-image-2/edit \  --input '{    "prompt": "compose subject from image 1 into the room from image 2; match the lighting of image 2",    "images": ["https://...subject.jpg", "https://...room.jpg"]  }' \  --output-dir <absolute/path>

The CLI submits, polls every 2s until terminal, then downloads any *.runcomfy.net / *.runcomfy.com URL from the result into --output-dir. Stdout is the result JSON. Stderr is progress.

For pipe-friendly usage:

bash
runcomfy --output json run openai/gpt-image-2/text-to-image \  --input '{"prompt":"..."}' --no-wait | jq -r .request_id

Prompting — what actually works

These are model-specific patterns that empirically improve output quality. Apply to text-to-image and edit alike.

Be explicit on subject + setting + mood. "A close-up of a matte ceramic water bottle on warm linen, soft window light, neutral background" — three concrete directives — beats "nice product photo of a bottle".

Quote embedded text exactly. Keep it short. GPT Image 2 is the strongest text-rendering model in this class, but only when you put the literal characters in quotes. Long blocks of text degrade. For multilingual text, name the script: "Japanese kana", "Cyrillic", "Arabic right-to-left".

Use compositional cues directly. "rule of thirds", "close-up", "aerial view", "centered subject", "shallow depth of field" — these have learned-meaning to the model.

Iterate one attribute at a time. When refining, change one thing per iteration (lighting OR background OR pose OR text) and keep the rest of the prompt verbatim. The model holds composition stable across iterations when only one knob moves.

Don't conflict instructions. "no text" + "the word 'AQUA+' on the label" is incoherent — the model will pick one and you don't control which.

Don't pile up styles. "ukiyo-e + watercolor + 8K + cinematic + minimalist" cancels out. Pick one or two style anchors max.

For the edit endpoint specifically:

  • State preservation goals. "keep the person's pose and face identity unchanged", "keep the brand mark and typography on the package", "keep the overall framing". The model needs to know what NOT to change.
  • Use directional language for spatial edits. "Move the headline from top-right to bottom-center", not "reposition the headline".
  • Multi-ref: number the images in the prompt — "subject from image 1, lighting and background from image 2" — and the model will route the cues correctly.

Where it shines

Use caseWhy GPT Image 2
E-commerce product photographyReliable text on labels, brand-safe lighting, consistent across SKUs
High-conversion adsHeadline + visual integration in one pass
Brand asset localizationOne source asset → many language variants of the same headline
Signage, posters, packaging mock-upsText rendering accuracy at multiple scales
UI mockups, scientific illustrationsLayout precision and label legibility

Sample prompts (verified to produce strong results)

Text-to-image — product hero:

A minimal hero product still life: a matte ceramic water bottle on warm linen,soft window light, the word "AQUA+" in clean sans-serif on the label,subtle rim highlights, e-commerce ready, 8K detail, neutral background

Text-to-image — multilingual signage:

A small Tokyo café storefront at dusk, warm interior glow,the sign reads "コーヒー" in bold Japanese kana on a wooden plaque,shallow depth of field, rule of thirds, cinematic

Edit — background swap with preservation:

Turn the background into a bright minimal white-to-soft-gray studio sweepwith gentle floor shadow; add a large headline in-image that reads"OPEN STUDIO" in a bold clean sans-serif, high contrast, centered;keep the main person or product, pose, and face identity unchanged

Limitations

  • Only 3 fixed sizes on text-to-image (and the same 3 + auto on edit). Extreme aspect ratios are auto-resized to the nearest supported one.
  • Prompt length ~ a few thousand tokens. Long blocks of embedded text degrade output.
  • Edit's multi-image support is "guidance from up to 10 refs", not ControlNet-style stacks. The first image is treated as the primary; the rest provide auxiliary cues.
  • Photorealism on portraits is not its strongest suit — Nano Banana Pro wins that head-to-head.

Exit codes

The runcomfy CLI uses sysexits-style codes:

codemeaning
0success
64bad CLI args
65bad input JSON / schema mismatch (e.g. size: "2048_2048" would 422)
69upstream 5xx
75retryable: timeout / 429
77not signed in or token rejected

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

  1. The skill invokes runcomfy run openai/gpt-image-2/<endpoint> with a JSON body matching the schema above.
  2. The CLI POSTs to https://model-api.runcomfy.net/v1/models/openai/gpt-image-2/<endpoint> with the user's bearer token.
  3. The Model API returns a request_id; the CLI polls GET .../requests/<id>/status every 2 seconds.
  4. On terminal status, the CLI fetches GET .../requests/<id>/result and downloads any URL whose host ends with .runcomfy.net or .runcomfy.com into --output-dir. Other URLs are listed but not fetched.
  5. Ctrl-C while polling sends POST .../requests/<id>/cancel so you don't get billed for GPU you stopped.

What this skill is not

Not a direct OpenAI API client. Not a capability grant — depends on a working RunComfy account. Not multi-tenant.

Security & Privacy

  • Token storage: runcomfy login writes the API token to ~/.config/runcomfy/token.json with mode 0600 (owner-only read/write). Set RUNCOMFY_TOKEN env var to bypass the file entirely in CI / containers.
  • Input boundary: the user prompt is passed as a JSON string to the CLI via --input. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.
  • Third-party content: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.
  • Outbound endpoints: only model-api.runcomfy.net (request submission) and *.runcomfy.net / *.runcomfy.com (download whitelist for generated outputs). No telemetry, no callbacks.
  • Generated-file size cap: the CLI aborts any single download > 2 GiB to prevent disk-fill from a malicious or runaway model output.

來源與署名

來源:prime-skills/runcomfy-agent-skills位於gpt-image-2提交fca19ae

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 prime-skills/runcomfy-agent-skills 的技能

Wan 2.7 — Pro Pack on RunComfy

prime-skills

Generate text-to-video with Wan 2.7 (Wan-AI's flagship motion model) on RunComfy. Documents Wan 2.7's strengths (multi-reference conditioning, audio-driven lip-sync via `audio_url`, smoother transitions, prompt expansion), the duration / resolution / aspect-ratio schema, and when to route to HappyHorse 1.0 / Seedance 2.0 / Kling / LTX 2 instead. Calls `runcomfy run wan-ai/wan-2-7/text-to-video` through the local RunComfy CLI. Triggers on "wan", "wan 2.7", "wan-2-7", "wan video", or any explicit ask to generate video with this model.

待分類2026年10月8日

Video Edit — Pro Pack on RunComfy

prime-skills

把影片編輯需求路由到三個 RunComfy 影片模型之一,並透過 RunComfy CLI 呼叫。

Design & Creative2026年10月8日

Seedance 2.0 Pro — Pro Pack on RunComfy

prime-skills

指導透過 RunComfy CLI 使用位元組跳動 Seedance 2.0 Pro 生成電影感短影音。

Design & Creative2026年10月8日

Nano Banana Edit — Pro Pack on RunComfy

prime-skills

指導透過 RunComfy CLI 使用 Google Nano Banana 2 進行圖生圖編輯。

Design & Creative2026年10月8日

Nano Banana 2 — Pro Pack on RunComfy

prime-skills

Generate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream instead. Calls `runcomfy run google/nano-banana-2/text-to-image` through the local RunComfy CLI. Triggers on "nano banana", "nano-banana-2", "nano banana 2", "google image gen", "gemini image", or any explicit ask to generate with this model.

待分類2026年10月8日

Image-to-Video — Pro Pack on RunComfy

prime-skills

將圖生影片請求路由到合適的 RunComfy 模型,並透過 RunComfy CLI 呼叫。

Design & Creative2026年10月8日