BIG UPDATE! Our AI rendering engine just got a huge upgrade. The results are more realistic than ever. Try it now!
Software Engineering

10 Best Midjourney APIs & Their Cost (Working in 2024)

Written by Kacper Staniul

Want to integrate Midjourney's mind-blowing AI art into your app?

You're not alone.

Plenty of developers are itching to use the Midjourney API. The problem? Midjourney doesn't have an official API (yet).

Bummer, right? Not so fast.

Turns out, there's a whole bunch of unofficial Midjourney APIs that can help you automate the image generation process.

However, this is a gray area as most of these APIs violate MJ's terms of service and usually quickly get shut down after getting hit with a cease and desist.

The Next Leg being one of many examples.

These third-party solutions typically use Selenium to automate the image generation workflow using your Midjourney account. As any kind of automation is against MJ's terms, you also risk getting your account banned.

Yet, many such APIs are still up and running.

While we don't endorse any of them, we've put together a list of the most talked-about unofficial Midjourney APIs out there.

Let's have a look.

Unofficial Midjourney APIs

ImagineAPI

ImagineAPI is one of the most user-friendly Midjourney APIs out there.

It offers an easy-to-use REST API that supports text-to-image and image-to-image generation. The images are instantly upscaled without costing you extra credits which is a nice bonus.

It has an admin panel where you can monitor the image generation progress and import multiple prompts using CSV files.

It also integrates with Zapier and Make if you want to automate the workflow further.

They also have an open-source version  of their API available.

Requires a Midjourney account? Yes
Pricing:
$30/month for unlimited generations.

APIFRAME

APIFRAME is a stable and scalable third-party AI image generation API for Modjourney.

It's fully managed (you don't risk your account getting banned) and can handle even up to 30 concurrent generations.

For no-code workflows, it's also available via Zapier, Make, and Pabbly.

Aside from image generation, APIFRAME also offers Luma and Suno APIs for programmatic video and music generation.

Requires a Midjourney account? No
Pricing:
7-day trial is available for $0.99. Then, plans start at $39/month and offer 900 image credits a month.

MidjourneyAPI.io

This minimalistic API offers access to Midjourney through a simple image generation workflow where everything is a GET request. You can test it directly in your browser's address bar.

There are two versions of the API called Fairy and SelfServed that let you use it with or without your own Midjourney account.

Requires a Midjourney account? Optional
Pricing:
one-day free trial. Then, premium subscriptions start at $22/month.

useapi.net

Useapi.net provides a simple way of using Midjourney via API for a flat $10/month.

What's more, the subscription also includes unofficial APIs of Pika, InsightFaceSwap, and PixVerse for programmatic text-to-video generation and face swapping.

Requires a Midjourney account? Yes
Pricing:
$22/month

ImaginePro

This unofficial Midjourney API gives you access to all MJ's features such as text-to-image, image-to-image, image-to-text, inpainting, zoom, upscale, pan, and more.

The API has built-in load balancing for optimal performance and offers a free 30-day trial.

Requires a Midjourney account? Optional
Pricing:
a $45/month subscription gets you unlimited image generations a month.

PiAPI

PiAPI lets you access all Midjourney endpoints programmatically either using your own MJ account or using their hosted service (billed on a per-generation basis).

There are three modes available: relax, fast, and turbo.

PiAPI also integrates with other apps through Zapier and offers other unofficial APIs for Suno (music generation), Dream Machine (video generation), Faceswap (face replacement), and soon also Moshi (speech generation).

Requires a Midjourney account? Optional
Pricing:
the hosted pay-as-you-go pricing starts at $0.01 per imagine task while the self-hosted plan costs $8/month (excluding MJ subscription).

Journey AI Art

Journey AI Art is another third-party solution that offers both an API and a web app.

It offers most of Midjourney's features such as text-to-image, image-to-image, contextual references, and style references.

Requires a Midjourney account? Yes
Pricing:
free plan offers 4 credits/day. Then, paid subscriptions start at $6/month.

UserAPI

UserAPI gives you full access to the unofficial Midjourney API for free on their testing plan.

And for more complex (no-code) automations, you can use their Make connector.

Requires a Midjourney account? Yes
Pricing:
free testing plan includes 50 credits and an unlimited monthly plan costs $25/month.

Midjourney APIs on GitHub

Here are the most popular open-source third-party Midjourney APIs on GitHub:

midjourney-client

Unofficial Node.js client with over 1.6k stars created by Eric Heyden.

midjourney-proxy

Chinese Java-based proxy for the Midjourney's Discord channel with 4.6k stars.

Midjourney_api

Unofficial Midjourney API written in Python with over 400 stars.

The Midjourney PHP API Client Package

This comprehensive library created by Shu Chen allows users to interact with Midjourney through Discord and integrate the results into PHP applications.

How to automate AI image generation without breaking Midjourney's terms of service?

Here are two ideas.

As one Reddit user mentioned in his comment, you can hire a freelancer who will generate the images for you based on your prompts. Then, they would send them to you and transfer the copyright of these images to you (based on a signed agreement).

Another (much more scalable) solution is to use a LoRa mimicking Midjourney's style. There are plenty of quality models on Civitai created as a result of the lack of a MJ API.

If none of these solutions are good enough for you, you'll just need to patiently wait until Midjourney releases its official API.

When?

No specific dates have been mentioned yet.

Common questions about the Midjourney API

Does Midjourney have an API?

No. Midjourney doesn't have an API yet. While there are plenty of unofficial solutions, they not only violate MJ's terms of service but also put you at risk of getting your account banned.

Is there a free Midjourney API?

There are a couple of unofficial APIs that offer free plans and trials such as MidjourneyAPI.io, Journey AI Art, and UserAPI. You can also use any of the open-source GitHub projects mentioned earlier in the article.

How much does the Midjourney API cost?

Third-party Midjourney APIs cost $6/month and up depending on how many images you need to generate.