ferranfg / midjourney-discord-api-php

Generate images using Midjourney Bot through the Discord API.
https://ferranfigueredo.com
MIT License
135 stars 35 forks source link

Now we can generate images, but we cannot output them #5

Closed Sanyela closed 1 year ago

ferranfg commented 1 year ago

Currently the only output is $message->upscaled_photo_url which returns the URL of the first image upscaled to this prompt. There is small demo here https://github.com/ferranfg/midjourney-discord-api-php/blob/main/img/demo.gif

You can take this value and use it inside an img tag, for instance: <img src="<?php echo $message->upscaled_photo_url; ?>" /> to display the generated image.

Sanyela commented 1 year ago

But soon after the generation is completed, the page status is directly 502 image

Sanyela commented 1 year ago

它并不能返回出图片 image