Skip to content

Latest commit

 

History

History
126 lines (98 loc) · 3.23 KB

File metadata and controls

126 lines (98 loc) · 3.23 KB

Dream-Machine API

PiAPI's unofficial Dream Machine API, launched by Luma Labs, equips developers with the state-of-the-art video generation tool for an enhanced user experience.

screenshot of the Midjourney API page from PiAPI



Features

  1. Image Upload Supported
  2. Enhance Prompt Feature Supported
  3. Bulk Generation Available
  4. Pay-as-you-go and Host-your-account Options
  5. Asynchronous API Calls
  6. Watermark Removal
  7. Priority Generations
  8. Commerical Use
  9. Extend Function Coming Soon



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 Dream Machine account pools, ensuring seamless operation without any hassle on your part.

  • No need for your own Dream Machine account(s) pool
  • No need to manage or operate Dream Machine 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 Dream Machine Account(s). Then you can subscribe to PiAPI's Dream Machine API seat(s), connecting your Dream Machine 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

  • Standard: $0.30/call
  • Custom Dedicated Deployment: Contact us via email!

Host-your-account Option

  • Flat pricing: $10/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 a Video Generation call

curl --request POST \
  --url https://api.piapi.ai/api/luma/v1/video \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: ' \
  --data '{
  "prompt": "flying cat",
  "expand_prompt": true
}'

Response

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

Get the Video Generation call

url --request GET \
  --url https://api.piapi.ai/api/luma/v1/video/task_id \   //Replace the task_id with the returned task_id
  --header 'Accept: application/json'

Response - Check out our documentation for more information!



Contact us

Email: contact@piapi.ai