mj-imagine: Calling Midjourney Text-to-Image in an Agent

mj-imagine is a Skill from the SkillHub community (Skill @user_f95f21b8/dlazy-mj-imagine, v1.0.9, design-media) that executes `dlazy mj.imagine` via @dlazy/cli@1.0.9, connecting to the Midjourney text-to-image API hosted by dLazy. The article covers installation paths for SkillHub and Cursor environments, API Key configuration using `dlazy auth set`, commonly used parameters (aspect ratio, NIJI_JOURNEY, output grid/U1–U4), as well as async handling and error handling, making it suitable for developers who need to generate images directly within conversational workflows.

Read More