OpenClaw GPT Image Generation
Paste the following prompt into your AI chat to install this skill:
Please install @user_07ea056c/gpt-image-2-new into your AI assistant according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When calling an image generation API from a local agent, common failure modes include scattered auth configuration, oversized reference images, multi-image requests being collapsed into one canvas, and long-running tasks losing progress after interruption. gpt-image-openclaw turns this into a scripted, resumable workflow.
How It Works
- Configuration and auth: Prefer
config.jsonin the skill directory;OPENCLAW_IMAGE_ACCESS_KEYandOPENCLAW_IMAGE_BASE_URLalso work. The key should not be echoed in replies, logs, or generated files. - Generation modes: Supports text-to-image, plus local reference images via
--reference-image. Files larger than 4M are re-encoded below 4M; transparent backgrounds are flattened to white before upload. - Multi-image sets: Detects cues like “first image,” “套图,” or “product image set,” then splits the request into separate tasks while preserving product subject, brand style, and aspect ratio.
- Quality and credits: Defaults to
medium, with optionallow/high; printsestimated_creditsbefore task creation, and final charges follow the OpenClaw API response. - Task recovery: Maintains
openclaw_tasks.jsonwith task IDs, status, image URLs, and timestamps, then resumes pending tasks on the next run.
Boundaries and Notes
This is well suited for local generation of e-commerce assets, detail pages, hero images, and scene shots that need to be downloaded and reused individually. Treat the access key like a password; it is not stored in the runtime task file. Higher quality tiers consume more credits, and failures identify the stage: config check, reference upload, task creation, or polling.
Use Cases
- E-commerce operators generate detail-page hero shots, scene shots, and close-ups while keeping product style consistent.
- Designers have local reference images over 4M and need automatic compression before sending them to OpenClaw.
- Developers configure an OpenClaw accessKey in Claude Code, then run scripts for text-to-image and polling.
- Operators receive numbered image requests and need separate tasks returned by number for listing use.
Best For
- E-commerce operations staff who need one prompt split into hero, scene, and promo images.
- Local agent developers who configure OpenClaw credentials and run scripted image generation.
- Detail-page design assistants who generate close-ups, comparison shots, and packaging images from product references.
- Engineers managing long-running tasks who need to resume OpenClaw image jobs and retrieve image URLs.
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.
An AI-guided workflow for Chinese video dubbing and subtitles that configures iFlytek or edge-tts, splits audio, generates SRT, and composes the final video.