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

Code examples

No-code integrations

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, blend or describe;
  • 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.

MethodEndpoint (POST /midjourney/v2…)Input
Imagine/imagineprompt
Upscale/upscalehash of imagine / blend / describe / animate + choice 1-4
Upsample (Subtle, Creative, 2x, 4x)/upsamplehash of upscale
Variation/variationhash of imagine / describe / blend + choice 1-4
Vary (Subtle) / Vary (Strong)/vary-subtle, /vary-stronghash of upscale
Reroll/rerollhash of a task
Animate (video)/animatehash of upscale + high / low
Inpaint (Vary Region)/inpainthash of upscale + mask + prompt
Zoom Out/zoomhash of upscale + 50 / 75 or prompt
Pan/panhash of upscale + direction
Blend/blend2-5 image URLs
Describe/describeimage URL
Seed/seedhash of a task
Upload/uploadPNG / JPG file or URL
Info, Speed, Prefer (Remix)/info, /speed, /preferaccount_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.

Use image generation Magic with UserAPI