Built-in image_gen tool should accept explicit parameters: size, quality, output_format, filename/path
Resolved 💬 4 comments Opened May 3, 2026 by chrm52 Closed Jul 1, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
The current built-in image_gen tool (enabled via [features] image_generation = true) only accepts a single prompt parameter.
This forces users to cram everything into natural language, which is unreliable for:
- Exact dimensions
- Output filename / save path
- Quality settings
- Format (PNG with real transparency, WebP, etc.)
Current behavior (CLI / App)
Generate a hero banner, save as assets/hero.png
### Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional real-world scenario (why explicit
filenameis critical)This becomes especially painful when multiple Codex agents (or parallel tool calls) are generating images at the same time.
What happens today:
filenameparameter, Codex often ends up:This creates race conditions and broken workflows in any project that uses multiple agents or parallel image generation (very common in larger codebases, design systems, game asset pipelines, etc.).
With the requested feature this would be solved instantly:
agent in codex cli going through all the images to find the image which it requested to be generated via imagen. too much of wasted resources. easily fixed if imagen accepts prompt and filename for the generated image or let the agent know the filename of the generated image if its random.
<img width="439" height="424" alt="Image" src="https://github.com/user-attachments/assets/392ed002-d2e3-4b21-9659-fc7bc50d17a5" />
This feature request hasn't received enough upvotes, so it is being closed automatically. If you still feel this feature is needed, please open a new feature request with an updated title and description.