Welcome to Midjournium - Unofficial Midjourney API!
List of features:
Asynchronous API usage:
- Get an API token and set the authentication header.
- Execute HTTP method POST /relax/imagineAsync
- Body: { “prompt”: “happy pony”, “notifyWebhookUrl”: “https://example.com/webhook?correlationId=1234567890” }
- Note 1: “notifyWebhookUrl” parameter is optional.
- Note 2: You can choose between /relax/imagineAsync, /fast/imagineAsync and /turbo/imagineAsync.
- You will receive “jobId” in response, save it for the next call.
- Execute GET /job/{jobId} until “status” field is “completed”.
- Check the response “imageUrl” parameter for the generated image.
- Check the response “commands” array for available commands.
- In order to upscale, find a corresponding command in the “commands” array:
- Execute HTTP method POST /relax/commandAsync/{jobId}/{commandId}
- Execute GET /job/{jobId} until “status” field is “completed”.
- Check the response “imageUrl” parameter for the generated image.
- Check the response “commands” array for available commands.
Synchronous API usage:
- Get an API token and set the authentication header.
- Execute HTTP method POST /turbo/imagine
- Body: { “prompt”: “happy pony” }
- You will receive “jobId” in response, save it for the next call.
- Check the response “imageUrl” parameter for the generated image.
- Check the response “commands” array for available commands.
- In order to upscale, find a corresponding command in the “commands” array:
- Execute HTTP method POST /turbo/command/{jobId}/{commandId}
- Check the response “imageUrl” parameter for the generated image.
- Check the response “commands” array for available commands.
Technical Support: