Sandbox
@Syh1906/openai-compatible-imagegen

OpenAI-compatible image skill and Codex plugin

This repo packages one image workflow in two forms: a standalone skill and a Codex Plugin. You can generate, edit, batch, QA, and deliver images through an OpenAI-compatible API, with focused canvas editing and result cards in Codex App.

48 stars4 forksJavaScriptUpdated 7d ago
Who it's for

Builders who use Codex or skill-based agents to make and edit images from prompts.

What it delivers

You can keep image generation, edits, batch runs, and review in one agent workflow instead of switching tools.

What it does

Image generation and editing

Create images from prompts and edit one or more reference images through OpenAI-compatible API routes or Atlas Cloud.

Batch workflows

Run JSONL batch jobs, keep manifests, and track long-running image jobs with saved results.

QA checks

Run checks for dimensions, alpha, edge contact, margins, and component placement before delivery.

Transparency workflows

Prepare transparency with native-alpha, chroma, emissive, mask, or verified prompt-alpha routes.

Codex canvas review

Open results in Codex App, mark regions, add instructions, and continue edits through the focused annotation canvas.

Local delivery and artifact handling

Preserve originals, handle local delivery failures, and keep safe error summaries while credentials stay local.

How to get it

  1. 1Requirements: a Codex version with Plugin support, Git, Node.js 20+, and Python 3.12 or…
    codex plugin marketplace add Syh1906/openai-compatible-imagegen
    codex plugin add openai-compatible-imagegen@openai-compatible-imagegen

README

OpenAI-Compatible Images

Generate, inspect, edit, and deliver images through an OpenAI-compatible API, Atlas Cloud, or the Codex App ChatGPT route.

Release License CI

English | 简体中文

OpenAI-Compatible Images ships one image core in two installation shapes. Use the portable Standalone Skill with Agent clients and command-line workflows, or install the Codex Plugin for result cards, focused canvas editing, annotations, immutable artifacts, and version history. API Key routes support the default OpenAI-compatible protocol and optional Atlas Cloud image generation.

Choose your package

PackageBest forIncludes
Standalone SkillCodex CLI, Claude Code, OpenCode, and other Agent Skills clientsGeneration, editing, JSONL batches, transparency, delivery, and QA
Codex PluginCodex App users who want result cards and a focused canvasAPI Key: full image workflow. ChatGPT: host generation and semantic canvas edits, with artifacts, delivery, and versions

Choose one installation shape for each environment. The packages share code and versions but keep separate local configuration and artifact directories. Follow the migration guide when moving an existing configuration to the Codex Plugin.

Codex App workflow

API Key generation and edits use durable asynchronous jobs. Track long batches, recover confirmed results after a wait times out, and resume local processing with saved originals. See long-running generation and batches.

Generate an image in the conversation, then open its focused canvas to mark regions and add instructions for each change.

Conversation result

OpenAI-Compatible Images result card in Codex App

Focused editing canvas

Theme-aware image canvas with region and arrow annotations

Install the Codex Plugin

Requirements: a Codex version with Plugin support, Git, Node.js 20+, and Python 3.12 or newer. The Plugin ZIP is platform-neutral and supports Windows, macOS, and Linux. Choose the API Key route with your own image API service, or choose the ChatGPT route when the Codex App host provides its image generation capability.

codex plugin marketplace add Syh1906/openai-compatible-imagegen
codex plugin add openai-compatible-imagegen@openai-compatible-imagegen

If the openai-compatible-imagegen marketplace is already registered, skip the first command. After installation, completely quit and restart Codex once so it loads the Plugin's Skill, MCP tools, and bundled dependencies.

The Plugin is prebuilt. Continue with configuration; see the installation guide for other installation methods and platform requirements.

Install the Standalone Skill

Download openai-compatible-imagegen-skill-<version>.zip from GitHub Releases. Extract it into your client's skills directory so SKILL.md is at the package root, then start a new session.

Requires Python 3.12 or newer and an image-service credential. The installation guide covers client paths and the third-party Skills CLI; then complete Standalone configuration. Follow the update guide to preserve configuration when switching an existing installation.

What it does

  • Generate images and edit one or more references.
  • Generate multiple images or batch different image requests.
  • Preserve published API originals when local delivery fails.
  • Resize, fit, add safe margins, split grids, and build preview boards.
  • Prepare transparency through configured native-alpha, chroma, emissive, mask, or verified prompt-alpha routes.
  • Run deterministic checks for dimensions, alpha, edge contact, margins, and components.
  • Keep credentials local and return only safe error summaries.
  • In Codex App, review results in conversation and continue through a focused annotation canvas.

Available operations depend on the selected route and model. Atlas Cloud currently supports text-to-image generation only. See configuration.

Use it

Describe the subject, composition, size, quantity, transparency, checks, and output you need:

Create a 16:9 product launch banner at 2K, then deliver a 1200x675 PNG.

Protect the notebook, recolor the mug, and open the result in the focused canvas for review.

Generate four editorial illustrations and keep a manifest of each batch result.

The Plugin presents results and canvas actions in Codex App. The Standalone Skill runs its bundled CLI and reports output and manifest paths.

Documentation

Use the documentation index to find installation, configuration, migration, updating, rollback, troubleshooting, and architecture guides.

Security

Credentials stay in user-controlled files or environment variables. The project does not run a hosted image service or collect prompts and outputs. See SECURITY.md for reporting and trust boundaries.

License

MIT

Files in the repo

Repository payload27 top-level entries
  • .agents
  • .codex-plugin
  • .github
  • agents
  • assets
  • dist
  • docs
  • examples
  • mcp
  • references
  • scripts
  • skills
  • tests
  • web
  • .gitignore
  • .mcp.json
  • AGENTS.md
  • CHANGELOG.md
  • CONTRIBUTING.md
  • LICENSE
  • package-lock.json
  • package.json
  • pnpm-workspace.yaml
  • README.md
  • README.zh-CN.md
  • SECURITY.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

cbrock84/
headcount

An agent organization for Claude Code, structured as a company — 15+ departments, 125+ skills, each independently installable.

1.4k

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

22k

Persistent file-based planning for AI coding agents and long-running tasks. Crash-proof markdown plans, session recovery after /clear and compaction, per-turn re-injection against context rot, deterministic completion gate. Manus-style. Install from npm, the Claude Code plugin marketplace, or npx skills. Codex, Cursor, OpenCode, 60+ agents.

27k

Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, backlinks, local SEO, maps intelligence, semantic clustering, e-commerce SEO, international SEO, Google APIs, and PDF/Excel reporting. Optional DataForSEO, Firecrawl, and Banana extensions.

17k
kharmanskyi/
open-steps

Skills that translate your coding agent's output into plain language: honest reports, straight verdicts, steps you can follow. MIT.

351