A polished, self-hosted GPT Image workspace for teams that need product shots, campaign visuals, AI creative exploration, and multilingual image workflows.
Read this in: English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Français | Deutsch | Português
ImgX Studio is a premium WebUI for GPT Image / OpenAI-compatible image APIs. It helps designers, marketers, product teams, and AI creators move from idea to production-ready visual in one focused flow: write a brief, upload references, tune output specs, generate multiple candidates, pick the strongest image, then keep iterating from that result.
If you want a beautiful, customizable, self-hosted gpt-image-2 WebUI, ImgX Studio is designed to be the fastest path from API access to a usable product.
| What you need | How ImgX Studio helps |
|---|---|
| A polished image-generation UI | Modern Next.js interface with a designer-friendly control panel and clean result grid. |
| Reliable creative output | Requests 1-4 images as separate calls to reduce missing results from batch limits. |
| Text-to-image and image-to-image | Generate from a prompt or upload up to 4 references for edits, variations, and extensions. |
| Iteration, not one-off prompts | Select any generated image as the next source and continue with remix actions. |
| Flexible API routing | Use browser-direct requests or a server proxy through /api/images to keep keys on the server. |
| OpenAI-compatible endpoints | Base URLs are normalized automatically for /v1/images/generations and /v1/images/edits. |
| Global-ready interface | Ships with UI copy for 9 languages and dedicated README files for each supported language. |
| Workflow | Example use case |
|---|---|
| Product hero shots | Turn product photos into premium e-commerce visuals, ads, and social covers. |
| Campaign exploration | Generate several creative directions, compare them quickly, and branch from the strongest option. |
| Commercial retouching | Use a result as the source image, then refine artifacts, material realism, lighting, and composition. |
| Controlled variations | Keep the subject and layout stable while exploring backgrounds, angles, mood, and styling. |
| Private team deployment | Run it on your own server or Vercel for internal design, marketing, or content teams. |
- Designed for gpt-image-2: includes
gpt-image-2,gpt-image-2-2026-04-21, andgpt-image-1model options. - Reference-aware generation: upload PNG, JPG, or WEBP reference images, up to 4 files and 10MB per file.
- Creative iteration board: choose a result, set it as the active source, then generate the next branch.
- Remix recipes: quickly apply variation, commercial polish, hero upscale, or local redraw instructions.
- Output control: choose smart, square, landscape, portrait, 2K, 4K, or custom dimensions from 64-8192 px per side.
- Production formats: export PNG, JPEG, or WEBP with auto, opaque, or transparent background modes.
- Privacy-aware key handling: store connection settings only in local browser storage, or keep server keys in
OPENAI_API_KEY. - Localized product experience: language switcher, locale-aware metadata, UI labels, prompt presets, and error messages.
| Locale | README | UI support |
|---|---|---|
| English | README.md | Yes |
| 简体中文 | README.zh-CN.md | Yes |
| 繁體中文 | README.zh-TW.md | Yes |
| 日本語 | README.ja.md | Yes |
| 한국어 | README.ko.md | Yes |
| Español | README.es.md | Yes |
| Français | README.fr.md | Yes |
| Deutsch | README.de.md | Yes |
| Português | README.pt.md | Yes |
- Next.js 16 + React 19
- TypeScript
- Tailwind CSS 4
- shadcn/ui + Base UI
- OpenAI Node SDK
- Sonner Toast
git clone <your-repo-url>
cd gpt-image-2-webuinpm installFor browser direct mode, you can skip server environment variables and enter the API key directly in the UI.
For server proxy mode, copy the example file:
cp .env.example .env.localThen fill in:
OPENAI_API_KEY=sk-...npm run devOpen http://localhost:3000.
- Enter a prompt or start from a built-in prompt preset.
- Optionally upload PNG / JPG / WEBP references, up to 4 images and 10MB per image.
- Choose size, quality, output format, background, and image count.
- Select a connection mode:
- Browser direct: the browser calls your endpoint directly; the endpoint must support CORS.
- Server proxy: the app forwards requests through
/api/imagesand can useOPENAI_API_KEY.
- Generate images, select the strongest result, download it, or set it as the source image for the next round.
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY |
No | Used by server proxy mode. A key entered in the UI takes priority; otherwise the server env value is used. |
NEXT_ASSET_PREFIX |
No | Sets the static asset prefix for sub-path or CDN deployments. |
- Fork this repository.
- Import it into Vercel.
- Add
OPENAI_API_KEYin Vercel Project Settings if you want server proxy mode. - Deploy and open your project domain.
The project uses Next.js standalone output:
npm run build
npm run start- In browser-direct mode, the API key is sent from the browser to the endpoint you configure.
- If you enable Remember on this device, the API key and base URL are stored only in the current browser's
localStorage. - In server-proxy mode,
OPENAI_API_KEYcan stay on the server so team members do not need to enter a shared key repeatedly.
- Generation history
- Prompt template management
- Project / canvas grouping
- More model provider presets
- Dockerfile and one-click deployment templates
Issues and pull requests are welcome, especially for:
- OpenAI-compatible endpoint adapters
- Better prompt presets
- Localization improvements
- Workflow and UI refinements
- Deployment examples and docs
If ImgX Studio saves you time building a gpt-image-2 WebUI, consider starring the project and sharing it with creators who need a better AI image workflow.
This repository does not include a License file yet. Add MIT, Apache-2.0, or your preferred open-source license before formal release.



