Introduction#
MidJourney
is a currently popular and powerful AI image model that can generate high-quality images through extremely simple prompts. It has a very low usage threshold and is therefore very popular.However, since Midjourney
officially does not provide an API interface, it is not convenient for the vast number of developers to integrate it into their own products. Therefore, this site provides a Midjourney API interface through Discord reverse engineering, which can conveniently allow developers/enterprise customers to quickly integrate reliable Midjourney capabilities into their own tools, products, and websites at a low cost, creating value for you or empowering your products.Interface Description#
The MidJourney
interface capabilities currently implemented by OhMyGPT are as follows:MidJourney
text-to-image capability (imagine
)
MidJourney
button action execution (action
): Can perform functions such as image upscaling (UPSCALE
), image variation (VARIATION
), image expansion drawing (ZOOM
), etc.
MidJourney
image-to-text capability (describe
): Can extract the prompt
from the image
MidJourney
multi-image blending generation capability (blend
): Can blend 2 or more and less than 5 images through AI to generate new images
Note: If you need to call the MidJourney
related interfaces, please ensure that your key has the midJourney
permission checked and saved in the key permission control.Recommended request body sending format: application/json
Supports real-time push of MidJourney
task execution results via WebHook (recommended), and also supports actively polling MidJourney
task execution results through ID.WebHook callback notifications are ultimately delivered by Cloudflare Worker.Regarding how to determine the legitimacy of the WebHook and whether it was sent by this site, you can add some query parameters (such as random strings) to the WebHook URL for easy verification, so that your program can verify whether the WebHook is legitimate after receiving it.Please refer to the documentation of the corresponding interface for details.Service Access Flow Chart#
The access process is very simple. The following takes a flow chart of accessing text-to-image + executing various task actions
as an example:Pricing Description#
The MidJourney
on this site is divided into two account pools. In FAST
account mode, Midjourney
accounts with Fast Hour will be used to provide you with services, bringing you high-speed and highly reliable MidJourney
capabilities, while the NORMAL
mode mostly uses the RELAXED
mode to provide services, offering you the ultimate cost performance.After each task is successfully executed, the fees deducted are as follows:Action Type | FAST Mode Token Cost | NORMAL Mode Token Cost |
---|
IMAGINE | 14000 | 7000 |
UPSCALE | 3500 | 1750 |
VARIATION | 14000 | 7000 |
ZOOM | 14000 | 7000 |
PAN | 14000 | 7000 |
DESCRIBE | 3500 | 1750 |
BLEND | 14000 | 7000 |
Note: Since the two resource pools are mutually independent and managed separately, for continuous action execution, it is necessary to ensure that the mode is the same. For example, an IMAGINE
task executed in NORMAL
mode can only continue to execute actions in NORMAL
mode, and cannot execute optional actions in FAST
mode for tasks executed in NORMAL
mode.About Rate and Request Limits#
The rate limit for the MidJourney
service on this site is mainly based on the user's membership level to limit the length of the task queue being executed.Regular users are allowed to have up to 3
unfinished tasks in the queue
VIP users are allowed to have up to 20
unfinished tasks in the queue
Premium users are allowed to have up to 50
unfinished tasks in the queue
Modified at 2024-09-04 14:14:17