Loading...
Loading...
Generate or edit images with gpt-image-2 through Codex/ChatGPT subscription authentication instead of OPENAI_API_KEY. Use for text-to-image, reference-image editing, or visual assets when the user wants local Codex auth, especially when no native image tool is available. Do not use for official OpenAI API-key billing or OpenAI-compatible gateways.
npx skill4agent add ningzimu/codex-gpt-image codex-gpt-imagegpt-image-2SKILL.mdOPENAI_API_KEYscripts/codex_gpt_image.pySKILL.mdpython3 scripts/codex_gpt_image.py auth-statuspython3 scripts/codex_gpt_image.py login --open-browser--image~/.codex/auth.jsonCODEX_AUTH_FILE=/path/to/auth.jsonlogin--client-idCODEX_APP_SERVER_LOGIN_CLIENT_IDhttps://chatgpt.com/backend-api/codexgpt-image-2autoautoautoautopng100jpegwebpreferences/openai-images-api-parameters.mdmodelsizequalitybackgroundmoderationoutput_formatcodex_gpt_image.py login --open-browsercodex login~/.codex/auth.jsonPOST https://chatgpt.com/backend-api/codex/images/generationsPOST https://chatgpt.com/backend-api/codex/images/editsAuthorization: Bearer <access token from ~/.codex/auth.json>gpt-image-2