GPT-image2 Image Generation
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @redfox-data/image-gen-redfox.
About this skill
Problem
When you want to move image generation from a web UI into scripts, pipelines, or batch jobs, calling OpenAI's gpt-image-2 directly means handling authentication, task submission, polling, and file output. This skill condenses that flow into a local script: provide a prompt to generate an image, or use a reference image for editing. It is useful for terminal-based prototyping, asset variants, and automated image generation.
How It Works
- Text-to-image: use
promptto describe the scene and output PNG, JPEG, or WebP. - Image-to-image: pass a reference image with
--image, then use--fidelity high/lowto decide whether to preserve detail or allow larger changes. - Parameterized output: supports whitelisted sizes, up to
10images per run,--bg transparentfor transparent backgrounds, and--compressionfor quality control. - Task control: use
--no-downloadto submit without waiting, and--task-idto inspect existing tasks, which helps integrate generation into longer workflows.
The script submits the request, waits for completion, and saves the result to the configured output directory.
Boundaries
- Use only the listed fast and high-resolution sizes; custom resolutions may be slow or fail.
promptis limited to 500 characters; reference images are currently PNG, JPEG, or WebP.- Transparent output requires PNG or WebP; JPEG does not support transparency.
- Generation usually takes about 10–30 seconds per image, with longer waits for complex scenes or batch jobs.
Use Cases
- Generate multiple product concept images from a prompt in a terminal script and save them to a directory.
- Edit a reference image with image-to-image mode, using fidelity to control how much detail is preserved.
- Create transparent-background assets for icons, stickers, or UI graphics using PNG or WebP output.
- Submit image generation jobs in automation without blocking, then query results later by task ID.
Best For
- Frontend engineers who need to embed image generation in local scripts or pipelines
- UI designers who batch-produce transparent-background icons and assets
- Independent developers who want rapid style variants from reference images
- Technical operators who maintain automated image jobs and track task results
Related Skills
Generate an interactive HTML product detail page from images and copy, with multi-product carousel, inline text editing, design controls, and PDF/JPG/PSD export support.
Enter a material name to get preview and download links for free, commercially usable video assets, with paid platform options, pricing, and search suggestions when results are limited.
A local CLI for Dreamina image and video generation, including credit checks, async submission, result queries, and task history review.
Generate and validate JianYing drafts from storyboard JSON with narrated commentary, original-sound preservation, timing checks, and draft inspection.