LumaAI

AI API key

Generate video and images with Luma Dream Machine from any Windmill script, flow or app.

Set up in 3 steps

1

Create an API key

In the Luma dashboard, open API Keys and create one.

2

Add the resource in Windmill

Open Resources, add a resource of type lumaai, and paste the key.

3

Run your first script

Fork any script below and read before writing anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

lumaai — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
apiKeystringYesAPI key retrieved from LUMA dashboard.

Questions

Generation is asynchronous

A generation call returns an id and a state. Poll it until it completes — video takes minutes, not seconds.

Generation costs credits

Every video draws on your Luma balance, and a failed generation can still consume it.

Is my key stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.