Retrieve Images Generated by Midjourney from Object Storage + WSRV
GET
https://wsrv.nl/
wsrv
project, images are reverse proxied so that the client can directly access them, saving server reverse proxy traffic costs.https://pi.ohmygpt.com/api/v1/content/mj-generated/
is a GET interface. You can use this interface to retrieve image files from this site's S3 object storage service.The usage is as follows:
https://wsrv.nl/?url=
+ https://pi.ohmygpt.com/api/v1/content/mj-generated/
+ s3Key
The
s3Key
is the imageS3Url
parameter in the Mj query interface or callback. You can implement reverse proxy for this interface by concatenating the URL and then passing the parameter to the url
parameter in the wsrv interface.Request
Query Params
url
string
optional
Example:
https://pi.ohmygpt.com/api/v1/content/mj-generated/lLE5vCA1-d146b4fa-858c-45dc-b4cc-1e6efac4a351.png