whatisgithub

What is codex-imagegen-free-reference?

luckyabsoluter/codex-imagegen-free-reference — explained in plain English

Analysis updated 2026-05-18

3PythonAudience · developerComplexity · 2/5Setup · easy

In one sentence

An add-on for Codex's image generation skill that lets you explicitly choose your own reference image and image model.

Mindmap

mindmap
  root((codex-imagegen-free-reference))
    What it does
      Manual reference image choice
      Codex-auth routing fix
      Transport selection flag
    Tech stack
      Python
      Codex CLI
      OpenAI API
    Use cases
      Pick your own reference image
      Use Codex-auth image models
      Choose generation route
    Setup
      Clone into Codex skills folder
      Restart Codex
      Run CLI script directly

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Choose a specific local reference image instead of letting Codex pick one automatically for image generation.

USE CASE 2

Generate or edit images using Codex-auth models like gpt-image-2 that the standard OpenAI API path cannot reach.

USE CASE 3

Pick between the Responses hosted image route and the Image API route for a given generation task.

What is it built with?

PythonCodex CLIOpenAI API

How does it compare?

luckyabsoluter/codex-imagegen-free-reference0marildo/imago0xdfi/glm-5.2-1m-4x-dgx-spark
Stars333
LanguagePythonPythonPython
Setup difficultyeasyeasyhard
Complexity2/52/55/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires an existing Codex installation and account, no separate API key mentioned.

No license information is stated in the README, so usage rights are unclear.

So what is it?

Codex ImageGen Free Reference is an add-on for a built-in image generation feature already included in Codex, an AI coding tool. The built-in feature creates or edits images automatically but manages reference images on its own without letting you pick them. This project changes that by giving you direct, explicit control over which local reference image gets used when generating or editing a picture. The tool also fixes a technical mismatch: the standard fallback command line version of Codex's image tool sends requests through the regular OpenAI API, which does not work correctly with certain image models tied to a Codex account login. This project instead routes requests through Codex's own base address, so those account linked models function as expected. Beyond reference image selection, the tool lets you choose which underlying request path is used, either the hosted image generation route or a separate image API route meant for generating and editing, using a command line flag. The built in version only supports one of these paths. You can also choose which specific image model to use and adjust how much reasoning effort it applies, rather than being stuck with whatever defaults Codex currently ships with. When you generate or edit an image, the original files and a log of requests and responses are saved in a folder inside your Codex configuration directory, and the finished images are then copied into your actual project folder, meaning the same image ends up stored in two places. To install it, you clone the project into your Codex skills folder and restart Codex. Once installed, you can trigger it from within Codex with a short natural language command, or you can run the included Python script directly from the command line for the same result.

Copy-paste prompts

Prompt 1
Install codex-imagegen-free-reference into my Codex skills folder and restart Codex to activate it.
Prompt 2
Use codex-imagegen-free-reference to edit this project image with a specific reference image I choose.
Prompt 3
Run scripts/codex_image_gen.py directly with a chosen model and reasoning effort flag instead of Codex's defaults.
Prompt 4
Show me where codex-imagegen-free-reference stores the original generated images and request logs on my machine.

Frequently asked questions

What is codex-imagegen-free-reference?

An add-on for Codex's image generation skill that lets you explicitly choose your own reference image and image model.

What language is codex-imagegen-free-reference written in?

Mainly Python. The stack also includes Python, Codex CLI, OpenAI API.

What license does codex-imagegen-free-reference use?

No license information is stated in the README, so usage rights are unclear.

How hard is codex-imagegen-free-reference to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codex-imagegen-free-reference for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.