CommunityArt & Designgithub.com

fengyunzaidushi/sub2api-4k-image-generator-ts

Codex skill and TypeScript CLI for 4K AI image generation through self-hosted sub2api OpenAI-compatible endpoints, with streaming, SSE, partial image capture, and Cloudflare 524 timeout mitigation.

Works withClaude CodeCodex CLI~Cursor
npx skills add fengyunzaidushi/sub2api-4k-image-generator-ts

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

sub2api 4K Image Generator TS

Use this skill when the user wants TypeScript/Node image generation through sub2api rather than Codex's built-in image tool.

Workflow

  1. Work from the skill root that contains this SKILL.md.
  2. Ensure .env or the process environment provides:
SUB2API_BASE_URL=https://your-sub2api.example.com
SUB2API_API_KEY=sk-...
  1. Prefer the compiled JS entrypoint for normal use:
node .\dist\openai_4k_image_generator.js `
  "剑仙,云海,发光长剑,无文字无水印" `
  --size 3840x2160 `
  --quality high `
  --output-dir output
  1. For development, run the TypeScript source:
npx tsx .\scripts\openai_4k_image_generator.ts "test prompt" --dry-run
  1. Report final image paths, partial image paths, and any Cloudflare/SSE diagnostic in plain language. Never print full API keys.

Notes

  • Replace SUB2API_BASE_URL with the user's own deployed sub2api domain.
  • Treat 4K as explicit pixel sizes: 3840x2160 or 2160x3840.
  • Streaming is enabled by default to avoid Cloudflare 524 during slow 4K generation.
  • *-partial-XX.png files are diagnostics only; final images are saved as <prefix>-XX.png.
  • Run npm test after editing the skill.
  • Detailed commands and architecture are in README.md.

Related Skills

jeffallan/ml-pipeline

Designs and implements production-grade ML pipeline infrastructure: configures experiment tracking with MLflow or Weights & Biases, creates Kubeflow or Airflow DAGs for training orchestration, builds feature store schemas with Feast, deploys model registries, and automates retraining and validation workflows. Use when building ML pipelines, orchestrating training workflows, automating model lifecycle, implementing feature stores, managing experiment tracking systems, setting up DVC for data versioning, tuning hyperparameters, or configuring MLOps tooling like Kubeflow, Airflow, MLflow, or Prefect.

community

KushalRoyChowdhury/fluxflow-cli

A advance CLI Agent with personality.

community

AzizX-coder/Splash

Complex Autonomous agent , with builtin skills , safety protocols , complex agentic loop and easy to use in every social media you use

community

northpeakmalaysia/cli-tools

Wraps installed CLIs as SwarmAI agent tools -- 50 bundled manifests covering git, docker, kubectl, npm, cloud CLIs, databases, Termux+Android.

community

kipeum86/web-content-designer

Claude skill that transforms text, articles, or URLs into production-grade single-file HTML pages. 3 layouts (dashboard, infographic, one-page summary), 10 auto-selected design themes, Chart.js visualizations, scroll-spy navigation, and responsive design. Supports Korean and English. No build tools — just open the .html file.

community

dimillian/ios-debugger-agent

Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.

community