# GPT: Use OpenAI Models

### Overview

OpenAI has created some of the most sophisticated and commonly used language models, such as GPT-4 and GPT-4o, which can generate, summarise, translate, and reason over a wide range of inputs, including text, pictures, and code. Integrating OpenAI into Dualite Alpha allows you to create responsive, intelligent, and user-centred apps that combine Alpha's no-code design and automation with OpenAI's strong generative AI.

This article will show you how to integrate OpenAI into Dualite to boost use cases like as smart forms, chatbots, document analysers, creative tools, and more.

{% hint style="info" %}
**Your API key are secure with Dualite.**

It is encrypted and never exposed, so you can connect without any worry.
{% endhint %}

### Why OpenAI?

OpenAI models are known for:

* Exceptional natural language understanding and generation.
* Strong coding and logic capabilities.
* Ability to handle multimodal inputs (text, images, audio in some versions like GPT-4o).
* Robust API ecosystem with reliable support and documentation.
* Ideal for building intelligent user flows, dynamic content generation, and context-aware automation.

### Integrating OpenAI in Dualite Alpha

Before starting, make sure you have:

* Access to OpenAI’s developer platform.
* An active OpenAI API key (from <https://platform.openai.com>).

#### Step 1: Get Access to OpenAI

Visit [OpenAI’s platform](https://platform.openai.com/), sign in with your OpenAI account, and create an API key. GPT-4o is generally recommended for rich multimodal and real-time applications.

* If you are not being able to locate it, go to <https://platform.openai.com/api-keys>, login and create a project.

<figure><img src="/files/zG0c6XTEJF2Z586EnEpB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uhSBGur0i9AjNZOFh9hi" alt=""><figcaption></figcaption></figure>

#### Step 2: Tell Dualite about your OpenAI key

Prompt in about the AI project you want to build (e.g AI Chatbot) and make sure you write that you want to use **OpenAI API Key** for it.

<figure><img src="/files/KJQdBfZhZAmXx5xcouc6" alt=""><figcaption></figcaption></figure>

#### Step 3: Add the relevant API key through Variables

Open "Variables" and copy-paste your OpenAI API key into the Variables pop-up and click on "Save Changes"

<div data-full-width="true"><figure><img src="/files/u1G9o41pq3UhOptItpXm" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/8LqJ9XkqJzCimwe6GF9O" alt=""><figcaption></figcaption></figure>

#### Step 4: All set and done!

Your AI Chatbot is now ready and integrated with Google's multi-modal AI, Gemini.

<figure><img src="/files/x6hP3DhBJS0vdzfLRyAL" alt=""><figcaption></figcaption></figure>

### Conclusion

Bringing OpenAI into your Dualite project opens up endless possibilities. Whether you're building AI assistants, automating content, or analyzing documents, OpenAI provides a versatile, high-performance engine that enhances the power and flexibility of your no-code app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alphadocs.dualite.dev/build-ai-apps-with-dualite/gpt-use-openai-models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
