Midjourney API · Ace Data Cloud

Midjourney API:
Generate AI Images

Integrate Midjourney image generation into your applications through a stable, comprehensive REST API. Text-to-image generation, image editing, video generation, image description, and more—all through a unified interface.

🎨 3 Speed Modes 🖼️ 7 API Endpoints 📄 OpenAPI 3.0 Specification 🔑 Bearer Token Authentication
🎨
7
API Endpoints
⚡
3
Speed Modes
🤖
13
MCP Tools
🔧
20+
Available Actions

Midjourney does not currently offer a public, self-service REST API. Its image generation features are accessible only through the Discord Bot and the official Midjourney website.

Ace Data Cloud fills this gap by providing a stable, production-ready API that gives you full programmatic access to all of Midjourney's image generation features—including image generation, editing, video generation, description, and translation—through a streamlined REST interface with an OpenAPI specification, Webhook support, streaming, and pay-as-you-go pricing.

🎨

Text-to-Image Generation

Generate stunning 2×2 image grids from text prompts. Supports Fast, Relax, and Turbo speed modes, with automatic translation of non-English prompts.

✏️

Image Editing

Upload an existing image and edit it using text prompts and optional mask regions. Precisely control the areas to modify while preserving the rest of the original image.

🎬

Video Generation

Generate AI videos from text prompts and reference images. Supports setting first and last frame images, 480p/720p resolution, and video continuation.

🔍

Image Description

Upload an image to get 4 Midjourney-style text descriptions (reverse prompts). Learn how to recreate similar images with words.

🌐

Smart Translation

Translate Chinese creative descriptions into English prompts optimized for Midjourney. Automatically adapts to Midjourney's parameter formats and style keywords.

⚡

Webhooks and Streaming

Set a callback_url to receive results asynchronously, or use NDJSON real-time streaming to get progress updates. Check task status for free.

cURL
curl -X POST https://api.acedata.cloud/midjourney/imagine \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "generate",
    "prompt": "A serene Japanese garden at sunset, koi pond with cherry blossoms --ar 16:9",
    "version": "8.2",
    "mode": "fast"
  }'
Previous Response Example
{
  "success": true,
  "task_id": "bedff824-ca09-48f5-8479-bd8a991b9c36",
  "image_id": "1472573555521617920",
  "progress": 100,
  "image_url": "https://cdn.acedata.cloud/8c5b69a6e0.png",
  "image_width": 1024,
  "image_height": 1024,
  "actions": [
    "upscale1", "upscale2", "upscale3", "upscale4",
    "variation1", "variation2", "variation3", "variation4",
    "reroll"
  ]
}
Midjourney API real generated sample

Previously generated sample image (Fast mode)

Quick Start—Get Started in 5 Minutes

A simple REST API using Bearer Token authentication. Generate your first AI image with a single request.

1

Get an API Key

Log in to the application list, open General Application, and click the copy button to the right of API KEY. Store the key on your server and use it to replace YOUR_API_KEY in the example.

Get an Ace Data Cloud API Key
2

Send a POST Request

Send a request to /midjourney/imagine with your prompt and preferred mode

3

Get Your Image

Receive a high-resolution image URL, a list of available actions, and a task ID—ready to use immediately

✨

Generate

Generate a 2×2 image grid from a text prompt, with support for all Midjourney parameters

🔎

Upscale

Enlarge a single image from the grid into a high-resolution image, with support for 2x and 4x upscaling

🔄

Variation

Generate variations based on a selected image with a similar style but different details

🔁

Reroll

Generate a brand-new image grid using the same prompt

🔍

Zoom Out

Expand the image canvas with AI-generated surroundings, supporting 1.5x and 2x zoom

⬆️

Pan

Expand image content up, down, left, or right to extend the composition

🖼️

Blend

Combine multiple reference images into a brand-new creative image

✏️

Edits

Use a mask to select an area and edit it with a text description

📸

Describe

Upload an image to get a Midjourney-style text description (reverse prompt)

🎬

Video

Generate AI videos from text and reference images, with support for 480p and 720p

⏩

Video Extend

Continue an existing video, extending its duration and content

🌐

Translate

Translate Chinese descriptions into English prompts optimized for Midjourney

+ Upscale 2x / 4x + Strong / Subtle Variation + Reference Image + Seed Query
🎨

AI Design Tools

Build online design platforms that let users quickly generate concept art, illustrations, and design assets using natural language

🏪

E-commerce and Advertising

Generate product images, ad assets, and marketing visuals in bulk to reduce design costs

🤖

AI Agents and MCP

Integrate with Claude, ChatGPT, or any AI agent through our MCP Server to create images using natural language

🎮

Gaming and Entertainment

Automatically generate game characters, scene concept art, NFT artwork, and story illustrations

01

Sign Up and Get an API Key

Copy the API Key for the general application as shown in the diagram above.

02

Make Your First API Call

Send a POST request with a text prompt to /midjourney/imagine. You can use an SDK, cURL, or any HTTP client.

03

Integrate and Scale

Embed the API in your application. Use Webhook for asynchronous processing and scale confidently to production.

Feature Ace Data Cloud Other Platforms
Full Imagine Operations ✓ Partial Support
Image Editing (Edits + Mask) ✓ ✗
Video Generation + Extension ✓ ✗
Image Description (Reverse Prompting) ✓ Partial Support
Intelligent Chinese-English Translation ✓ ✗
OpenAPI 3.0 Specification ✓ Partial Support
Webhook Callbacks ✓ Partial Support
NDJSON Streaming ✓ ✗
MCP Server (AI Agent Integration) ✓ ✗
Pay-as-you-go ✓ Partial Support
Capability Midjourney (via Ace Data) DALL·E 3 Flux
Artistic Style Quality ✓ Best Good Good
Image Upscaling (2x / 4x) ✓ ✗ ✗
Variations and Blending ✓ ✗ ✗
Canvas Expansion (Zoom / Pan) ✓ ✗ ✗
Video Generation ✓ ✗ ✗
Image Editing + Masking ✓ ✓ ✗
Reverse Prompting (Describe) ✓ ✗ ✗

Relax

Economy

For non-urgent batch processing. Queued generation at the lowest cost, suitable for background batch processing.

  • ✓ Standard generation 0.168 Credits / job
  • ✓ Suitable for batch processing
  • ✓ Non-real-time use cases
  • ✓ Full feature support
Recommended

Fast

Production

The best balance of speed and cost for production-grade applications. Generate high-quality images quickly.

  • ✓ Standard generation 0.401 Credits / job
  • ✓ V8.1 / V8.2 HD generation 0.801 Credits / job
  • ✓ Suitable for interactive applications
  • ✓ Full feature support
  • ✓ Recommended for production

Turbo

Fastest

Ultra-fast generation for real-time applications with demanding response time requirements.

  • ✓ Fastest generation speed
  • ✓ Real-time interaction
  • ✓ Suitable for demos and prototypes
  • ✓ Full feature support
  • ✓ Standard generation 0.801 Credits / job
Pay as you go
Imagine
0.168 Credits / generation and up

Core image generation—each generation produces a 2×2 image grid

  • ✓ Standard generation: Relax 0.168, Fast 0.401, Turbo 0.801 Credits / generation
  • ✓ V8.2 Fast HD generation: 0.801 Credits / generation
  • ✓ See live pricing for other specifications and operations
  • ✓ Task queries—Free
View pricing details View API documentation
Enterprise
Custom

Volume discounts for high-usage teams

  • ✓ Usage-based discounts
  • ✓ Priority support
  • ✓ Dedicated account manager
  • ✓ Custom rate limits
  • ✓ SLA guarantee
Contact sales
Does Midjourney have an official API? ▾

Midjourney does not currently offer a public, self-service REST API. Its image generation features are accessible only through the Discord Bot and the official website. Ace Data Cloud provides a stable, production-ready API that gives you full access to all of Midjourney's image generation features.

How does pricing work? ▾

Pricing is based on the model version, operation, speed mode, and image specifications. For example, a standard V8.2 generation in Fast mode costs 0.401 Credits, or 0.801 Credits with HD enabled. When performing further operations on an existing image, the billing mode may be inherited from the original image. Task queries are free.

Which speed modes are supported? ▾

We support all 3 Midjourney speed modes: Relax (most economical), Fast (recommended, the best balance of speed and cost), and Turbo (fastest). All modes produce images of the same quality; they differ in generation speed and price.

How do I handle longer generation times? ▾

There are three ways: (1) Use callback_url—set a Webhook URL, and we will POST the result when complete. (2) Use NDJSON streaming—set the Accept: application/x-ndjson request header to receive real-time progress updates. (3) Poll via /midjourney/tasks—this endpoint is free and lets you check the status at any time.

Are Chinese prompts supported? ▾

Yes! The Imagine API has a built-in translation parameter that, when enabled, automatically translates non-English prompts into English. You can also use the /midjourney/translate endpoint separately to translate Chinese creative descriptions into English prompts optimized for Midjourney.

Can it be used with AI Agents such as Claude or ChatGPT? ▾

Yes! We provide an official MCP Server (mcp-midjourney) that integrates directly with Claude Desktop, VS Code, and other MCP-compatible AI tools. It includes 13 tool functions covering all features, including image generation, editing, description, and video. Your AI Agent can generate images through natural-language conversations.

Can I obtain individual images from a grid? ▾

Yes! Set the split_images: true parameter, and the API will automatically split the 2×2 grid into 4 individual images and return the URL for each image directly. You can also use the Upscale operation to enlarge an individual image into a high-resolution image.

Is video generation supported? ▾

Yes! Using the /midjourney/videos endpoint, you can generate AI videos based on text prompts and reference images. You can set parameters such as first/last frame images, 480p/720p resolution, and looping. Videos can also be extended using the extend operation.

Start Generating AI Images Now

Join thousands of developers building with the most comprehensive Midjourney API. Pay as you go—no subscription fees, no commitments.