Your privacy choices

Allow optional cookies for referral attribution, visit analytics, and Google Ads purchase measurement.

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.

ItemValueDescription
Web apphttps://image2.gpt-agent.cc/The recommended option. Beginners do not need to manage API parameters.
API endpointhttps://api.llm-token.cn/v1/images/generationsFor Cherry Studio, Skills, scripts, and similar tools.
Model IDgpt-image-2Enter the complete ID exactly as shown.
API Keysk-xxxxxxxxUse 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

  1. Open https://image2.gpt-agent.cc/ in your browser.
  2. Click Settings in the upper-right corner and enter your API Key.
  3. Select gpt-image-2 and enter your prompt.
  4. 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 Settings icon in the upper-right corner. Click this icon to enter your API Key and complete the initial web app setup.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 URL, API Key, and the gpt-image-2 model are highlighted. The API URL shown is https://gpt - agent .cc/v1. A Reset All Data button appears in the lower-right corner.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 prompt and parameter search box at the top. Red arrows highlight the Generate button and the auto, high, PNG, 1000, auto, and 1 parameter settings.The GPT Image Playground interface with an All Experiments menu and a pr…

The image generation parameter area in GPT Image Playground. Four parameter fields display auto, auto, PNG, and low, with auto and low highlighted to show the default quality and format-related settings.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 arrow points to a Click Here area where users enter their editing instructions. The prompt box contains a request for a 500-character short story about a cat, and format, quality, aspect ratio, and image count settings appear below.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, Download, and Edit actions in a dropdown menu. Two generated images are shown with prompts to make one image darker and create a Battle Through the Heavens plugin cover from another image. The auto, medium, PNG, low, and 1 parameter options and a blue Generate button are visible.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.

  1. Open Cherry Studio settings.
  2. Add a provider and select the OpenAI-compatible protocol.
  3. Set the API endpoint to https://api.llm-token.cn/v1/images/generations.
  4. Enter your API Key and set the model to gpt-image-2.
  5. Save the configuration, then select this model to generate images.

The Cherry Studio interface. A red arrow points to the Models option in the top navigation, showing where to begin configuring a model.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 API Key and API URL fields on the right. A red arrow points to the Add button below the provider list.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 Provider Name field, the Provider Type menu is set to OpenAI, and Cancel and Confirm buttons appear in the lower-right corner.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 model selector labeled Queen and CherryAI. Click this area to switch models after saving 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.

ClawHub

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-run

The 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.