dLazy Midjourney Image Generation
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_f95f21b8/dlazy-mj-imagine
About this skill
Problem
When an agent needs Midjourney image output, hand-rolling HTTP calls exposes API key handling, parameter formatting, async polling, and error recovery. mj-imagine narrows that to one CLI invocation: send a prompt and parameters, then receive image results or task status.
How It Works
- Text-to-image: start Midjourney generation with
dlazy mj.imagine, making painting requests easier to script and replay. - API and credentials: requests use the dLazy hosted API and require a dLazy API key; keys are scoped to the organization and can be rotated or revoked, or supplied per run via
DLAZY_API_KEY. - Parameters and output: pipe references such as
-,@N, and@stdin:pathhelp connect upstream output to downstream fields; async tasks return agenerateIdand status for polling. - Error handling: responses may indicate
insufficient_balance,unauthorized, missing--prompt, or server errors, so the agent should handle recharge, key setup, or retry instead of treating backend failure as a model limitation.
Boundaries
It does not run Midjourney locally or bypass dLazy cloud inference; local media files are uploaded to dLazy media storage when needed by the API. It fits engineering workflows that need a stable image generation endpoint, not scenarios requiring offline generation or strict local-only privacy.
Use Cases
- Call Midjourney from a creative workflow to generate concept art or illustration for design review
- Batch-convert written descriptions into images for presentations or social media assets
- Read upstream text in an automation pipeline, trigger image generation, and poll async task results
- Diagnose generation failures such as missing prompt, insufficient balance, or missing dLazy API key
Best For
- Design engineers who need to turn copy into visual assets
- Backend or platform engineers building automated creative pipelines
- Agent developers maintaining AI tooling, API keys, balance, and error states
- Content operations staff who want reusable Midjourney generation through CLI scripts
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.