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

# Open AI

> Generate content and images for your Softr app using Open AI and allow your users do the same.

Now you can generate images and copy with the help of [Open AI](https://openai.com/) to really speed up the app creation process. Moreover, you can create apps that offer AI functionality to your users (like [copy.ai](http://copy.ai/) or [jasper.ai](http://jasper.ai/)). Read on to learn more.

<Tip>The feature is available **on all subscription plans** including the Free plan.</Tip>

## **Generating content for your Softr app**

Whenever adding an image to a block in your Softr app, you can use the Asset Generator to generate an image for you. The following videos show how that works.

<iframe src="https://www.youtube.com/embed/42Qxt7QmJyU?feature=oembed" width="100%" height="500px" title="YouTube video" />

Similarly, on any text field you have the option of adding AI-generated copy by providing a helpful prompt. The video below illustrates the process.

<iframe src="https://www.youtube.com/embed/FtXf3nWOPIk?feature=oembed" width="100%" height="500px" title="YouTube video" />

## **Allowing your users to generate content**

You can also allow your users to generate images and copy using the AI Dynamic Blocks. Just add one of the blocks to your app and make the magic available to your users. To make this happen, you first need to integrate with Open AI, which we’ll discuss in a bit.

<iframe src="https://www.youtube.com/embed/DeFqUTzugxA" width="100%" height="500px" title="YouTube video" />

## Sending custom prompts to OpenAI

Want to take one step further? Check out Softr Community member Dominic's video on how to integrate GPT-3 with Softr.

<iframe src="https://www.youtube.com/embed/oAB0KgksnlE?feature=oembed" width="100%" height="500px" title="YouTube video" />

## Integrating with Open AI

To integrate Open AI with your Softr app, you need to go to [https://openai.com/api/](https://openai.com/api/) and sign up. Next, under your account dropdown, select **View API keys**.

<Frame caption="View API keys">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/open-ai/image1.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=f2437ee8a09427b857e47c28c9f7e3bb" alt="View API keys" width="2840" height="812" data-path="integrations/images/open-ai/image1.png" />
</Frame>

Hit **Create new secret key** and copy the generated key.

<Frame caption="Create new secret key">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/open-ai/image2.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=cd8a56a48ac63febb71b4be2c98e205d" alt="Create new secret key" width="1706" height="1042" data-path="integrations/images/open-ai/image2.png" />
</Frame>

Lastly, in your Softr app, navigate to **Settings ⇒ Integrations ⇒ Open Ai**, add the key, and save your settings.Now, you can start adding AI blocks to your application.

When you register on Open AI, you automatically enter a free trial, so, as soon as a user submits the first request (e.g. generates a text using the block), you’ll see your Open AI credit balance under **Usage**.

<Frame caption="Open AI Usage">
  <img src="https://mintcdn.com/softr-2b8a27e1/UK9rAhLsda5WuJiB/integrations/images/open-ai/image3.png?fit=max&auto=format&n=UK9rAhLsda5WuJiB&q=85&s=66fa7185d5cd4e757a30d1d7d2914138" alt="Open AI Usage" width="2484" height="1490" data-path="integrations/images/open-ai/image3.png" />
</Frame>

You’ll spend credits on each new user request, so, as soon as all the free trial credits expire, you’ll need to Upgrade your Open AI subscription in order to receive more credits.
