Let Claude Code make images with ChatGPT Images via the Codex CLI
A creator who makes AI ads shared a setup: sign in to the Codex CLI with your ChatGPT account, then have Claude Code call codex exec with your image prompt and reference files. He says Claude can then generate images with ChatGPT Images 2.0 whenever a task needs one, and that the same trick works for calling other models.
Why it matters
You can keep one agent in charge of the project and still use the image model you prefer, without switching apps.
Who it's for
People who build ads, landing pages or decks with Claude Code and want ChatGPT-generated images.
How to try it
- Install the Codex CLI and sign in with your ChatGPT account.
- Tell Claude Code: "When you need an image, run codex exec with the prompt and these reference files, then save the result to /assets."
- Check the images and your ChatGPT usage after the first few runs.
Plan & availability: Needs Claude Code plus the Codex CLI signed in with your own ChatGPT plan; image use counts toward that plan.
Note: reported by users on X; we haven't independently confirmed it works in the current version.
Source: @notdwd on X ↗
Written by AgentStackList from the original post. Checked Oct 17, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codecodeximages
More ChatGPT tricks
- Split one task across several agents in GPT-6 Astra Pro · Oct 16
- Use Codex to chip away at your maintenance backlog · Oct 16
- Put your dot on call and steer Codex from your phone · Oct 16
- Shape a custom voice for your app with a prompt (GPT-Live-1) · Oct 16
Agent Stack Weekly · free
Get the week's best AI tricks
Limit and pricing changes, new MCP servers, and setup fixes for Claude Code, Codex, Cursor, Copilot and Antigravity.
No spam. Unsubscribe anytime. Read past issues