Midjourney API Pricing and Setup:
¥0.39 CNY per Grid, ¥0.195 CNY per Upscale

Brioi's Midjourney image API is billed per action, with no subscription: one text-to-image request costs ¥0.39 CNY and one upscale costs ¥0.195 CNY. One table with the price of every action, batch cost math and a full script from prompt to downloaded image.

Updated 6 min read

On this page(7)
  1. How much does each Midjourney API action cost?
  2. How much does one Midjourney image cost?
  3. How do I estimate the cost of a batch?
  4. How do I call it? From prompt to downloaded image
  5. How do I set the version, aspect ratio and reference images?
  6. Can I inpaint and extend images?
  7. How do I troubleshoot errors?

On Brioi, Midjourney is billed per action, not by subscription. One text-to-image request (Imagine) costs ¥0.39 CNY and returns a single 2×2 grid image. To get one of the four as a standalone image, you upscale it, which costs ¥0.195 CNY. So your first usable single image costs ¥0.39 CNY plus ¥0.195 CNY. Prices were read on 2026-12-04 and are in Chinese yuan (CNY). Current rates are on the pricing page; search for mj_ to see every action.

How much does each Midjourney API action cost?

The request body has no model field. The action is set by the submit path and the button, and the pricing page lists prices under the billing names below.

Action How to start it Billing name Price per action
Text to image, returns a grid POST /mj/submit/imagine mj_imagine ¥0.39 CNY
Blend several images POST /mj/submit/blend mj_blend ¥0.39 CNY
Describe an image, get prompts back POST /mj/submit/describe mj_describe ¥0.39 CNY
Upscale to a single image Buttons U1–U4 mj_upscale ¥0.195 CNY
Variation, four new images Buttons V1–V4 mj_variation ¥0.39 CNY
Reroll Reroll button mj_reroll ¥0.39 CNY
Subtle variation Vary (Subtle) mj_low_variation ¥0.39 CNY
Strong variation Vary (Strong) mj_high_variation ¥0.39 CNY
Inpainting Vary (Region) mj_inpaint ¥0.39 CNY
Zoom out Zoom Out 2x, Zoom Out 1.5x mj_zoom ¥0.39 CNY
Zoom out by a custom factor Custom Zoom mj_custom_zoom ¥0.39 CNY
Extend in one direction Arrow buttons mj_pan ¥0.39 CNY
Follow-up prompt POST /mj/submit/modal mj_modal ¥0.026 CNY

All button actions go to POST /mj/submit/action. Inpainting and custom zoom take two steps: submit the button, then send the prompt through /mj/submit/modal. Each step has its own billing name. The Brioi docs have no separate billing section, so the mapping between billing names and actions in this table is inferred from the names. The docs also don’t say which billing name covers Upscale (Subtle) and Upscale (Creative) on a single image. For these, trust the billing records in the console.

How much does one Midjourney image cost?

Midjourney returns four candidates at a time, so the cost of “one image” depends on what you need:

What you need Actions Cost
1 grid preview (4 options) 1 text-to-image ¥0.39 CNY
1 final single image 1 text-to-image, 1 upscale ¥0.39 CNY + ¥0.195 CNY
All 4 single images from one grid 1 text-to-image, 4 upscales ¥0.39 CNY + ¥0.78 CNY
100 final images, each right on the first grid 100 text-to-image, 100 upscales ¥39.00 CNY + ¥19.50 CNY
1,000 final images, each right on the first grid 1,000 text-to-image, 1,000 upscales ¥390.00 CNY + ¥195.00 CNY

How do I estimate the cost of a batch?

Add text-to-image requests × the text-to-image price and upscales × the upscale price. Variations and inpainting are extra. For example, 200 final single images at 1.5 grids per image on average is 300 text-to-image requests plus 200 upscales: ¥117.00 CNY + ¥39.00 CNY.

The saving comes before the upscale step. The grid already shows composition and style, so choose in the grid and upscale only the tile you will use. If two of the four tiles are usable, the second one costs just one more upscale, which is cheaper than a new grid.

How do I call it? From prompt to downloaded image

Create a Brioi API key and set it as the BRIOI_API_KEY environment variable. The script below submits one text-to-image request, waits for the grid, upscales the first tile and downloads it. It is billed twice: ¥0.39 CNY + ¥0.195 CNY.

pip install requests
import os
import time

import requests

BASE = "https://vip.brioi.com"
HEADERS = {"Authorization": f"Bearer {os.environ['BRIOI_API_KEY']}"}


def submit(path, body):
    r = requests.post(f"{BASE}{path}", headers=HEADERS, json=body, timeout=60)
    data = r.json()
    if data.get("code") not in (1, 22):  # 1 = submitted, 22 = queued
        raise SystemExit(f"Submit failed, HTTP {r.status_code}: {data.get('description')}")
    return data["result"]


def wait(task_id, max_wait=900):
    deadline = time.time() + max_wait
    while time.time() < deadline:
        time.sleep(8)
        r = requests.get(f"{BASE}/mj/task/{task_id}/fetch", headers=HEADERS, timeout=30)
        if r.status_code != 200:
            continue
        task = r.json()
        if task.get("status") == "SUCCESS":
            return task
        if task.get("status") in ("FAILURE", "CANCEL"):
            raise SystemExit(f"{task_id} failed: {task.get('failReason')}")
    raise SystemExit(f"{task_id} timed out; query the same ID again later")


grid_id = submit("/mj/submit/imagine", {
    "botType": "MID_JOURNEY",
    "prompt": "a red glass cube on a plain white background, studio light --ar 1:1 --v 7",
})
grid = wait(grid_id)
u1 = next(b["customId"] for b in grid["buttons"] if b.get("label") == "U1")

single_id = submit("/mj/submit/action", {"taskId": grid_id, "customId": u1, "enableRemix": False})
wait(single_id)

img = requests.get(f"{BASE}/mj/image/{single_id}", timeout=120)
ext = "webp" if "webp" in img.headers.get("Content-Type", "") else "png"
with open(f"cube.{ext}", "wb") as f:
    f.write(img.content)
print(f"Saved cube.{ext}")

A few easy mistakes:

  • Copy a button’s customId exactly from the parent task’s buttons[]. Don’t build it yourself or reuse a value from another task.
  • A button action returns a new task ID. Use the new ID for status queries and downloads, not the parent task’s ID.
  • A task you just submitted may show an empty status and 0% progress for a while. It is queued; keep polling, every 5 to 10 seconds.
  • If a submit request times out or drops, look for the existing task before sending it again, or you will be billed twice. The state field is a custom value for your own use, not an idempotency key.
  • GET /mj/image/{task_id} needs no key. Anyone with the URL can download the image, so don’t share it publicly.

How do I set the version, aspect ratio and reference images?

Put them all in the prompt. Midjourney parameters go at the end, for example --ar 16:9, --v 7, --stylize 100. Without --v, the default version is used. To use reference images, put public image URLs before the description. The full parameters that were actually run are in properties.finalPrompt in the task result.

To blend images, use /mj/submit/blend with 2 to 3 public image URLs, and set dimensions to PORTRAIT, SQUARE or LANDSCAPE. Tasks can fail when input images are too large, so images around 1024×1024 are recommended.

Can I inpaint and extend images?

Yes. Both start from an upscaled single image:

  • Inpainting: submit the Vary (Region) button with enableRemix set to true; the response code is 21. Then call /mj/submit/modal with the prompt for the new content and maskBase64. The mask is a PNG with the same dimensions as the source image: white areas are repainted, black areas are kept. Send the Base64 without the data:image/png;base64, prefix.
  • Extending: Zoom Out 2x and Zoom Out 1.5x extend outward and keep the aspect ratio. The arrow buttons extend to one side. Custom Zoom also takes two steps; put the factor at the end of the follow-up prompt, for example --zoom 1.5.
  • Upscaling again: Upscale (Subtle) and Upscale (Creative) enlarge a single image 2×, so 1024×1024 becomes 2048×2048.

The animation buttons (Animate (High motion), Animate (Low motion)) aren’t available; submitting one returns unknown_action. To turn an image into video, use a video model such as the Seedance 2.0 API.

How do I troubleshoot errors?

Symptom Common cause
400, body has code and description The submit or query failed; read description. task_no_found means a wrong task ID
400, unknown_action The button isn’t available, for example animation
401 Missing or invalid key
403 Balance too low, or the key has no access to this action
429, code is 30 Too many requests or the service is busy; submit more slowly
503 Service temporarily unavailable; try again later
Task is FAILURE and failReason is 执行报错 (“execution error”) Common in blends when the input images are too large

The full Midjourney API docs (in Chinese) list every endpoint, button and status. To compare Midjourney with models that have a flat price per request, see the AI image API comparison for e-commerce. Other models and integration options are on the Brioi developer page.