Image Midjourney

Midjourney Image API

透過 RunAPI 使用 Midjourney Image API,包含 model skill、統一驗證與按用量計費。

runapi.ai
curl -X POST https://runapi.ai/api/v1/midjourney/edit_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "midjourney-edit-image",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "生成一張 4K 產品主圖,主體為啞黑色水樽,擺放在米色石面上,柔和側光。"
}'
import { MidjourneyClient } from "@runapi.ai/midjourney";

const client = new MidjourneyClient();
const result = await client.editImage.run({
    model: "midjourney-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "生成一張 4K 產品主圖,主體為啞黑色水樽,擺放在米色石面上,柔和側光。",
});
require "runapi/midjourney"

client = RunApi::Midjourney::Client.new
result = client.edit_image.run(
    model: "midjourney-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "生成一張 4K 產品主圖,主體為啞黑色水樽,擺放在米色石面上,柔和側光。"
)
npx skills add runapi-ai/midjourney -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/midjourney v1
OVERVIEW

關於 Midjourney Image

Midjourney Image API 最為人熟悉的是在 image 領域中的效能/成本平衡。安裝其 model skill,將文件、schema、價格備註與 setup 步驟帶入你的 app workflow。

供應商
Midjourney
模式
Image

比較所有 API 變體

變體 計費 定價
midjourney-edit-image call $0.060 查看 →
midjourney-v8.1 call $0.050 查看 →
PRICING

Midjourney Image 定價

Endpoint 解析度 時長 價格
edit_image $0.06 / image

以下為 midjourney-edit-image 的定價。其他變體保留各自的 endpoint 定價。

PRICING

實用 Endpoints

此模型系列的共用 endpoints,例如延伸、增強或轉換操作。

Image to prompt
$0.04 / request
Shorten prompt
$0.04 / request
Get seed
Free / request
Agent 整合

透過 Agent 執行 Midjourney Image

運作方式

開始使用 Midjourney Image

  1. 選擇模型

    挑選符合輸出類型、品質門檻與延遲目標的模型與變體。

  2. 設定

    設定 RunAPI key,並在 coding workspace 安裝 model skill。

  3. 開發

    使用 skill 指引,在你的 app 內加入模型功能。

  4. 接收

    透過 task ID 查詢、在支援時串流,或處理 webhook callback。

CONTEXT

Midjourney Image API 是甚麼?

Midjourney Image API 讓你使用 Midjourney 系列中的 image 模型。透過 RunAPI 使用時,可享有統一 API、共用計費,以及把實作脈絡帶入 app workspace 的 model skill。

供應商
Midjourney
查看全部 →
模式
Image
瀏覽模型 →

為何透過 RunAPI 使用 Midjourney Image API

一個驗證,對應所有 provider

一組 RunAPI key 即可解鎖整個 catalog。無需分開帳戶,亦無需為每個整合輪換密鑰。

統一定價與計費

按次以 USD 收費,每月結算。失敗的生成不會收費。

內含 schema 的 skill

型別化 schema 與 setup 備註打包在 model skill 內,讓實作從正確契約開始。

Midjourney Image 常見問題

我應該先用邊個版本?

先選最平而且符合你質素要求的版本。大多數團隊會先用快速版本,之後再升級到 pro 用於正式生產。

有免費方案嗎?

建立帳戶和 API Key 免費。API 呼叫採預付增值、按用量收費,增值後即可使用。

你哋支援串流結果嗎?

如有提供串流,RunAPI 會端到端串流。

失敗會點樣收費?

生成失敗不會收費。

輸出有快取嗎?

已生成輸出會儲存,並可按任務 ID 取回。輸入內容不會快取。

可以商業使用嗎?

可以——除非模型授權明確限制,否則每個版本都包括商業使用。相關限制會在版本頁面列明。

相似模型

如果你鍾意 Midjourney Image API,可以試吓呢些

開始用 Midjourney Image API 開發。