AI Agent Hub
Back to skills
OpenClaw GPT Image Generation icon

OpenClaw GPT Image Generation

Design & Media Updated 2026.08.30

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.json in the skill directory; OPENCLAW_IMAGE_ACCESS_KEY and OPENCLAW_IMAGE_BASE_URL also 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 optional low / high; prints estimated_credits before task creation, and final charges follow the OpenClaw API response.
  • Task recovery: Maintains openclaw_tasks.json with 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.