Sub2api 4K Image Generator TS

Streaming 4K image CLI for sub2api endpoints that dodges Cloudflare 524 timeouts

Tested · Works

Test report

Verdict
Tested · Works
Score
9.2/10
Tested
Aug 10, 2026
Environment
Claude Code 2.x (agent harness)

Ran it against a local mock of an OpenAI-compatible endpoint sitting behind a Cloudflare-style edge that returns 524 when no bytes flow for two seconds while generation takes five. The no-skill script I wrote first — a plain non-streaming POST to /v1/images/generations followed by res.json() — got HTTP 524 and saved nothing; the skill's bundled dist entrypoint defaulted to stream=true, logged the partial-image event at 1.5 s and wrote the decoded PNG. The shipped dist/ runs on bare Node with zero npm install, npm test passes 9/9, the Python fallback's --dry-run prints the identical payload, and the API key is masked to *** in stdout as promised. What it cannot do for you is the actual image: there is no public endpoint, so a SUB2API_BASE_URL and key for your own deployment are mandatory, and no real 4K render was produced in this test.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 8/10
  • Docs & honesty 5/5

What Sub2api 4K Image Generator TS does

A TypeScript CLI plus skill instructions for generating high-resolution images through a sub2api OpenAI-compatible endpoint, using SSE streaming so slow 4K renders do not hit a Cloudflare 524, and saving partial-image frames as diagnostics. Triggers on sub2api image generation, SUB2API_BASE_URL/SUB2API_API_KEY workflows, /v1/images/generations or /v1/responses calls, and 524 timeout debugging. You supply your own sub2api deployment and key.

How to install Sub2api 4K Image Generator TS

git clone https://github.com/fengyunzaidushi/sub2api-4k-image-generator-ts.git
mkdir -p ~/.claude/skills
cd sub2api-4k-image-generator-ts && cp -r sub2api-4k-image-generator-ts ~/.claude/skills/sub2api-4k-image-generator-ts

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Sub2api 4K Image Generator TS

  • /sub2api-4k-image-generator-ts Streaming 4K image CLI for sub2api endpoints that dodges Cloudflare 524 timeouts

It also activates on plain-language prompts like these:

  • Generate a 3840x2160 image through the sub2api SSE streaming CLI
  • Render a 4K image via sub2api without hitting a Cloudflare 524
  • Set SUB2API_BASE_URL and generate a high-res image with the CLI

Frequently asked questions

Is the Sub2api 4K Image Generator TS skill free?
Yes. The skill itself is free from fengyunzaidushi/sub2api-4k-image-generator-ts. SkillProof publishes the install command and an independent test verdict at no cost.
Does Sub2api 4K Image Generator TS work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Aug 10, 2026. Verdict: Tested · Works. Ran it against a local mock of an OpenAI-compatible endpoint sitting behind a Cloudflare-style edge that returns 524 when no bytes flow for two seconds while generation takes five. The no-skill script I wrote first — a plain non-streaming POST to /v1/images/generations followed by res.json() — got HTTP 524 and saved nothing; the skill's bundled dist entrypoint defaulted to stream=true, logged the partial-image event at 1.5 s and wrote the decoded PNG. The shipped dist/ runs on bare Node with zero npm install, npm test passes 9/9, the Python fallback's --dry-run prints the identical payload, and the API key is masked to *** in stdout as promised. What it cannot do for you is the actual image: there is no public endpoint, so a SUB2API_BASE_URL and key for your own deployment are mandatory, and no real 4K render was produced in this test.
What is the Sub2api 4K Image Generator TS SkillProof Score?
9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
How do I install Sub2api 4K Image Generator TS?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Sub2api 4K Image Generator TS with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.