codex - 💡(How to fix) Fix Support reference images for imagegen [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19136Fetched 2026-04-24 06:00:11
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1renamed ×1unlabeled ×1

Code Example

> Generate a selfie using @my-ugly-photo.png @my-sleeping-photo.jpg
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

Need codex CLI built-in image_gen tool can generate images with reference image files.

Currently Codex says the image_gen tool only accept 1 parameter prompt.

Expected use case is like:

> Generate a selfie using @my-ugly-photo.png @my-sleeping-photo.jpg

Additional information

No response

extent analysis

TL;DR

The image_gen tool in Codex CLI may need an update or a workaround to accept reference image files as parameters.

Guidance

  • Review the current image_gen tool documentation to confirm its limitations and parameters.
  • Explore the possibility of using a different separator or syntax to pass multiple image files as arguments, such as commas or quotes.
  • Consider filing a feature request or issue with the Codex development team to add support for reference image files.
  • Investigate alternative image generation tools or libraries that can be used in conjunction with Codex CLI.

Notes

The current implementation of the image_gen tool only accepts a single prompt parameter, which may limit its functionality.

Recommendation

Apply workaround: Use an alternative image generation tool or library that supports reference image files, as the current image_gen tool may not be capable of handling this functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Support reference images for imagegen [1 comments, 2 participants]