Leverage our AI APIs for your AI application developments!

Integrate our generative AI APIs and transform text into captivating visuals,
prompts into impressive music, and perform seamless face swaps!

Ignite your generative AI capabilities

Midjourney API (unofficial)

Dive into the next-gen image generative paradigm with Midjourney API!

Easily integrated into your development process, allowing your users to easily create creative visual content faster using our unofficial Midjourney API.

An image of a landscape with tall mountains. River water flowing in, calm and breezy wind blowing into the forest with a bright sunset sky generated by Midjourney API
A landscape with tall mountains. River water flowing in, calm and breezy wind blowing into the forest with a bright sunset sky

Dream Machine API (unofficial)

Seamlessly Generate Videos from Text/Image input with Dream Machine API!

Enhance your applications with the ability to generate dynamic videos from simple text or image inputs, allowing your users to create video contents easily using Dream Machine API

A video of a futuristic ship generated by PiAPI's Dream Machine API
A futuristic fighter jet with a sleek yet tough armor soaring through the clouds, with a scene of an alien pilot in a futuristic suit, expressing a cautious face

Suno API (unofficial)

Embrace the Future of Music with Suno API

Generate astounding music from any textual prompt. Our unofficial Suno API propels your applications into a future with limitless creative possibilities.


    payload = json.dumps({
      "custom_mode": False,
      "input": {
      "prompt": "a song about spending a hot summer day onthe beach and drinking champagne",
      #your simple prompt
      "make_instrumental": False
      }
    })
    headers = {
      'X-API-Key': 'YOUR_API_KEY',
      'Content-Type': 'application/json'
    }
     
    response = requests.request("POST", url, headers=headers, data=payload)
     
    print(response.text)
    

Faceswap API

Bridge the gap between reality and unique visuals with our FaceSwap API

Our FaceSwap API allows seamless integration of face-swapping functionalities — offering unlimited possibilities for photo editing, augmented reality applications, gaming and more.

An illustration of Leonardo Dicaprio's face swapped with Justin Bieber's face

Our Generative AI APIs

Text-to-Image

Transform texts into captivating visuals with our unofficial Midjourney API.

Text-to-Music

Convert texts into stunning music with our unofficial Suno API.

Faceswap

Easily swap faces from one image onto another.

Designed for developers

Our API is compatible with all technology stacks, offers fast setup up process, and requires no prior AI experience!
Check out our documentations, and start integrating our state-of-the-art APIs
into your application in just a few clicks!

Python
1
2  import requests
3
4  endpoint = 'YOUR_ENDPOINT_URL'
5  headers = {
6      'X-API-Key': 'YOUR_API_KEY',
7  }
8
9  data = {
10      "prompt": "a cute cat",
11      "aspect_ratio": "4:3",
12      "process_mode": "fast",
13      "webhook_endpoint": "",
14      "webhook_secret": ""
15  }
16
17  response = requests.post(endpoint, headers=headers, json=data)
18
19  print(response.status_code)
20  print(response.json())
21  
Easy Integration

Built for smooth and fast integration. Get started on your journey to easy-free integration in just a few clicks / lines of code.

Consistent Results

Regardless of image, music or faceswap generation, Our APIs are designed to produce high-quality results for your applications and user needs.

Hassle-free Convenience

As easy as turning on a switch, our API quickly enables comprehensive features, bringing convenience and ease to your workflow.

Rapid Scalability

"With our cost-effective price offering, you can improve your load-response at your own pace with flexible payment options. Our enterprise-level API is geared to scale according to your growth trajectory.",

Our Team

Who are we?

At the intersection of tech and creativity, we are a group of dedicated tech aficionados who believe in the transformative power of AI.

Why us?

We are driven by our passion for simplifying AI and making it accessible to developers around the globe!

What do we do?

We provide developers with API access to generative AI models including Midjourney (unofficial), Suno (unofficial), and FaceSwap API, helping to develop scalable and innovative applications!

Let’s talk

Have a question or require support? Feel free to contact us!
Official Support Channel

Contact us via Discord and join our channel for fast support and assistance!

Want to collaborate?

Looking for collaborative opportunities? We are too! Email us at contact@piapi.ai!

Reach us on WeChat

Click and chat. That’s how easy it is to reach us on WeChat.

Try Telegram

Reach out to us on Telegram, we'd love to hear from you. It's easier and faster!