Keep going
Every workflow on Rundown University, free for 7 days
Members get all guides, courses, live sessions, and $1,000+ in partner perks.
Guides ChatGPT published may 14, 2026
Use Codex Desktop to build a GPT Image 2 app that turns a marketing campaign and design brief into prompts, test images, and a review gallery.
You will build a Node app that runs locally in the browser.
The app should let you describe a campaign, choose image dimensions, generate prompts, create images, and review the results in one place. In the demo, the app saves generated images locally and gives each card simple review controls like Keeper, Reject, Clear, and Notes.
Pro tip: we like OpenRouter for keys, and you can use the new ChatGPT Image 2.0 model through OpenRouter too.
Before generating real images, make sure the account you use has billing or credits enabled.
Once the app works, use Codex Desktop Annotation Mode to refine the interface.
Click or drag over anything you want fixed: labels, spacing, review states, controls, or layout. Then ask Codex to apply the fixes and retest the app.
This is where Codex Desktop is especially useful. Instead of describing a vague UI problem from memory, you can point at the exact part of the local app that needs work.
Good next upgrades:
Keep the improvements practical. The win is a local image testing workflow you can reuse for future campaigns, not a bigger app than your team actually needs.
Start with a clean folder so Codex has a clear place to write the app.
mkdir gpt-image-review-app
cd gpt-image-review-app
git initThe `git init` step gives you a checkpoint before Codex starts creating files. If the first version drifts, you can inspect the changes and recover more easily.
Open that folder in Codex Desktop. You can use Codex from the terminal too, but Desktop is useful here because you can run the app, preview it in the browser, and give visual feedback later.
Paste this prompt into Codex:
Build a local browser app for bulk image generation with GPT Image 2.0. Use a clean editorial studio theme. Let me describe a marketing campaign and design brief, choose image dimensions, generate editable prompts, create test images through OpenAI, and review results with Keep, Reject, Needs revision, and Notes fields. Create the files, show me how to add my OpenAI API key to .env, and test the flow.This keeps the request focused. You are asking Codex for a local browser app, not a terminal-only script. You are also asking for the API key to live in `.env`, which keeps secrets out of the frontend code.
If you want to use OpenRouter, say that directly in the prompt. You can also paste the relevant model or endpoint reference into Codex. New image models can be easy for coding agents to miss, so giving Codex the exact provider details can save a few rounds of cleanup.
After the first build, get an OpenAI API key and add it to the app's `.env` file.
Codex should usually create a `.env.example` file. Copy that file to `.env`, then paste your key into the matching variable.
cp .env.example .envYour app may use a variable like:
OPENAI_API_KEY=...If you are using OpenRouter, the app may use a second variable like:
OPENROUTER_API_KEY=...Do not paste API keys into browser JavaScript or commit them to git. The local server should read the key from `.env` and make the image request from the backend.
Install dependencies and start the local server:
npm install
npm run devOpen the localhost URL Codex gives you. It will usually be something like:
http://localhost:3000If Codex Desktop can run and test the app for you, let it. The terminal output helps Codex debug broken routes, missing packages, and API errors.
In the app, describe the marketing campaign and design brief you want to test.
Keep the brief short, but include enough direction to shape the images:
Create a launch campaign for a local, golf-themed coffee shop. The visuals should feel elegant, modern, useful, and credible. Avoid generic robot imagery. Show interior, exterior, and product shots.The brief is the control panel for the workflow. If the prompts feel generic later, come back here and tighten the audience, visual style, required subjects, or things to avoid.
Choose the dimensions you want before generating prompts.
For a real campaign, you might test:
Start small. Two formats with two images each is enough to prove the workflow before spending more credits.
Click Generate Prompts before you create images.
This step matters because it lets you catch weak prompt direction before you spend credits on image generation. Read the generated prompts and edit anything that feels too vague, too generic, or too far away from the campaign.
Check for three things:
Once the prompts look useful, click Generate Images to Test.
When the images finish, review them in the gallery.
Use the review controls while the reasoning is fresh. Mark the obvious keepers, reject anything that misses the brief, and leave notes on images that are close but need another pass.
The transcript called out one practical detail: image generation can take a while, especially through provider endpoints. Do not assume the app is broken just because a real batch takes longer than the prompt preview.
If generation fails, check the simple things first:
Keep going
Members get all guides, courses, live sessions, and $1,000+ in partner perks.