Closed Sanyela closed 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
$message->upscaled_photo_url
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.
<img src="<?php echo $message->upscaled_photo_url; ?>" />
But soon after the generation is completed, the page status is directly 502
它并不能返回出图片
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.gifYou 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.