Skip to content

Repository files navigation

Midjourney API Skill for RunAPI

skills.sh ClawHub License


Use Midjourney through the RunAPI CLI for one-off image generation, image editing, image-to-video, first-video extension, prompt analysis, prompt shortening, and seed lookup. The canonical agent file is skills/midjourney/SKILL.md.

Variants

  • V8.1 text to image: generate an image grid from a text prompt with runapi midjourney text-to-image.
  • Image editing: transform a source image with a prompt using runapi midjourney edit-image.
  • Image to video: animate a source image with runapi midjourney image-to-video.
  • First-video extension: continue the first video from an account-owned completed image-to-video task with runapi midjourney extend-video.

Install

Install for Codex, Claude Code, Gemini CLI, Cursor, and other supported agents:

npx skills add runapi-ai/midjourney -g

Or paste this prompt to your AI agent:

Install the midjourney skill for me:

1. Clone https://github.com/runapi-ai/midjourney
2. Copy the skills/midjourney/ directory into your
   user-level skills directory.
3. Verify that SKILL.md is present.
4. Confirm the install path when done.

Claude Code can also install the repository skill directory into its user skills directory. Codex and Gemini CLI should use their user-level skills directories and keep SKILL.md at skills/midjourney/SKILL.md.

Commands

runapi midjourney text-to-image --input-file text-to-image.json
runapi midjourney edit-image --input-file edit-image.json
runapi midjourney image-to-video --input-file image-to-video.json
runapi midjourney extend-video --input-file extend-video.json
runapi midjourney image-to-prompt --input-file image-to-prompt.json
runapi midjourney shorten-prompt --input-file shorten-prompt.json
runapi midjourney get-seed --input-file get-seed.json

The first four commands create asynchronous tasks. image-to-prompt, shorten-prompt, and get-seed return synchronously. extend-video accepts a completed direct image-to-video task from the current account and cannot use another extension task as its source.

Links

License

Licensed under the Apache License, Version 2.0.

About

RunAPI Midjourney skill for Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors