> For the complete documentation index, see [llms.txt](https://docs.nlx.ai/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nlx.ai/platform/nlx-platform-guide/integrations/types/llm-services/openai.md).

# OpenAI

### Integrate OpenAI

1. Select *Resources* from your workspace menu and choose *Integrations* card
2. Click *Add integration* > Choose *OpenAI* from the *Type* dropdown
3. Provide a name for the integration
4. Log in to your [OpenAI account](https://platform.openai.com/api-keys)&#x20;
5. Enter the API key into NLX (referred to as your Service Account API key in your OpenAI account)

> Optional:
>
> * *Model name:* Select [a model](https://platform.openai.com/docs/models) for your OpenAI integration. Alternatively, you may specify the model while invoking the LLM in conversation using a [*Generative text* node](/platform/nlx-platform-guide/flows-and-building-blocks/overview/nodes.md#generative-text) or managed integration of OpenAI on a [*Data request* node](/platform/nlx-platform-guide/flows-and-building-blocks/overview/nodes.md#data-request)
>   * Popular models:
>     * GPT 5 Default: `gpt-5-2025-08-07`
>       * GPT 5 Mini: `gpt-5-mini-2025-08-07`
>       * GPT 5 Nano: `gpt-5-nano-2025-08-07`
>       * GPT 5 Chat: `gpt-5-chat-latest`
>       * o3 Pro: `o3-pro-2025-06-10`
>       * o4 Mini: `o4-mini-2025-04-16`

6. Click *Create Integration*

### Next steps

To successfully use your OpenAI integration with conversations created in your workspace, be sure to complete the following:

* [ ] create a [flow](/platform/nlx-platform-guide/flows-and-building-blocks/overview.md)
* [ ] add a [*Generative* node type](/platform/nlx-platform-guide/flows-and-building-blocks/overview/nodes.md#node-types) to the Canvas and assign *OpenAI* as the integration > Provide your prompt (follow instructions under *Side panel* tab of *Generative* node instructions)
* [ ] create a [build & deploy](/platform/nlx-platform-guide/ai-applications/setup.md#deployment)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.nlx.ai/platform/nlx-platform-guide/integrations/types/llm-services/openai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
