codex-gateway-imagegen

Installation
SKILL.md

Codex Gateway Imagegen

Use this skill to turn a prompt into an image file through the gateway defined in ~/.codex/config.toml.

It supports both:

  • text-to-image generation
  • image editing with one or more reference images

Quick Start

  1. Confirm whether the user wants generation or editing, then confirm the output path.
  2. Choose a size that matches the target:
    • Square image: 1024x1024
    • Portrait / phone screenshot: 1024x1536
    • Landscape: 1536x1024
  3. Run scripts/generate_gateway_image.py.
  4. If the request fails inside the sandbox with TLS, schannel, or read-timeout errors, rerun the same command with escalated host-network access.
  5. Report the saved file path.
Installs
1
First Seen
Jun 22, 2026