Dream Machine API / enabling state of the art video generation from texts or images

PiAPI's unofficial API for Dream Machine (released by Luma Labs) enables developers like you to bring top-tier video generation to your users.

Luma Dream Machine Playground

Video generation and video extension with Luma Dream Machine

Configuration

All generations run at the selected resolution. Aspect ratio and duration can be customized as documented in the API.

Choose between text-to-video (generate from text prompt only) or image-to-video (generate from text prompt and input image).

The prompt is a description that enables the Dream Machine API to produce a video.

Result

Idle
Preview

This shows preset sample previews. Sign in and click 'Generate video' to create your own.

Logs

No logs yet

Features

Image-to-video from a reference image
Pass an image URL with your prompt to run image-to-video, or use an image as a visual reference alongside text.
Enhance Prompt (expand_prompt)
Set expand_prompt to mirror the Dream Machine web app’s “Enhance Prompt” behavior and improve your text before generation.
Extend existing generations
Continue a clip with the extend flow when you want more footage built on a result you already like.
High-volume and batch workflows
Need large throughput or a custom batch pipeline? Talk to us on Discord and we’ll help you scale.
Pay-as-you-go or bring your own account
Either use PiAPI credits on our hosted Dream Machine access, or connect your own Luma subscription for the host-your-account model.
Async jobs with polling or callbacks
Create tasks asynchronously, poll for status, or register webhooks so your servers are never blocked waiting on a render.
Optional watermark removal
Eligible premium plans can remove the LUMA watermark from outputs where the product tier allows it.
Priority queue at peak times
Premium subscribers get higher priority in the generation queue when the service is busy.
Commercial usage on eligible plans
Where your plan and Luma’s terms allow, you may use generated videos for commercial projects—check the latest Terms of Service.

Our Pricing Plans

"Pay-as-you-go" Option

Standard

$0.20/call
  • Access to the latest text-to-video generation API

Custom Dedicated Deployment

Contact Us
  • Faster speed & lower latency
  • Support High Concurrency
  • Priority Access & Autonomy

"Host-your-account" Option

Flat Pricing

What's included

  • Connect your own Dream Machine accounts!
  • Access to all our Dream Machine API features
  • Hosting multiple accounts supported
  • Load Balancer for multi-accounts

Stable and Safe

$10/seat/month

Check our Pricing page for more information

Our blog

Check out our blog for related contents!

An image of Luma API & Flux API - Exploring the Marvel Multiverse
Dream Machine API

Luma API & Flux API - Exploring the Marvel Multiverse

Using Dream Machine API and Flux API we explored what famous marvel characters would look like if they were played by different actors. Such as a Tom Cruise Iron Man, Henry Cavill Wolverine, and finally RDJ Doom!

Other APIs from us!

We are the all-in-one generative AI API provider on the market, delivering all the AI APIs you need for your generative AI applications! We also provide custom model deployment solutions!

An image of a futuristic jet generated by PiAPI's Flux API

Flux API

We provide the most stable and cost effective (unofficial) Flux API on the market, supporting two usage mode (you can host your own Midjourney account, or use our Midjourney accounts and pay-as-you-go). With fast response time and high number of concurrent jobs, our Flux API is a favourite among developers worldwide!

A face swapped image from PiAPI's Faceswap API

Faceswap API

Discover the power of our Faceswap API - the perfect way to add a touch of fun and interactivity to your applications. With our automatic face detection capability, high concurrency performance, and low latency, your users can effortlessly swap faces and enjoy a personalized and engaging experience!

Frequently asked questions

What is Dream Machine?

Dream Machine is developed by Luma Labs and generates high-quality, realistic videos from text and images.

What is the Dream Machine API?

Luma Labs does not publish an official public API for Dream Machine today, so PiAPI offers an unofficial Dream Machine API for developers worldwide.

What type of videos can I make with the Dream Machine API?

You can create high-quality text-to-video and image-to-video outputs with fast iteration and physically plausible motion.

What are current limitations in generated videos?

Complex action scenes may still show occasional artifacts, and text rendering can require improvement.

Can you offer preview during generation?

Not yet. If Luma adds preview in the web app, PiAPI will integrate it when that capability is available.

Can I use Dream Machine API outputs commercially?

See the current Terms of Service from Luma Labs: commercial use is allowed only where their policies and your applicable paid subscription (including use via PiAPI) permit it.

Are there refunds?

No, we do not offer refunds. But when you first sign up for an account on PiAPI's Workspace, you will be given free credits to try our API before making payments!

How can I get in touch with your team?

Please email us at contact@piapi.ai - we'd love to talk more regarding our product offering!