Use Midjourney in Hermes Agent.
Midjourney creates high-quality images from text, edits source images, animates still images into short videos, and can reverse-engineer prompt ideas from an image. Hermes Agent calls it through the RunAPI custom provider with the same API key used for chat — no Discord bot workflow, browser automation, or ComfyUI setup required.
Use RunAPI to generate a Midjourney image in Hermes Agent.
Requirements:
- Read the API key from RUNAPI_API_KEY.
- Call POST https://runapi.ai/api/v1/midjourney/text_to_image
- Set model to "midjourney-v8.1".
- Set prompt to describe the image.
- The task is async. Poll the returned task_id until status is "completed".
- When done, read the image URL from the response output.
curl -X POST https://runapi.ai/api/v1/midjourney/text_to_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "midjourney-v8.1",
"prompt": "A cinematic product photo of a translucent AI compass on a black desk, dramatic lighting"
}'
{
"task_id": "tsk_abc123",
"status": "pending",
"model": "midjourney-v8.1"
}
Use Midjourney in Hermes Agent in three steps
Configure RunAPI
Set RUNAPI_API_KEY in your environment. If Hermes Agent already uses the custom:runapi provider for chat, the same key works for Midjourney image and video tasks.
export RUNAPI_API_KEY=runapi_xxx
Call Midjourney
Send a POST request to the Midjourney text_to_image endpoint with model midjourney-v8.1 and a prompt. For editing or animation, switch to edit_image or image_to_video and include a source image URL.
POST /api/v1/midjourney/text_to_image
Poll for media
The create endpoint returns a task_id immediately. Poll the task status endpoint or use a callback_url until the generated image or video URL is ready.
GET /api/v1/midjourney/text_to_image/tsk_abc123
Midjourney API parameters
| Parameter | Type | Description |
|---|---|---|
model |
string |
Required. Use midjourney-v8.1 for text-to-image, midjourney-edit-image for editing, or midjourney-image-to-video for animation. |
prompt |
string |
Text instruction for image generation, editing, or motion guidance. |
source_image_url |
string |
Source image URL. Required for edit_image, image_to_video, and image_to_prompt. |
image_id |
string |
Required for get_seed. The Midjourney image id returned in a completed image response. |
callback_url |
string |
Optional. Webhook URL that receives a POST when an asynchronous task completes. |
What is Midjourney on Hermes Agent?
Midjourney is a creative AI image model line known for polished art direction, strong aesthetics, and cinematic visual composition. Through RunAPI, agents can use Midjourney as a normal API: create images from prompts, edit a source image, animate a still frame into video, ask for prompt suggestions from an image, or retrieve a seed for reproducibility.
Midjourney use cases
Creative concept art
Generate cinematic concept art, mood boards, and style exploration images directly from an agent workflow.
Marketing image variations
Create polished campaign visuals, thumbnails, product scenes, and social creatives from a written brief.
Image-to-video motion tests
Animate a selected image into a short video with motion guidance, then hand the result to downstream editing or publishing steps.
Midjourney + Hermes Agent questions
Yes. Hermes Agent can call RunAPI Midjourney endpoints directly through the custom:runapi provider. Use /api/v1/midjourney/text_to_image for generation, /edit_image for image edits, and /image_to_video for animation tasks.
No. RunAPI exposes Midjourney as API endpoints with task IDs, polling, callbacks, and SDK support. Your agent sends HTTP requests and receives media URLs; it does not need to drive Discord or a browser.
Use midjourney-v8.1 for text-to-image. Use midjourney-edit-image when you need prompt-guided edits from a source image, and midjourney-image-to-video when you want to animate a still image.
Yes. The image_to_video endpoint animates a source image into a short video. Provide source_image_url and an optional prompt to guide motion or camera direction.
Midjourney uses pay-as-you-go task billing. Check the RunAPI model page for current rates before production use. The same RunAPI balance is shared with chat, image, video, music, and audio models.
Hermes Agent general setup
Not configured yet? Start with the RunAPI setup guide for Hermes Agent.
Hermes Agent setup guide →Try Midjourney in Hermes Agent today.
Get a free RunAPI key, paste the prompt into Hermes Agent, and generate Midjourney images or videos from your agent workflow.