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

# OpenAI Integration

> Integrate GPT models for content generation, AI chat, document analysis, and semantic search

Leap makes it easy to add AI capabilities using [OpenAI's GPT models](https://openai.com). Just describe your AI features, and Leap generates the integration with proper rate limiting and error handling.

## How it works

1. **Describe your AI needs** in a prompt
2. **Leap generates the integration** with OpenAI's API
3. **Add your API key** to secrets when prompted

<Info>
  **LLM results vary**, but we've had success getting OpenAI integrations working in one shot with proper streaming and error handling.
</Info>

## Example prompt

```
Add AI content generation using OpenAI that creates blog posts from user topics,
generates product descriptions from specifications,
and provides AI chat support with conversation history
```
