gpt-image-2

Installation
Summary

Generate images via your ChatGPT subscription using text-to-image, image editing, and style transfer.

  • Requires a local codex CLI login and active ChatGPT Plus or Pro subscription with image-generation entitlement; no separate OpenAI API keys or per-image billing needed.
  • Supports text-to-image generation, image-to-image editing, and multi-reference composition via repeatable --ref flags.
  • Invoked through a single bash script that snapshots the Codex session directory, runs codex exec with image generation enabled, and extracts the base64 PNG payload from the session rollout.
  • Pass user prompts through raw without rewriting unless requested; deliver the output image file directly rather than stopping at a path reference.
SKILL.md

πŸͺž GPT Image 2 β€” Image Generation via Your ChatGPT Subscription

agentspace.so Β· GitHub

Generate images with GPT Image 2 (ChatGPT Images 2.0) inside your agent, using your existing ChatGPT Plus or Pro subscription β€” no separate OpenAI access, no Fal or Replicate tokens, no per-image billing.

Text-to-image, image-to-image editing, style transfer, and multi-reference composition. Runs entirely through the local codex CLI you're already logged into.

Heads up β€” this skill requires a ChatGPT Plus or Pro subscription plus the Codex CLI installed locally. If you have neither, you can use GPT Image 2 in the browser via RunComfy instead β€” hosted, no ChatGPT subscription or local install needed (RunComfy account required):

The rest of this document covers the local Codex CLI flow for agents whose user has a ChatGPT subscription.

GPT Image 2 example β€” flat-color lobster repainted as a 1950s ukiyo-e woodblock print

Example output: a plain flat-color icon repainted via --ref in ukiyo-e style β€” composition preserved, rendering swapped, period-appropriate red seal added by the model unprompted.

Installs
385
GitHub Stars
11
First Seen
Apr 24, 2026
gpt-image-2 β€” agentspace-so/agent-skills