OpenAI Codex stitches image to code

- OpenAI’s Codex and its new gpt-image-2 model are being used together to turn interface mockups into front-end code inside official tools. - OpenAI says gpt-image-2 became available in the API and Codex on April 21, while Codex now supports image generation in-app. - The setup links image creation, visual iteration, and coding in one workflow. (openai.com)

Turning a picture into software usually means handing a mockup from a designer to an engineer. OpenAI is now pitching a workflow where Codex can generate images, inspect them, and build code from the result. (openai.com) (developers.openai.com) The image side of that workflow is gpt-image-2, which OpenAI introduced on April 21, 2026. The company said the model is designed for stronger layouts, better text rendering, and more reliable instruction-following than earlier image models. (community.openai.com) (developers.openai.com) The coding side is Codex, OpenAI’s software engineering agent. OpenAI says Codex can plan and build features, refactor code, review work, and run multiple agents in parallel across projects. (openai.com 1) (openai.com 2) OpenAI tied those pieces together more explicitly last week. In its April 2026 product update, the company said the Codex app for macOS and Windows now adds image generation, computer use, in-app browsing, memory, and plugins. (openai.com) That matters for front-end work because user interface design is visual first. If the same system can draft a screen, revise the image, and then write the code that matches it, fewer handoffs are needed between design and engineering tools. (openai.com) (developers.openai.com) OpenAI’s developer docs describe two ways this can happen. A mainline model such as gpt-5.5 or gpt-5 can call the hosted image_generation tool, while Codex can also use gpt-image-2 directly for image work. (developers.openai.com) (community.openai.com) The company’s docs also say gpt-image-2 can take text and image inputs, which lets a developer feed in a screenshot, sketch, or existing page for edits. That is the technical piece that makes “image to code” demos plausible, even if OpenAI has not published a single branded feature with that exact name. (developers.openai.com 1) (developers.openai.com 2) What is still less clear is the boundary between official product capability and creator demo. OpenAI has documented image generation in Codex and documented Codex as an engineering agent, but the polished “mockup to tested front-end” loop circulating online appears to be a user workflow built on top of those releases, not a separately announced OpenAI product. (openai.com 1) (openai.com 2) (developers.openai.com) The practical question now is reliability. OpenAI says Codex is built for end-to-end engineering work and says gpt-image-2 improves text and layout quality, but teams still have to test whether generated interfaces match production standards across browsers, devices, and codebases. (openai.com) (community.openai.com) The demos point to a tighter loop between drawing and shipping. OpenAI’s own releases show the pieces are now in place inside Codex and the API, even if the smoothest version of the workflow is still being demonstrated by early users. (openai.com) (community.openai.com)

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.