Codex Image Generation
To make an image in Codex, describe it in the chat or put $imagegen in the prompt; the built-in tool uses gpt-image-2, is not on the Free plan, and spends your Work and Codex allowance 3 to 5 times faster than a turn without an image. How to ask on each surface and what that costs on Plus, read Nov 12, 2026.
To make an image in Codex, describe it in the chat or put $imagegen in your prompt; the built-in tool "uses gpt-image-2 and counts toward your general Codex usage limits", and an image turn spends those limits "3-5x faster on average than similar turns without image generation" (Image generation and Pricing, OpenAI docs, read Nov 12, 2026). It is not for everyone: the pricing page adds that "Image generation isn't available on the Free plan". OpenAI suggests it for "UI assets, banners, backgrounds, illustrations, sprite sheets, and placeholders" made beside the code. The clip is OpenAI's Jul 9, 2026 walkthrough of ChatGPT Work, which shares Codex's allowance: a launch site whose visuals the presenter says were all generated in ChatGPT from a logo and brand guidelines.
Next: the five-hour allowance those image turns come out of, what an image costs once the allowance is gone or the API models and per-token prices for a large batch.
How to ask, surface by surface
| Where | How to ask for an image | How to give it a reference image |
|---|---|---|
| ChatGPT desktop app | Ask in the composer; $imagegen calls the skill by name |
Add the image to the composer |
| Codex CLI | Describe it in an interactive session, or include $imagegen |
Attach it with -i or --image |
| Codex IDE extension | Ask in the extension chat; $imagegen works here too |
Hold Shift while dragging it into the composer |
| ChatGPT on the web | Ask in a chat | Attach it to the composer |
Source: Image generation, OpenAI docs, read Nov 12, 2026. In the desktop app, selecting a generated image opens a viewer with a Focused view for one image and a Canvas view for every image of that chat; in Canvas view, Comment pins feedback to an image and Multi-select sends comments on several at once. On the web the allowance is not Codex's: there image availability and limits follow your plan and workspace settings, which is the subject of ChatGPT Images.
What an image costs your allowance
OpenAI gives no count of images per plan for Codex. It gives two things: the local messages a plan gets per five hours, and the 3 to 5 times multiplier. Dividing one by the other bounds how many image turns fit in a five-hour window on Plus if you did nothing else. This is Vi.ki's own arithmetic from OpenAI's two published figures, read Nov 12, 2026, and not a number OpenAI states:
| Model you are chatting with | Local messages per 5 hours on Plus | Image turns that fit (low end at 5 times, high end at 3 times) |
|---|---|---|
| GPT-6 Astra | 5 to 45 | 1 to 15 |
| GPT-6.1 Sol | 15 to 160 | 3 to 53 |
| GPT-6.1 Terra | 35 to 285 | 7 to 95 |
| GPT-6 Sol | 15 to 150 | 3 to 50 |
| GPT-6 Luna | 350 to 3,000 | 70 to 1,000 |
Source for the middle column: Pricing, OpenAI docs, the same ranges for Plus and for Standard Business seats. OpenAI says the multiplier depends "on image quality and size", so a large, high-quality image sits at the expensive end. Pro has no five-hour limit, though weekly limits may apply. Once the included allowance is used, "image generation also draws from credits", billed for GPT-Image-2 at 200 credits per 1M image input tokens, 50 cached and 750 output, and 125, 31.25 and 250 for its text tokens (Pricing).
For a large batch OpenAI's own advice is to leave the allowance alone: "set OPENAI_API_KEY in your environment and ask ChatGPT to generate images through the API so API pricing applies". With an API key signed in to Codex, API pricing applies to image generation in place of the plan's limits (OpenAI API Pricing).
Which image model Codex uses
OpenAI's pages do not agree, so here is each with its date:
- The Codex docs, read Nov 12, 2026, say built-in generation "uses
gpt-image-2", and the credit table on the pricing page lists only GPT-Image-2. - OpenAI's Sep 8, 2026 launch video for GPT Image 2.5 Sunburst and Flare ends by saying both are "available now in the API, ChatGPT, and Codex".
- OpenAI's deprecations page lists
gpt-image-2as deprecated on Nov 10, 2026, to be removed from the API on Feb 10, 2027, withgpt-image-2.6-sunburstorgpt-image-2.6-flareas the replacement.
We cannot tell from these whether Codex already draws with a newer model and the docs lag, or whether it still uses the model the API is retiring. The removal date is the API's; no page we read gives one for Codex.
Prompts that work, from OpenAI's page
OpenAI's advice is short prompts with fixed points: "A useful image prompt is often only one to three clear sentences." Say what the image is for, name the subject and setting, and state what it must not contain. When editing, "say exactly what should change and what must stay the same", and change one element at a time so the rest does not drift. For words inside an image, put the exact text in quotation marks and give its style, size, color and placement. With several reference images, number them and say what each is for. For dense layouts OpenAI's own caution is to "review every word and finish the asset in a design tool when needed" (Image generation).
What we think
We think OpenAI's Codex docs will name a built-in image model other than gpt-image-2 by Feb 10, 2027, the day that model leaves the API.
Confidence: Likely. Check by: Feb 10, 2027.
Why we think so: OpenAI deprecated gpt-image-2 in the API on Nov 10, 2026 and names the 2.6 models as its replacement, its own Sep 8 video already put the 2.5 models in Codex, and ChatGPT Images moved to Images 2.6 on Nov 4. What would prove us wrong: the Image generation page still naming gpt-image-2 on Feb 10, 2027.
Sources
- Image generation, OpenAI docs, read Nov 12, 2026
- Pricing, OpenAI docs, read Nov 12, 2026
- Deprecations, OpenAI API docs, read Nov 12, 2026
- Get started with ChatGPT Work, OpenAI, Jul 9, 2026 (video)
- Introducing GPT-Image-2.5 in the API, OpenAI, Sep 8, 2026 (video)
Moments
Get started with ChatGPT Work
OpenAI
Introducing GPT-Image-2.5 in the API
OpenAI
See also
-
CodexCodex is OpenAI's coding agent: it reads a codebase, edits files, runs commands and tests, reviews pull requests and works in the cloud. As of Nov 6, 2026 it lives inside the ChatGPT desktop app, in the Codex CLI, in IDE extensions, in Codex Cloud and on mobile, and every ChatGPT plan includes some of it, Free and Go too.
-
ChatGPT WorkChatGPT Work is the agent mode of ChatGPT for longer tasks: it researches, works across connected apps and files, and delivers finished documents, spreadsheets, presentations, reports and Sites. It launched on Jul 9, 2026 and shares its usage allowance with Codex. -
Codex Pricing and LimitsCodex comes with every ChatGPT plan as of Nov 6, 2026: Free ($0) and Go ($8) get GPT-6 Luna in the desktop app, Plus ($20) gets about 15 to 160 GPT-6.1 Sol messages per five hours plus Codex Cloud, and Pro ($100, $200 or $500) has no five-hour limit. Credits extend any plan, and an API key bills by the token instead.
-
ChatGPT CreditsChatGPT credits buy more Codex, ChatGPT Work and Office extension use after a plan's included usage runs out; as of Nov 6, 2026 they are charged per million tokens by model, last 12 months, and are separate from the API credits that come with Pro and Business.
-
GPT ImageGPT Image is OpenAI's family of image generation and editing models in the API, from gpt-image-1 (Apr 2025) to GPT-Image-2.6 Sunburst and Flare (Nov 4, 2026). The current models cost $8 per 1M image input tokens and $30 per 1M image output tokens, and power ChatGPT Images. -
ChatGPT ImagesChatGPT Images makes and edits images from a prompt in any chat, on every plan; the current version, Images 2.6 since Nov 4, 2026, adds looping GIFs and saved reference images. Free gets limited images, Plus and Pro get images with thinking, and Pro is unlimited within abuse guardrails.