Guides
Midjourney API guides
Everything we have written about the API, in one list. If you are new, start with the key and the pricing. If you already have a key, jump to the method you need.
Updated
Getting started
- Midjourney API pricingPlans, pay-per-request rates and the free tier.
- Midjourney API without DiscordNo Discord token and no Midjourney subscription. $0.08 per Imagine.
- Free Midjourney API50 free requests, no card. Cloud from $3.
- How to get a Midjourney API keyGet a working API key in a few minutes.
- Does Midjourney have an official API?How unofficial APIs work and what the risks are.
Comparisons
- Midjourney API providers in 2026Which Midjourney APIs still work and how to move.
- useapi.net alternativeKeep your Midjourney accounts after useapi.net.
- PiAPI Midjourney alternativePay per image, $0.08, no account needed.
Code examples
- Midjourney API with PythonGenerate, poll and upscale images from Python.
- Midjourney API with Node.jsfetch, Express webhook, batches.
- Midjourney API with PHPcURL client and a webhook endpoint in plain PHP.
No-code integrations
- Midjourney in n8nCommunity node with all methods.
- Midjourney in Make.comOur app in the Make catalog.
All API methods
Most methods don't start from scratch, they take the hash of an earlier task. Roughly, the chain looks like this:
- start:
imagine,blendordescribe; - on a grid:
upscale,variation,reroll,seed; - on an upscaled image:
upsample,vary-subtle,vary-strong,zoom,pan,inpaint,animate.
Methods with their own page are linked. For the rest, see the documentation.
| Method | Endpoint (POST /midjourney/v2…) | Input |
|---|---|---|
| Imagine | /imagine | prompt |
| Upscale | /upscale | hash of imagine / blend / describe / animate + choice 1-4 |
| Upsample (Subtle, Creative, 2x, 4x) | /upsample | hash of upscale |
| Variation | /variation | hash of imagine / describe / blend + choice 1-4 |
| Vary (Subtle) / Vary (Strong) | /vary-subtle, /vary-strong | hash of upscale |
| Reroll | /reroll | hash of a task |
| Animate (video) | /animate | hash of upscale + high / low |
| Inpaint (Vary Region) | /inpaint | hash of upscale + mask + prompt |
| Zoom Out | /zoom | hash of upscale + 50 / 75 or prompt |
| Pan | /pan | hash of upscale + direction |
| Blend | /blend | 2-5 image URLs |
| Describe | /describe | image URL |
| Seed | /seed | hash of a task |
| Upload | /upload | PNG / JPG file or URL |
| Info, Speed, Prefer (Remix) | /info, /speed, /prefer | account_hash |
Try it on 50 free requests
Register, add a Discord account that has Midjourney, and you get an API key. The first 50 requests are free and you don’t need to enter a card. Since 2023 more than 10,000 people have signed up and sent over 8 million requests through the API.