Install
openclaw skills install @runapi-ai/runapi-midjourneyGenerate and edit images, create video from images, derive prompt suggestions, and look up seeds with Midjourney through RunAPI. Use the RunAPI CLI for one-off work and the language SDKs for application integration.
openclaw skills install @runapi-ai/runapi-midjourneyUse the RunAPI CLI for one-off requests and manual verification. Use the target language SDK for applications, workers, libraries, and production integrations; never shell out to the CLI as an application runtime.
runapi binary. For full CLI-specific agent guidance, see https://github.com/runapi-ai/cli-skill.runapi CLI as the production runtime integration layer.When integrating Midjourney into an app, backend, worker, library, Rails service, Node service, Go service, webhook pipeline, or production workflow, check the current SDK package and official usage. Confirm install commands, client methods (create, get, run), request fields, response shape, and error classes before using CLI help or raw HTTP examples. Use a RunAPI SDK package:
@runapi.ai/midjourneyrunapi-midjourneyrunapi-midjourneygithub.com/runapi-ai/midjourney-sdk/goai.runapi:runapi-midjourneyrunapi-ai/midjourneyThe runapi binary is the one-off and manual testing runtime dependency. For full CLI-specific agent guidance, see https://github.com/runapi-ai/cli-skill. Run runapi auth status first. Prefer RUNAPI_API_KEY or import a token with printf '%s' "$RUNAPI_API_KEY" | runapi auth import-token --token -. Use browser login only when the user explicitly requests an interactive login.
Inspect current fields before creating a request:
runapi midjourney --help
runapi midjourney text-to-image --help
runapi midjourney edit-image --help
runapi midjourney image-to-video --help
runapi midjourney image-to-prompt --help
runapi midjourney get-seed --help
text-to-image, edit-image, and image-to-video are asynchronous. Run them directly to create and poll, or add --async and wait separately.
runapi midjourney text-to-image --input-file text-to-image.json
runapi midjourney edit-image --async --input-file edit-image.json
runapi wait <task-id> --service midjourney --action edit-image
runapi midjourney image-to-video --input-file image-to-video.json
Use midjourney-v8.1 for text-to-image, midjourney-edit-image for edits, and midjourney-image-to-video for image-to-video. Image and video input URLs must be publicly fetchable.
image-to-prompt and get-seed return in one request. Do not add --async and do not call runapi wait for them.
runapi midjourney image-to-prompt --input-file image-to-prompt.json
runapi midjourney get-seed --input-file get-seed.json
get-seed accepts only an image_id returned by a completed Midjourney text-to-image or edit-image task owned by the current account.
Completed image tasks return images and may return image_id, actions, and progress. Completed video tasks return videos and may return video_id and progress. Generated media URLs are temporary; download and store them in durable storage.