Skip to content

PiAPI-1/MidjourneyAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Midjourney API (Hassle-free Integration)

Enhance your AI-powered image applications with our unofficial Midjourney API, providing users with unlimited potential to generate images from text prompts.

screenshot of the Midjourney API page from PiAPI

Features

  1. Integrated Load Balancer
  2. Multi-Account Connectivity
  3. Full Endpoint Access
  4. Workspace and Webhook Support
  5. Compatible with V6, --sref, and --cref
  6. Midjourney Subscription Excluded
  7. Supported modes: Relax, Fast and Turbo


Supported Operations

  • Imagine
  • Upscale
  • Variation
  • Describe
  • Blend
  • Inpaint
  • Zoom
  • Pan
  • --sref
  • --cref



Usage Options

Pay-as-you-go Option

To get started, simply sign up and purchase credits in our Workspace. Once done, you can immediately access our API! Our service leverages PiAPI’s Midjourney account pools, ensuring seamless operation without any hassle on your part.

  • No need for your own Midjourney account(s) pool!
  • No need to manage or operate Midjourney accounts
  • Full access to all endpoints
  • Start integrating the API immediately!

Host-your-account Option

When you choose our Host-Your-Account service, you'll use your own Midjourney Account(s). Then you can subscribe to PiAPI's Midjourney API seat(s), connecting your Midjourney account(s) to the seat(s), and you're ready for integration!

  • Faster generation time
  • Supports hosting of multiple accounts
  • Stable API service

Pricing

Pay-as-you-go Option

  • Relax Mode: $0.015/imagine task
  • Fast Mode: $0.045/imagine task
  • Turbo Mode: $0.10/imagine task

Host-your-account Option

  • Flat pricing: $8/seat/month

Please refer to our pricing page for more information.

Usage Steps

Pay-as-you-go Option

  • Register for PiAPI's Workspace using your GitHub account.
  • Obtain your API KEY from our Workspace
  • Start coding right away!

Sample API Calls (using cURL)


Create an imagine call

curl --location 'https://api.piapi.ai/mj/v2/imagine' \
--header 'X-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
  "custom_mode": false,
  "input": 
        {
            "gpt_description_prompt":"a nice car",
            "make_instrumental": false
        }
}'

Response

{
    "code": 200,
    "data": {
        "task_id": "record_this_taskID"
    },
    "message": "success"
}

Fetch the imagine call

curl --location 'https://api.piapi.ai/mj/v2/fetch' \
--header 'X-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
  "custom_mode": false,
  "input": 
        {
            "task_id": "Insert_the_taskID_here"
        }
}'

Response - Check out our documentation for more information!



Contact us

Email: contact@piapi.ai


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors