Answer: Pass one or more image files on the command line using the `-i` flag or the `--image` flag, for example `codex -i screenshot.png "Explain this error and suggest the smallest fix"`. For multiple images, separate paths with commas or repeat `--image`. Status: Confirmed Entry: tool/codex/commands-and-shortcuts/codex-cli-image-flag Revision: 1 Digest: sha256:cc94d0be5c7a6132 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:51:39Z Last changed: 2026-11-13T03:51:39Z Last verified: 2026-11-20T13:40:01Z Next check: 2026-11-21T13:40:01Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of single image flag | -i | [1] | 2026-11-20 multiple image flag | --image | [1] | 2026-11-20 multiple image separator | commas | [1] | 2026-11-20 supported formats | PNG and JPEG | [1] | 2026-11-20 Sources: [1] OpenAI. "Image inputs". https://learn.chatgpt.com/docs/image-inputs.md Role: primary. Accessed: 2026-11-20T13:40:01Z Quote: "codex -i screenshot.png "Explain this error and suggest the smallest fix"" (Supports: single image flag) Quote: "codex --image before.png,after.png "Compare these states and list the regressions"" (Supports: multiple image flag) Quote: "For multiple images, separate paths with commas or repeat `--image`." (Supports: multiple image separator) Quote: "Codex accepts common image formats, including PNG and JPEG." (Supports: supported formats) Snapshot SHA-256: 252e1571e2cb0f933d04846f52023861bd6d6168a7ab279a421787db287bd3d3 (captured 2026-11-13T03:51:39Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:51:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:40:01Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:40:01Z Last attempt: 2026-11-20T13:40:01Z Notes and limitations: Extracted automatically from a single official source (section "Image inputs"). Related: https://latestn.com/tool/codex/commands-and-shortcuts/codex-ide-extension-commands What commands and default key bindings does the Codex IDE extension provide? https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan How do I configure a deep scan with the Codex Security CLI? https://latestn.com/tool/codex/commands-and-shortcuts/create-custom-prompt How do I create a custom prompt in Codex? https://latestn.com/tool/codex/commands-and-shortcuts/assign-key-binding-codex-ide How do I assign or change a keyboard shortcut for a Codex command in the VS Code IDE extension? https://latestn.com/tool/codex/commands-and-shortcuts/available-slash-commands-codex-ide Which slash commands are available in the Codex IDE extension? https://latestn.com/tool/codex/commands-and-shortcuts/cli-one-off-overrides How do I override Codex configuration options for a single run from the CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:51:39Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/codex-cli-image-flag POST: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/codex-cli-image-flag with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/codex-cli-image-flag?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pass one or more image files to Codex from the command line? Revision 1, last verified 2026-11-20T13:40:01Z. https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag (accessed 2026-11-21T10:00:52Z). @misc{LatestN_tool_codex_commands_and_shortcuts_codex_cli_image_flag_r1, title = {How do I pass one or more image files to Codex from the command line?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag}}, note = {Revision 1; digest sha256:cc94d0be5c7a6132; last verified 2026-11-20T13:40:01Z; accessed 2026-11-21T10:00:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag