claw-worker/my-skills/ciii-responses-imagegen-claw
Claude Code and agent skill by claw-worker/my-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate images through the custom OpenAI-compatible Responses endpoint at https://codex.ciii.club/v1/responses using top-level model gpt-5.4 and the image_generation tool with gpt-image-2. Use when Codex needs a deterministic Python CLI workflow, explicit request and response JSON artifacts, or the user explicitly asks to use this endpoint/API path instead of the built-in image tool.
Install
npx vskill@latest install claw-worker/my-skills/ciii-responses-imagegen-clawSKILL.md
The same SKILL.md was published earlier as claw-worker/my-skills/ciii-responses-imagegen-claw.
CIII Responses ImageGen Claw
Overview
Use the bundled Python scripts to turn a text prompt into a saved image through the validated POST /v1/responses flow. Prefer this skill when the user wants the custom endpoint, the exact gpt-5.4 + image_generation + gpt-image-2 path, or reproducible request/response files.
For normal image generation, prefer `scripts/generate-image-sdk.py`. Use scripts/generate-image.py only as a raw-HTTP fallback when the SDK script is unavailable/incompatible, or when the user explicitly asks for the non-SDK path.
The validated request body shape is:
API Key Storage
Store OPENAI_API_KEY in the workspace .env file so shell runs can load it without relying on .bashrc:
Expected format:
Set restrictive permissions after creating/updating it:
Before running generation from shell, load the file like this:
Never print, echo, log, or include secret values such as OPENAI_API_KEY in user-visible output or request artifacts beyond normal Authorization headers handled internally by the scripts.
Workflow
- Read the user's prompt and choose an output path in the workspace.
- Ensure
OPENAI_API_KEYis available from the process environment. For shell runs, load/home/ubuntu/.zeroclaw/workspace/.envfirst if present. - Prefer
scripts/generate-image-sdk.pyfor generation. - Pass the prompt with
-Promptfor short text or-PromptFilefor multiline prompts. - Let the script write
<name>-request.jsonand<name>-response.jsonbeside the final image unless the user asks for different paths. - Report the final image path and keep the JSON artifacts when they help debugging or reproducibility.
- If
generate-image-sdk.pyis unavailable or incompatible, fall back toscripts/generate-image.pyusing the same prompt/output arguments.
Script
Run the preferred SDK script like this:
If python3 is not on PATH, try:
Raw-HTTP fallback:
PowerShell equivalent for Windows-style runs:
If python is not on PATH in PowerShell, try:
Important defaults:
- Endpoint:
https://codex.ciii.club/v1/responses - Top-level model:
gpt-5.4 - Image tool model:
gpt-image-2 - Action:
generate - Tool choice:
required - Size:
1536x1024 - Quality:
high - Output format:
png - Background:
opaque
Useful flags:
-ApiKeyoverridesOPENAI_API_KEYOPENAI_API_KEYshould come from the current process env; for this workspace, prefer loading/home/ubuntu/.zeroclaw/workspace/.env-Size,-Quality,-OutputFormat, and-Backgroundoverride image settings-TextModel,-ImageModel, and-ToolChoiceoverride the validated request body fields-RequestFileand-ResponseFilechange where JSON artifacts are saved-Forceallows overwriting existing outputs
Notes
- Prefer
generate-image-sdk.pyfor all normal image generation. - Use
generate-image.pyonly as the non-SDK/raw-HTTP fallback. - Do not print API keys or secret-bearing environment variables.
- Store
OPENAI_API_KEYin/home/ubuntu/.zeroclaw/workspace/.envand load it before shell runs. - Write request JSON as UTF-8 without BOM. This is required for this endpoint in this Windows environment; BOM can cause
Failed to parse request body. - Keep the request payload aligned with the validated structure above unless the user explicitly asks for a deliberate change.
- Keep this skill narrow. It currently bundles the validated text-to-image flow only.
- If the user asks for image editing, reuse the same endpoint family only after rebuilding the payload around
input_imagecontent and validating the response shape.
Resources
scripts/
generate-image-sdk.pyperforms the validated request flow through the OpenAI Python SDK, saves the JSON request and response, extractsimage_generation_call.result, and writes the final image file.generate-image.pyperforms the same validated request flow through the non-SDK/raw-HTTP path and is the fallback option.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ciii-responses-imagegen-claw/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/claw-worker/my-skills/ciii-responses-imagegen-claw)