ImaginePro
HomeDocs
HomeDocs
  1. HowTos
  • Introduction
  • System Design
  • Get Started
  • My Account
    • Credits
    • Generation Modes
  • API Documentation
    • Generate Image
      POST
    • Get Progress
      GET
    • Upscale
      POST
    • Variation
      POST
    • Zoom
      POST
    • Pan
      POST
    • Reroll
      POST
    • Make Square
      POST
    • Cancel Job
      POST
    • Inpainting
      POST
    • Image to Text (describe)
      POST
    • Image to Image
      POST
    • Face Swap
      POST
    • Blend
      POST
    • History
      GET
    • Generate Image Boost
      POST
    • Button Boost
      POST
    • Prompt Check
      POST
    • Account Info
      GET
    • Generate Image - Flux Model
      POST
    • Remove Background
      POST
  • FLUX API Documentation
    • Generate Image
    • Upscale Image
  • DIY Plan Endpoints
    • Queue Management
      • Count jobs in queue
      • Reboot the queue
      • Pause the queue
      • Resume the queue
    • Get Linked Discord Token Details
    • Toggle Linked Discord Token
    • Get Message Trace
    • Get Ban Words List
    • Update Ban Words List
    • Get Linked Account List
    • Get Linked Account queue status
    • Excute MJ commad
  • Guide
    • FAQ
    • Troubleshoot
  • HowTos
    • How to get Discord token, server and channel ID
    • How to use ImaginePro web app
    • How to make ImaginePro API request in Postman
    • How to use Midjourney V6
    • How to link your own Discord account
    • How to debug the ImaginePro web app
  • Web App
    • Credits
  1. HowTos

How to make ImaginePro API request in Postman

Exploring ImaginePro API for Seamless Image Creation#

As a developer, there's nothing quite as exhilarating as harnessing the power
of APIs to bring your creative visions to life. In this blog post, we're
diving into the fascinating world of ImaginePro API, your gateway to unlocking
the full potential of Midjourney's AI image generation capabilities.

Getting Started with ImaginePro API#

Before we embark on this journey, let's ensure you're all set up and ready to go. After you've subscribed to Midjourney and following the instruction, put your discord token in your setup, then you'll find your authentication token ("Your ImaginePro Token") in your Dashboard page as well. Keep these credentials secure and confidential—they're your key to accessing the world of AI-generated artistry.
mj-token.png

Making Requests with ImaginePro API#

To make requests and interact with ImaginePro API, we'll turn to the versatile tool, Postman. It's a free, user-friendly tool designed for testing API endpoints and saving requests. If you're new to Postman, check out this tutorial. Please be aware we are using Postman as an example, but you can use any tool you like to make requests to ImaginePro API, such as calling the API from your code.
Once in Postman, create a new request, set the request method to 'POST,' and enter the API endpoint URL: https://api.imaginepro.ai.
Next, add the necessary headers, including your authentication token in the 'Authorization' header. Remember, it's a bearer token, so prefix it with 'Bearer ' before your token.
postman-url.png

Exploring the Imagine Command#

Now comes the exciting part—exploring ImaginePro's Imagine command. You can find all the required parameters in our comprehensive documentation, now on v1.
To test the Imagine command, simply set your desired prompt in the 'prompt' parameter within the request body. If you specified webhook parameter in your request body, the response will be delivered to your webhook URL. Send the request and wait for the response. Once it arrives, you'll find the generated image messageId and status. Don't hesitate to experiment with different prompts and parameters to create unique and imaginative AI-generated art.
Note:
Don't forget to set the Content-Type header to application/json (by setting the request body to raw and JSON in Postman).
Don't forget to include your Bearer token in the Authorization header.
{
  "prompt": "A little cat running on the grass"
}
postman-prompt.png

Tracking AI Image Generation Progress#

To get real-time updates on the progress of your AI image generation job, initiate a GET request to the following API endpoint:
https://api.imaginepro.ai/api/v1/midjourney/message/<messageId>
Replace <messageId> with the actual messageId from your previous AI image generation job, for example, "4df975a7-d7fd-4a59-975d-83fcfc29891b".
Upon making the GET request, you will receive a comprehensive response containing essential information about your job's progress:
progress: The 'progress' field indicates the current percentage progress of your job, giving you insights into how far along the AI image generation process has come.
uri: The 'uri' field provides the URL to access the generated image, making it easy for you to view and share your artwork.
buttons: The 'buttons' field outlines the available follow-up actions, which include options like 'Upscales' (U1, U2, U3, U4), 'Variants' (V1, V2, V3, V4), zoom, and more. This allows you to continue refining and enhancing your creation.
You will also find some other useful information, such as the prompt and 'timestamps' data of your job.
postman-progress.png
With this progress tracking feature, you can stay in control of your AI image generation process, ensuring that your creative vision comes to life exactly as you envision it.

Upscaling Images with ImaginePro API#

If you're interested in upscaling an image, it's a breeze with ImaginePro API. Refer to the response body, where you'll discover buttons and a messageId.
To upscale an image, use the messageId from the previous response and include 'U1' in the button field.
{
  "messageId": "4df975a7-d7fd-4a59-975d-83fcfc29891b",
  "button": "U1"
}
postman-button.png
The response will is same as the imagine request, you can use the progress endpoint to tracking the details of this submitted job.

In Conclusion#

And there you have it! ImaginePro API opens up a world of possibilities, allowing you to effortlessly interact with Midjourney via API and create stunning images. Whether you're a seasoned developer or someone with a passion for exploring the limitless potential of APIs, ImaginePro API is your ticket to a realm of artistic innovation and imagination.
Get started today and experience the magic of AI-generated artistry with ImaginePro API!
Previous
How to use ImaginePro web app
Next
How to use Midjourney V6
Built with