Skip to content
Alternatives

Midjourney API: Image Models You Can Call by API

Looking for a Midjourney API? At the time of writing it offers no public one. The image models you can call by API instead, how they compare, and code.

Updated 4 min read

If you are looking for a Midjourney API to call from your code, at the time of writing Midjourney offers no public self-serve API: there is no key to create and no public API reference. The image models below do have one, and on Frameport they all answer to the same key and the same request, with the price known before each image and nothing charged for one that fails.

This page covers where Midjourney stands, what unofficial wrappers are, and which models to call instead, by style, text in the picture and edits, with a first request in curl, Python and Node.

Is there an official Midjourney API?

Midjourney is an image generator you use in its own apps. At the time of writing, it publishes no API that a developer can sign up for: no self-serve keys and no public reference for calling it from code. That can change, so check Midjourney's own site before you decide.

Unofficial Midjourney wrappers

Some third-party services offer a "Midjourney API" by driving a Midjourney account for you and passing the results back. They are not made by Midjourney. Using one may conflict with Midjourney's terms of service, and it depends on how the third party keeps up with Midjourney's own changes; read those terms before relying on one. We do not recommend any.

The image models you can call by API instead

Each of these takes POST /v1/images/generations with the same body: model, prompt, n from 1 to 4, and aspect_ratio (1:1, 3:4, 4:3, 9:16 or 16:9).

ModelMakerPer imageReference picturesStrongest at
GPT Image 2.5 FlareOpenAI$0.085Text onlyKey art, posters, cinematic stills
Seedream 5.0 ProByteDance$0.099Text onlyDense detail and texture
Flux 3 ImageBlack Forest Labs$0.088Text onlyNatural photoreal light, clean text
Nano Banana ProGoogle$0.16Up to 6Fidelity, text in the picture, edits
Frameport Image 1Frameport$0.025Up to 10Consistent series, plain-language edits

Each image is its own job and is charged only if it succeeds, so a batch of four where one fails is charged for three. Prices for every model are on pricing.

Style, text in images and edits: how they compare

For a stylized, dramatic look, GPT Image 2.5 Flare is the expressive one: strong silhouettes, high contrast and heavy atmosphere, for posters, album covers and game key art. Lead the prompt with the mood and the light ("rim-lit", "volumetric haze"), then the subject.

For detail that holds up close, Seedream 5.0 Pro renders dense environments and texture: landscapes, architecture, fabric, hair, stone. It rewards a rich description of materials, weather and time of day.

For photographs that do not look over-styled, Flux 3 Image goes for natural, believable light. Describe the light and the setting first, and name the camera and lens.

For text in the picture, all of GPT Image 2.5 Flare, Flux 3 Image and Nano Banana Pro render lettering; put the words in quotes and keep them short.

For edits and consistency, use a model that takes reference pictures. Nano Banana Pro edits from up to 6 pictures: send them and write the change. Frameport Image 1 takes up to 10, so a face, an outfit, a product and a place can stay the same from one image to the next; for an edit, write only the change ("make it night"). Our own engines, such as Frameport Image 1, can also run without a content filter once a workspace owner or admin aged 18 or older turns it off; the other makers' models keep their own policies.

Your first request

Create an API key in the dashboard (it starts with fp_live_ and is shown once) and keep it in an environment variable. This request asks GPT Image 2.5 Flare for two takes of a film poster:

curl https://frameport.ai/v1/images/generations \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: poster-1" \
  -d '{"model": "gpt-image-2-5-flare", "prompt": "Film poster of a lone astronaut on a red desert under two moons, rim light, volumetric haze, the title \"Red Silence\"", "n": 2, "aspect_ratio": "3:4"}'

# Read it with the id from the answer until status is succeeded or failed
curl https://frameport.ai/v1/generations/gen_4kQ8vT2nLm9Xr7Wd1sYcPa \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"

To try another model, change model and keep the rest. To know the price before running, send the same body to POST /v1/generations/quote: it is free and holds nothing. The image generation API in Python guide goes further: reference pictures, batches, saving files and safe retries.

How a single key covers every model is explained in one API key for every AI model; what you pay when an image fails, in our guide to failed generations.

When Midjourney is still the better fit

If you make images by hand in Midjourney's apps, like its look and have no need to call it from code, an API changes nothing for you. If you want to prompt by hand here too, the Studio runs every model of the catalog in the browser, on the same balance as the API.

FAQ

Does Midjourney have an API?

At the time of writing, Midjourney offers no public self-serve API: no keys to sign up for and no public API reference. Check its own site for the current state.

Is there a free Midjourney API?

At the time of writing there is no public Midjourney API, free or paid. On Frameport, creating a key, listing models and quotes cost nothing, and images are paid from a prepaid balance only when they succeed.

Are unofficial Midjourney APIs safe to use?

They are third-party services, not Midjourney's, and using one may conflict with Midjourney's terms of service. Read those terms before you build on one.

Which API model is closest to a Midjourney style?

None is a copy of another. For a stylized, cinematic look, start with GPT Image 2.5 Flare; for rich detail and texture, Seedream 5.0 Pro. Run the same prompt on both in the Studio and compare.

What does an image cost by API here?

Each model has its own price per image, from $0.025, charged only when the image succeeds. POST /v1/generations/quote returns the exact price of a request before you run it.

Start building.

Your API key is free. Top up from $10 when you are ready.