---
updatedAt: 2026-07-10T19:01:19.000Z
---

Fetch the complete documentation index at: https://docs.lumalabs.ai/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# API

Use the API directly

<Callout icon="🚀" theme="default">
  ### Looking for the latest Luma API?

  Create and manage API access in the [Luma API Platform](https://platform.lumalabs.ai/). For current API guides and reference, visit the [Luma Agents API documentation](https://docs.agents.lumalabs.ai/).
</Callout>

With the Dream Machine API, you can generate images and videos. Both processes work in a similar way: you create a request, which returns an ID, and you use this ID to check its status until it is ready.\
You can use this API to generate images and videos using different conditions:

* Videos:
  * Text to video
  * Image to video

* Images:
  * Text to image
  * Character reference
  * Image reference
  * Style reference
  * Image to image (modify image)