OhMyGPT API Docs
  1. Midjourney Open API
OhMyGPT API Docs
  • About This site
  • About new website
  • Midjourney Open API
    • About Midjourney Service
    • Midjourney Blend Image Generation Task Creation
      POST
    • Midjourney Text-to-Image Task Creation
      POST
    • Midjourney Execute Action Task Creation
      POST
    • Midjourney Query Specific Task ID Execution Status
      POST
    • Midjourney Paginated Bulk Query Tasks
      POST
    • Midjourney Describe Prompt Extraction Task Creation
      POST
    • Retrieve Images Generated by Midjourney from Object Storage
      GET
    • Retrieve Compressed Images Generated by Midjourney from Object Storage + WSRV
      GET
    • Retrieve Images Generated by Midjourney from Object Storage + WSRV
      GET
    • Proxy Discord Images via WSRV
      GET
    • Proxy and Compress Discord Images via WSRV
      GET
  • Management API
    • Create a New API Key
      POST
    • Update API Key Information
      POST
    • Query All of User's API Keys
      POST
    • Delete Specified API Key
      POST
    • Query User Membership Expiration Date
      POST
    • User Balance Query
      POST
    • Query the current model rates
      GET
  • OpenAI
    • About OpenAI Compatible API
    • About Azure OpenAI API
    • Audio
      • Text To Speech API
    • Chat
      • Chat Completion
      • Completion (Legacy)
    • Images
      • Create Image
    • Realtime API
  • Anthropic Claude
    • Deprecated
      • ChatCompletions
      • Claude2 API
    • Anthropic Official Claude API
  • Policies
    • Terms of Service
    • Privacy Policy
  • Other OpenAPIs
    • Search API
      • Google Custom Search API
      • Google Search By Serper
    • Azure API
      • Get Azure TTS voice list
      • Azure TTS
  1. Midjourney Open API

Retrieve Images Generated by Midjourney from Object Storage + WSRV

GET
https://wsrv.nl/
Based on the 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
Original Image URL
Example:
https://pi.ohmygpt.com/api/v1/content/mj-generated/lLE5vCA1-d146b4fa-858c-45dc-b4cc-1e6efac4a351.png

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://wsrv.nl/?url=https://pi.ohmygpt.com/api/v1/content/mj-generated/lLE5vCA1-d146b4fa-858c-45dc-b4cc-1e6efac4a351.png'

Responses

🟢200成功
application/json
Body
object {0}
Example
{}
Previous
Retrieve Compressed Images Generated by Midjourney from Object Storage + WSRV
Next
Proxy Discord Images via WSRV
Built with