OpenAI Integration

Introduction

FLUX provides integration with the OpenAI API, enabling you to create elements that leverage artificial intelligence capabilities within your workflows.

Overview

The OpenAI integration is implemented through two key components:

You can view the profile configuration here: OpenAI API Profile Example

Available OpenAI Elements

FLUX includes several pre-built elements that demonstrate OpenAI integration capabilities:

Python Helper

TTP Helper

JSON Query

Using OpenAI Elements in Your Code

To integrate OpenAI elements into your code, follow these steps:

  1. Locate the Element – Search for the Element that contains your desired OpenAI model
  2. Invoke the Function – Call make_question_to_openai_element() with your question as the second parameter
  3. Receive the Response – The function returns the OpenAI-generated answer

How It Works

The make_question_to_openai_element() function executes an OpenAI API call using:

The function then returns the AI-generated response for use in your application.

Example Implementation

Additional Resources

For detailed information on creating custom models with OpenAI integration capabilities, refer to the Models documentation page.


Revision #2
Created 2026-02-13 23:06:43 UTC by ipena@zequenze.com
Updated 2026-03-05 22:30:35 UTC by ipena@zequenze.com