Skip to content
Midjourney · Midjourney

Midjourney API

Generate images from text or image references with Midjourney on Openrouter API.

Image generationImageAsync task
Model id
midjourney

Midjourney API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

OptionOpenrouter APIOfficialSave
DefaultDefault$0.04954$0.0563−12%
blend$0.06054$0.0688−12%
blend-fast$0.06054$0.0688−12%
blend-turbo$0.11$0.125−12%
describe$0.06054$0.0688−12%
describe-fast$0.06054$0.0688−12%
describe-turbo$0.11$0.125−12%
edits$0.06054$0.0688−12%
edits-fast$0.06054$0.0688−12%
edits-turbo$0.11$0.125−12%
high variation$0.06054$0.0688−12%
high variation-fast$0.06054$0.0688−12%
high variation-turbo$0.11$0.125−12%
imagine$0.04954$0.0563−12%
imagine-fast$0.06054$0.0688−12%
imagine-niji6$0.04954$0.0563−12%
imagine-niji6-fast$0.06054$0.0688−12%
imagine-niji6-turbo$0.11$0.125−12%
imagine-niji7$0.04954$0.0563−12%
imagine-niji7-fast$0.06054$0.0688−12%
imagine-niji7-turbo$0.11$0.125−12%
imagine-turbo$0.11$0.125−12%
imagine-v5.1$0.04954$0.0563−12%
imagine-v5.1-fast$0.06054$0.0688−12%
imagine-v5.1-turbo$0.11$0.125−12%
imagine-v5.2$0.04954$0.0563−12%
imagine-v5.2-fast$0.06054$0.0688−12%
imagine-v5.2-turbo$0.11$0.125−12%
imagine-v6.1$0.04954$0.0563−12%
imagine-v6.1-fast$0.06054$0.0688−12%
imagine-v6.1-turbo$0.11$0.125−12%
imagine-v7$0.04954$0.0563−12%
imagine-v7-fast$0.06054$0.0688−12%
imagine-v7-turbo$0.11$0.125−12%
imagine-v8.1$0.04954$0.0563−12%
imagine-v8.1-fast$0.06054$0.0688−12%
imagine-v8.1-turbo$0.11$0.125−12%
imagine-v8.2$0.04954$0.0563−12%
imagine-v8.2-fast$0.06054$0.0688−12%
imagine-v8.2-turbo$0.11$0.125−12%
inpaint$0.06054$0.0688−12%
inpaint-fast$0.06054$0.0688−12%
inpaint-turbo$0.11$0.125−12%
low variation$0.06054$0.0688−12%
low variation-fast$0.06054$0.0688−12%
low variation-turbo$0.11$0.125−12%
modal$0.06054$0.0688−12%
modal-fast$0.06054$0.0688−12%
modal-turbo$0.11$0.125−12%
pan$0.06054$0.0688−12%
pan-fast$0.06054$0.0688−12%
pan-turbo$0.11$0.125−12%
remix strong$0.06054$0.0688−12%
remix strong-fast$0.06054$0.0688−12%
remix strong-turbo$0.11$0.125−12%
remix subtle$0.06054$0.0688−12%
remix subtle-fast$0.06054$0.0688−12%
remix subtle-turbo$0.11$0.125−12%
reroll$0.06054$0.0688−12%
reroll-fast$0.06054$0.0688−12%
reroll-turbo$0.11$0.125−12%
shorten$0.06054$0.0688−12%
shorten-fast$0.06054$0.0688−12%
shorten-turbo$0.11$0.125−12%
upscale$0$0—
upscale-fast$0$0—
upscale-hd$0.06054$0.0688−12%
upscale-hd-fast$0.06054$0.0688−12%
upscale-hd-turbo$0.11$0.125−12%
upscale-relax$0$0—
upscale-turbo$0$0—
variation$0.06054$0.0688−12%
variation-fast$0.06054$0.0688−12%
variation-turbo$0.11$0.125−12%
video$0.22$0.25−12%
video-720p$0.44$0.50−12%
zoom$0.06054$0.0688−12%
zoom-fast$0.06054$0.0688−12%
zoom-turbo$0.11$0.125−12%

Prices are per request.

What is Midjourney?

Midjourney on Openrouter API supports text-to-image and image-guided generation for applications that turn creative briefs into images. Submit a required prompt, optionally add image URLs or base64 inputs, and control generation with native Midjourney flags or structured body fields. Available controls include aspect ratio, version, seed, negative prompt, stylization, and character or style references. The documented workflows also cover blending, variations, upscaling, inpainting, zoom out, and image-to-video follow-ups.

Requests run asynchronously: submission returns a task ID, which your application polls to retrieve status and image results. Openrouter API provides one API key with pay-as-you-go billing only for successful requests. Default and imagine requests cost $0.04954 per request, with the default configuration about 12% below the developer's list price. Blend, describe, edits, and high variation each cost $0.06054 per request for their listed standard and fast modes, while their listed turbo mode cost $0.11 per request.

Midjourney highlights

Text and Image Inputs

Generate from a text prompt alone or supply image URLs or base64 inputs for image-guided generation. The default generation endpoint and explicit imagine endpoint behave the same way.

Structured Generation Controls

Set aspect ratio, version, seed, stylization, negative prompts, and reference images through body fields or native Midjourney flags. Body values override conflicting prompt flags.

Follow-up Image Workflows

Documented workflows chain generation with variations, upscaling, inpainting, zoom out, and image-to-video. Multi-image blending also has a dedicated endpoint.

Trackable Async Tasks

Submission returns a task ID for polling. Attach custom metadata for business-side tracking and retrieve image URLs when the task completes.

How to call the Midjourney API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/midjourney/generations with "model": "midjourney" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

curl --request POST \
  --url https://openrouterapi.ru/v1/midjourney/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "a beautiful sunset over mountains",
    "size": "16:9",
    "version": "6.1",
    "speed": "fast"
  }'

What you can build with Midjourney

Creative Brief Prototypes

Build a tool that turns subject, scene, and style descriptions into image concepts for team review.

Reference-Guided Exploration

Let users supply reference images and adjust image weight, character references, or style references to explore visual directions.

Visual Revision Workflows

Build an image workspace that connects generation, variations, upscaling, and inpainting through task-based follow-up actions.

Image-to-Video Pipelines

Chain image generation and follow-up processing into the documented image-to-video workflow for motion concept development.

Tips for better results

  • 01

    Make Controls Explicit

    Lead prompts with the subject, then describe the scene and modifiers. Use structured fields for aspect ratio, version, and stylization; body values take precedence over prompt flags.

  • 02

    Poll Without Blocking

    Return the task ID to your frontend rather than holding a web request open. Poll every 3–5 seconds and handle terminal success or failure states.

  • 03

    Use Correct Raw Syntax

    For version 8.2, set version to "8.2" and raw to true, or use --v 8.2 --raw in the prompt. Remove --style raw and the style value "raw".

  • 04

    Check Speed Route Pricing

    Omitted speed defaults to relax; fast and turbo use corresponding speed modes. For blend, describe, edits, and high variation, the listed fast price is $0.06054 per request and turbo is $0.11 per request.

Limits and things to know

  • Generation is asynchronous and requires polling for results.

  • Some controls are version-specific; HD mode is supported only in v8.1 and v8.2.

  • Unified and Midjourney-style task endpoints return different status names and result fields.

Midjourney API FAQ

How much does Midjourney cost on Openrouter API?

Default and imagine requests cost $0.04954 per request. Blend, describe, edits, and high variation cost $0.06054 per request for the listed standard and fast modes, or $0.11 per request for the listed turbo mode. Openrouter API bills only successful requests.

How do I call the Midjourney API?

Send an authenticated POST request to https://openrouterapi.ru/v1/midjourney/generations with a required prompt. The route automatically injects model=midjourney, so you do not need to include midjourney in the request body. The explicit /v1/midjourney/generations/imagine endpoint behaves the same way.

Does Midjourney support image inputs and prompt parameters?

Yes, image_urls accepts image URLs or base64 inputs for image-guided generation. Controls include size for aspect ratio, version, seed, negative_prompt, stylize, and reference fields such as cref and sref; structured body values override prompt flags.

How do I retrieve generated images?

Poll /v1/tasks/{task_id} for unified statuses and successful image URLs in result.images[].url. Use /v1/midjourney/{task_id} when you need Midjourney-style fields or buttons for follow-up actions. A polling interval of 3–5 seconds is recommended.

What version-specific limits should I check?

HD mode is limited to v8.1 and v8.2, draft mode requires v7 or later, and early stop is limited to the documented v5–6.1 and Niji 5–6 versions. In v8.2, Raw mode requires raw: true or --raw rather than --style raw.

Can I use Midjourney images commercially?

Commercial use is subject to the model developer's terms. Review Midjourney's applicable terms before using generated images in commercial products or client deliverables.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with Midjourney

One key, pay as you go from $50, billed only for successful requests.