Install
openclaw skills install @quqi1599/guishu-gpt-image-2Generate images with Guishu Token gpt-image-2 through the OpenAI-compatible images endpoint. Use when the user wants Guishu gpt-image-2 image generation, an OpenClaw image skill, scripted image creation, local image output, prompt-to-image tests, customer demos, or a gallery of generated images through https://api.llm-token.cn/v1/images/generations.
openclaw skills install @quqi1599/guishu-gpt-image-2Generate images through the Guishu Token OpenAI-compatible image endpoint.
Use the bundled script. It reads the API key from environment variables in this order:
LLM_TOKEN_API_KEYGUI_SHU_TOKEN_KEYOPENAI_API_KEYexport LLM_TOKEN_API_KEY="sk-..."
python3 {baseDir}/scripts/generate.py \
--prompt "a clean product poster for a blue smart speaker, studio lighting" \
--size 1024x1024 \
--quality high \
--n 1
The default endpoint is:
https://api.llm-token.cn/v1/images/generations
The default model is:
gpt-image-2
references/gpt-image-2-api.md when you need endpoint details, supported request fields, timeout guidance, or customer-facing setup notes.scripts/generate.py. Prefer --response-format b64_json so the script can save files locally without depending on temporary URLs.prompts.json, request.json, and index.html.# Dry-run without sending a billable request.
python3 {baseDir}/scripts/generate.py --prompt "test prompt" --dry-run
# Tall portrait.
python3 {baseDir}/scripts/generate.py \
--prompt "ultra realistic portrait photo, natural light, shallow depth of field" \
--size 1024x1792 \
--quality high
# Multiple prompts from a text file, one prompt per line.
python3 {baseDir}/scripts/generate.py --prompt-file ./prompts.txt --n 1
# Custom endpoint if the gateway changes.
python3 {baseDir}/scripts/generate.py \
--endpoint https://api.llm-token.cn/v1/images/generations \
--model gpt-image-2 \
--prompt "minimal app icon, white background"
--api-key.https://image2.gpt-agent.cc/.