> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Luma with API Key – StackOne Hub

> Link a Luma account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Luma actions.

> [!WARNING]
>
> Every action that generates images or video spends credits from your Luma API Console balance, and requests are rejected when the balance is empty. API credits are separate from a Luma app subscription.

## Create your API key

Luma authenticates requests with an API key from the Luma API Console. Keys belong to your project, so every key in the same project shares its rate limits and can see its generations.

**1. Create the API key**

Sign in to your [Luma API Console](https://platform.lumalabs.ai), then create a key for StackOne.

<ul>
  <li>In the sidebar, select **API Keys**.</li>
  <li>Click **Create Key**.</li>
  <li>In the **Create API Key** dialog, enter a name that identifies this integration, for example `StackOne Integration`.</li>
  <li>Click **Create Key** to create it.</li>
</ul>

![The Create API Key dialog with StackOne Integration entered as the key name and the Create Key button highlighted](https://mintcdn.com/stackone-60/ozGYXAbrYiljBdlD/connectors/luma/images/api_key-config-create-api-key.png?fit=max\&auto=format\&n=ozGYXAbrYiljBdlD\&q=85\&s=912540e3ef38cf9ea988a23f7fdda31f)

**2. Copy the API key**

The **Your API Key** dialog shows the new key.

<ul>
  <li>Click the copy icon next to the key.</li>
  <li>Copy the **API Key** across.</li>
  <li>The key starts with `luma-api-`.</li>
  <li>The key is only displayed once and cannot be retrieved later.</li>
</ul>

![The Your API Key dialog with the key value hidden and the copy icon highlighted](https://mintcdn.com/stackone-60/ozGYXAbrYiljBdlD/connectors/luma/images/api_key-config-copy-api-key.png?fit=max\&auto=format\&n=ozGYXAbrYiljBdlD\&q=85\&s=a68f6a12fdfed4098a9f8532574ecab7)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.