gpt-image-2 Image Generation Setup Guide
Learn how to use gpt-image-2 with Cherry Studio, Skills, and scripts.
Recommended approach: If you are a regular user, start with the web app for one-click image generation. Use the image generation endpoint https://api.llm-token.cn/v1/images/generations only when connecting a client or automation tool, and set the model ID to gpt-image-2.
| Item | Value | Description |
|---|---|---|
| Web app | https://image2.gpt-agent.cc/ | The recommended option. Beginners do not need to manage API parameters. |
| API endpoint | https://api.llm-token.cn/v1/images/generations | For Cherry Studio, Skills, scripts, and similar tools. |
| Model ID | gpt-image-2 | Enter the complete ID exactly as shown. |
| API Key | sk-xxxxxxxx | Use your own API key. |
Generation time varies by model, resolution, and queue. A client timeout does not mean the upstream rejected the request. Check existing results and usage before resubmitting. Skill 1.1.0 defaults to a 1200-second generation socket timeout and can recover downloads from saved responses.
1. Use the Web App
- Open https://image2.gpt-agent.cc/ in your browser.
- Click Settings in the upper-right corner and enter your API Key.
- Select
gpt-image-2and enter your prompt. - Choose the format, quality, aspect ratio, and number of images as needed, then click Generate.
The GPT Image Playground web interface. A red arrow points to the Settin…
The gpt-image-2 setup screen in the web app. Key settings such as API UR…
Common parameters include the prompt, format, quality, aspect ratio, and number of images. If you are new to the tool, keep the defaults and change only the prompt and aspect ratio.
The GPT Image Playground interface with an All Experiments menu and a pr…
The image generation parameter area in GPT Image Playground. Four parame…
2. Edit an Existing Image
To make a targeted edit, transfer the style, or improve an existing image, upload the original image first. Then clearly describe what to change, what to preserve, and the desired final style.
The GPT Image Playground interface for editing an existing image. A red…
3. Save the Generated Image
After generation finishes, right-click the image to save it or use the download button on the page.
The GPT Image Playground interface at img.codechase.site with Copy, Down…
4. Configure Cherry Studio
Recommendation: Cherry Studio works well for standard image sizes. For very high-resolution images, use the web app to avoid client timeout retries.
- Open Cherry Studio settings.
- Add a provider and select the OpenAI-compatible protocol.
- Set the API endpoint to
https://api.llm-token.cn/v1/images/generations. - Enter your API Key and set the model to
gpt-image-2. - Save the configuration, then select this model to generate images.
The Cherry Studio interface. A red arrow points to the Models option in…
Cherry Studio settings with a list of model providers on the left and AP…
The Add Provider dialog in Cherry Studio. An arrow points to the Provide…
Use “Guishu AI” as the provider name, then save and enable the configuration.
The Cherry Studio interface with a red arrow pointing to the current mod…
5. OpenClaw / ClawHub Skill
guishu-gpt-image-2 1.1.0 supports text-to-image, reference/mask edits, incremental batch saving, and download-only recovery. The publisher is quqi1599. Installation requires Node.js 22+; execution requires Python 3.10+. The default model remains gpt-image-2.
For installation, Windows commands, Key migration, editing, and recovery examples, see Skill 1.1.0.
npx --yes clawhub@latest --workdir ~/.openclaw/workspace install guishu-gpt-image-2 --version 1.1.0
export LLM_TOKEN_API_KEY="YOUR_GUI_SHU_TOKEN"
python3 "$HOME/.openclaw/workspace/skills/guishu-gpt-image-2/scripts/generate.py" \
--prompt "Blue smart speaker product poster, clean background, no invented logos or prices" --size 1024x1024 --quality high --n 1 --dry-runThe script reads LLM_TOKEN_API_KEY, then GUI_SHU_TOKEN_KEY. Version 1.1.0 no longer automatically uses OPENAI_API_KEY; if that variable holds your LLM API Gateway Key, explicitly add --key-env OPENAI_API_KEY. Do not paste keys into chat.
--dry-run checks local inputs without network access, Key lookup, or file writes. Remove it only when ready to generate a billable image. Empty prompts are rejected.