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

# OpenAI

Discover how to effortlessly connect Engini to OpenAI.

Engini’s OpenAI connector enables seamless integration, allowing you to create chat completions, manage moderation tasks, and efficiently handle batch processing directly within your workflows. Enhance your content generation, moderation, and task automation with this powerful integration.

## Getting Started with OpenAI

### Prerequisites

* An OpenAI account.
* Active access token.

### Retrieve your OpenAI access token

1. *Create an OpenAI Account -* Once you have an account, log in to the OpenAI platform.

2. *Log in to OpenAI -* Once you have an account, log in to the OpenAI platform.

3. *Navigate to the API Key Section*
   * After logging in, go to the **API Keys** section in your OpenAI account. This is typically found under the dashboard or settings menu.
   * You will see an option to create a new API key. Click on it.

4. *Generate an API Key*

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/aQIKTQmIaCrm6t4akvl5w_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=d9ab450b2a04cd40d37b9e45163d345d" alt="" width="389" height="1168" data-path="help/assets/apps/openai/aQIKTQmIaCrm6t4akvl5w_image.png" />

   * Once you click to create a new API key, a key will be generated. This key is your **access token**.

   * Copy the API key. Make sure to store it securely, as it provides access to your OpenAI resources.

5. *Use the Access Token* *-* In your application or script, you’ll use this API key as the Authorization header in your HTTP requests to authenticate with OpenAI’s API.

6. *Managing API Keys -* You can manage, regenerate, or delete API keys from the same section in your OpenAI account. If your API key is compromised, regenerate it immediately.

## Connecting Engini to OpenAI

1. Enter your Engini account at [https://app.engini.io](https://app.engini.io/).

2. Navigate to the **Connections** page by clicking on **Connections** in the left sidebar or by clicking [here](https://app.engini.io/connections).

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/aM2-B-rooIDzxaCHfI9jv_home-page-connector.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=b9b53c26734f056e0495a419ae9d4c1a" alt="" width="1920" height="1080" data-path="help/assets/apps/openai/aM2-B-rooIDzxaCHfI9jv_home-page-connector.png" />

3. Click on the "New Integration" option located at the top bar.

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=b58b8ec4a5d8b899bad59e7a0476927d" alt="" width="1913" height="906" data-path="help/assets/apps/openai/Tc8OwXyO6hXXNLrpdVzA0_untitled-design-34.png" />

4. Choose the OpenAI option from the available applications.

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/nRBags99-KL8DIW_2RyqG_untitled-design-72.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=fef934060714f31352cd8c9067102428" alt="" width="1920" height="1080" data-path="help/assets/apps/openai/nRBags99-KL8DIW_2RyqG_untitled-design-72.png" />

5. Enter the following details in the “New Integration” form and press Save:

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/8c-qtDqPwB_rmRroZ2aOY_1-29.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=dc267b25696d4f4da9f056b2a6d4c2fd" alt="" width="1920" height="1080" data-path="help/assets/apps/openai/8c-qtDqPwB_rmRroZ2aOY_1-29.png" />

   1. *Connection name -* Enter a unique and descriptive name for this connection. This name will help you identify and manage the connection in your Engini account. “MS SQL” by default.

   2. *Token* – Enter the access token you obtained from OpenAI.

   3. *Save Settings* - Click on the save button to save your connection.

## Triggers

The trigger is executed automatically in response to a specific event. Every workflow must start with a trigger. You can use the **“Check for batches”** trigger to initiate your workflow.

### Check for batches

This trigger will check the batch processing logs in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/wydJ1MEG-YZf_FCSOpNle_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=a6b8e27970468e317ded7545d56cac5a" alt="" width="1592" height="842" data-path="help/assets/apps/openai/wydJ1MEG-YZf_FCSOpNle_image.png" />

1. *Starting (UTC) -* Specifies when the trigger should start. In this example, it is set to start on September 8, 2024, at 00:00 UTC.
2. *Recur Every -* Interval, Defines how often the trigger should recur. In this case, it is set to recur every 15 minutes.
3. *Add time frame -* You can specify a time frame during which the trigger will operate.

   <img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/Yi0iseiQEs_IhPkudDGSr_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=d0bdbf2ae354699503cf2b7e19f490ea" alt="" width="1102" height="328" data-path="help/assets/apps/openai/Yi0iseiQEs_IhPkudDGSr_image.png" />

   * Click on “Add time frame” button.

   * Select a specific time frame to activate the trigger.
     For example, every 15 minutes from 8 AM to 5 PM.

## Actions

### Add File to Vector Store

This action allows you to upload a file to a specified vector store in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/tIFFmvsF1_Uc_o3hy5kF8_screenshot-2025-12-28-121925.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=2b6069afb5ee0d90df2644ea571f3038" alt="" width="963" height="433" data-path="help/assets/apps/openai/tIFFmvsF1_Uc_o3hy5kF8_screenshot-2025-12-28-121925.png" />

1. *Vector Store Id -* Enter the unique ID of the vector store where you want to store the file.
2. *File Id -* Provide the ID of the file you wish to add to the vector store.

**Note:** Make sure to have the correct vector store and file IDs before executing this action to ensure proper file storage and retrieval.

### Analyze Image (Vision)

This action allows you to analyze an image using OpenAI’s vision model. You can provide specific details about the image, such as its type and source, to generate insights.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/ox7UN5VjV0hCc3jVNvWiE_screenshot-2025-12-28-122102.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=d1d74f8b177ff9cbda979cbcd3e11bfc" alt="" width="703" height="795" data-path="help/assets/apps/openai/ox7UN5VjV0hCc3jVNvWiE_screenshot-2025-12-28-122102.png" />

1. *Model -* Select the AI model that will be used for analyzing the image.
2. *Prompt -* Enter any specific instructions or details for how you want the image to be analyzed.
3. *Image Type -* Define the type of image (e.g., JPG, PNG, etc.).
4. *Image Source -* Select the source of the image. Options include:
   * *Base64 String -* Provide the image data encoded as a Base64 string.
   * *Image URL -* Provide the URL where the image is located.
5. *Image Data -* Provide the image data as a URL or a base64-encoded string.
6. *Max Tokens -* Set the maximum number of tokensthe model can use to generate a response based on the image analysis. The default is set to 300 tokens.
7. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Append to Object Array

This action allows you to add a new item to an existing object array within your workflow.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/OYUTfVujDV-eJGXvppUmD_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=486f719125e71b6f22cf65959e941da7" alt="" width="1125" height="373" data-path="help/assets/apps/openai/OYUTfVujDV-eJGXvppUmD_image.png" />

* *Variable -* Select the variable that contains the object array you want to append to. The chosen variable should already be defined in your workflow.

**Note:** This action is useful for dynamically expanding arrays by adding new data points during the execution of your workflow.

### Cancel Batch

This action allows you to cancel an active or pending batch in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/oXXmUTnsrrelJpuhTyVSy_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=f0270d0acde5a585f291b0c5d0ba3e97" alt="" width="1117" height="362" data-path="help/assets/apps/openai/oXXmUTnsrrelJpuhTyVSy_image.png" />

* *Batch Id -* Enter the unique ID of the batch you want to cancel. This ID should correspond to a batch that is currently active or scheduled.

**Note:** Use this action when you need to stop a batch process before it completes.

### Create Batch

This action allows you to create a new batch of requests in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/hhwDpCnWKQhrDRg3JwPkT_screenshot-2025-12-28-122731.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=9225f6d22d0e7cb245273be3e6b67d63" alt="" width="800" height="560" data-path="help/assets/apps/openai/hhwDpCnWKQhrDRg3JwPkT_screenshot-2025-12-28-122731.png" />

1. *Input file Id -* Enter the ID of an uploaded file that contains the requests for the new batch.
2. *Endpoint -* Select the endpoint that will be used for all requests in the batch.
3. *Completion window -* Specify the time window (e.g., 24h) within which the batch should be completed.
4. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Create Chat Completion

This action allows you to generate a chat completion based on the provided conversation history.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/lMhloD8xrMk-RD49viYj8_screenshot-2025-12-28-122952.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=40fce250a3d7274f5578edec71e0391f" alt="" width="961" height="487" data-path="help/assets/apps/openai/lMhloD8xrMk-RD49viYj8_screenshot-2025-12-28-122952.png" />

1. *Messages -* Provide a list of messages comprising the conversation so far. These messages should include both user and assistant inputs to maintain context.
2. *Model -* Select the ID of the model you want to use to generate the chat completion.\\
3. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Create Moderation

This action allows you to classify input text using OpenAI’s moderation tools to determine if the content violates specific policies.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/HQu_UoZ2L03VfowwzFeHm_screenshot-2025-12-28-123206.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=9fb1cb59b2fa383f560b449cbf17cb89" alt="" width="961" height="338" data-path="help/assets/apps/openai/HQu_UoZ2L03VfowwzFeHm_screenshot-2025-12-28-123206.png" />

1. *Input -* Enter the text you want to classify. This text will be analyzed to check if it complies with moderation guidelines.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Create Transcription

This action allows you to transcribe an audio file using OpenAI’s transcription model.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/MZHvBJhbAeI2RFz1iFhce_screenshot-2025-12-28-123411.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=4e5b632c3212e572324490853c2bdc5f" alt="" width="964" height="714" data-path="help/assets/apps/openai/MZHvBJhbAeI2RFz1iFhce_screenshot-2025-12-28-123411.png" />

1. *Filename -* Enter the name of the audio file (in formats such as flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm).
2. *Content -*  Provide the content of the audio file as a base64-encoded string.
3. *Properties:*
   * *Model* - Select the transcription model to be used (e.g., whisper-1).
   * *Request Format* - Choose the format for the transcription result (e.g., text).
4. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Create Translation

This action allows you to translate an audio file into English using OpenAI’s translation model.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/g9ya3tOeLB-6gdXw_bg8A_screenshot-2025-12-28-123645.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=e80d1e570f198024c0efdff48189ce60" alt="" width="962" height="683" data-path="help/assets/apps/openai/g9ya3tOeLB-6gdXw_bg8A_screenshot-2025-12-28-123645.png" />

1. *Filename -*  Enter the name of the audio file (in formats such as flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm).
2. *Content -* Provide the content of the audio file as a base64-encoded string.
3. *Properties:*
   * *Model* - Select the translation model to be used (e.g., whisper-1).
   * *Response Format* - Choose the format for the translation result (e.g., JSON).
4. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

 **Note:** The translation can only be performed into English.

### Generate Audio from Text

This action allows you to convert text into audio using OpenAI’s text-to-speech capabilities.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/Xx8OI8MVv-C3TcLM8ahfF_screenshot-2025-12-28-123922.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=2da4e08c17381a87d119cc16d4549d0e" alt="" width="962" height="654" data-path="help/assets/apps/openai/Xx8OI8MVv-C3TcLM8ahfF_screenshot-2025-12-28-123922.png" />

1. *Model -* Select the model used to generate the audio from the input text.
2. *Input -* Enter the text you want to convert into audio.
3. *Voice -* Select the voice to be used when generating the audio.
4. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Delete File

This action allows you to delete a file from OpenAI’s system.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/JQh_pSPYMVjSJbNSWqWdL_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=4c2fbd946a78cfe97390bccf7beeb818" alt="" width="965" height="287" data-path="help/assets/apps/openai/JQh_pSPYMVjSJbNSWqWdL_image.png" />

* *File ID -* Enter the unique ID of the file you want to delete. Make sure you have the correct file ID, as this action will permanently remove the file from the system.

### Delete Vector Store File

This action allows you to delete a file from a specific vector store in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/mNL0qXUld05mA1Uc-rjzN_screenshot-2025-12-28-124238.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=4959abf9e9126a321ce2a57d9ad90be7" alt="" width="969" height="431" data-path="help/assets/apps/openai/mNL0qXUld05mA1Uc-rjzN_screenshot-2025-12-28-124238.png" />

1. *Vector Store Id -* Enter the unique ID of the vector store from which you want to delete the file.
2. *File Id -* Enter the unique ID of the file you want to delete from the vector store.

**Note:** Ensure that both the Vector Store ID and File ID are correct, as this action will permanently remove the file from the specified vector store.

### Download File Content

This action allows you to download the content of a file from OpenAI’s system.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/ZgJ9S_9LJX19GQRj2hnFQ_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=a3d28d0d7fa393e9f0bb190082381451" alt="" width="962" height="312" data-path="help/assets/apps/openai/ZgJ9S_9LJX19GQRj2hnFQ_image.png" />

* *File Id -*  Enter the unique ID of the file you want to download. The file’s content will be retrieved based on this ID.

**Note:** Ensure that the correct File ID is provided to successfully download the file content.

### Edit Image

This action allows you to edit an image using OpenAI’s image editing capabilities.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/Bww9wDC5OnpchNxxdagmi_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=901a6593627979f69c6338833aeba42b" alt="" width="1589" height="1039" data-path="help/assets/apps/openai/Bww9wDC5OnpchNxxdagmi_image.png" />

1. *Prompt -* Enter a description of the changes you want to apply to the image.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).
3. *Filename -* Provide the name of the image you want to edit.
4. *Content -* Enter the content of the image as a base64-encoded string.
5. *Add Mask Image -* You can also click Add Mask Image to include a mask that specifies which parts of the image should be edited.

### Generate Image

This action allows you to create an image using OpenAI’s image generation capabilities.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/gY3goUaF14bHBSfzF-jPn_screenshot-2025-12-28-131321.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=badca105b83d51053d287a8980abbd29" alt="" width="1133" height="417" data-path="help/assets/apps/openai/gY3goUaF14bHBSfzF-jPn_screenshot-2025-12-28-131321.png" />

1. *Prompt -* Enter a detailed text description of the desired image(s). The AI will use this prompt to generate an image based on the provided description.
2. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Get Batch Info

This action allows you to retrieve information about a specific batch in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/BKaDFqXMh8nOUCDobLwW9_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=9bbdfee1569875fdcf232f3034a5b2a7" alt="" width="1120" height="329" data-path="help/assets/apps/openai/BKaDFqXMh8nOUCDobLwW9_image.png" />

* *Batch Id -* Enter the unique ID of the batch for which you want to retrieve information. The details of the batch will be fetched based on this ID.

**Note:** Ensure the correct Batch ID is provided to successfully retrieve the batch information.

### Get Batches

This action allows you to retrieve a list of batches stored in OpenAI’s system. You can use this to view all the batches that have been created and track their status.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/w-t-Rk4dp436HJKztfpDB_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=fcbb0fb097eda7c747aff1a319f60389" alt="" width="1288" height="482" data-path="help/assets/apps/openai/w-t-Rk4dp436HJKztfpDB_image.png" />

### Initialize Object Array

This activity initializes an object array in Open AI, and stores a single structured entry based on the selected object type (e.g. Assistant Message, Attachments, Chat Message).

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/v6AkHfDh2SbuDdAXQ2NL6_screenshot-2025-12-28-131759.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=80f63d0d6a7b01fbc8f2b2a90a7d5454" alt="" width="1118" height="571" data-path="help/assets/apps/openai/v6AkHfDh2SbuDdAXQ2NL6_screenshot-2025-12-28-131759.png" />

1. *Variable Name -* Enter the name of the variable that will hold the initialized object array. This name will be used throughout the workflow whenever you refer to this object array.
2. *Object Element Type -* This field defines the type of data the array will store, such as assistant messages, attachments, or chat messages. The selected type determines the structure of the array and its use in subsequent actions.
3. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### List Files

This action allows you to retrieve a list of files stored in OpenAI’s system.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/RT9idByq-4lD2jmdfmRKr_image.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=593b63066e621006b57826fde93df9de" alt="" width="1116" height="315" data-path="help/assets/apps/openai/RT9idByq-4lD2jmdfmRKr_image.png" />

* *Add Filter -* Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, [click here](/help/workflows/workflow-editor#add-filters).

### List Vector Store Files

This action allows you to retrieve a list of files stored in a specific vector store in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/TfLVB1f4V9-OTWsFHMsEa_screenshot-2025-12-28-132201.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=0399fbde5846444bbf854e882f50c6ad" alt="" width="1122" height="605" data-path="help/assets/apps/openai/TfLVB1f4V9-OTWsFHMsEa_screenshot-2025-12-28-132201.png" />

1. *Vector Store Id -* Enter the unique ID of the vector store from which you want to list the files.
2. *Order By Created At -* Select whether you want to order the files by the date they were created in ascending or descending order.
3. *Add Filter -* Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, [click here](/help/workflows/workflow-editor#add-filters).

### Message an Assistant

This action allows you to send a message to an assistant in OpenAI.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/MwXmmHfNKAy9MYzEetlMH_screenshot-2025-12-28-132442.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=131c8e95836a13317387044af76fc802" alt="" width="1116" height="721" data-path="help/assets/apps/openai/MwXmmHfNKAy9MYzEetlMH_screenshot-2025-12-28-132442.png" />

1. *Assistant Id -* Enter the unique ID of the assistant to which you want to send the message.
2. *Message -* Provide the content of the message you want to send.
3. *Tools -* Select any tools the assistant should use when processing the message.
4. *Add Field* - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, [click here](/help/workflows/workflow-editor#add-fields).

### Upload File

This action allows you to upload a file to OpenAI’s system.

<img src="https://mintcdn.com/engini/_MSo-hm6zXTakHQg/help/assets/apps/openai/hRZM3sQAzL69EhzM8_i1V_screenshot-2025-12-28-132643.png?fit=max&auto=format&n=_MSo-hm6zXTakHQg&q=85&s=82d6b4519ebb79380c1a8d3a4d986d1a" alt="" width="1123" height="598" data-path="help/assets/apps/openai/hRZM3sQAzL69EhzM8_i1V_screenshot-2025-12-28-132643.png" />

1. *Filename -* Enter the name of the file you want to upload.
2. *Content -* Provide the content of the file as a base64-encoded string.
3. *Purpose -* Select the purpose of the uploaded file from the list Purpose (e.g., assistants, batch, embedding, fine-tune, vision).

**Note:** Make sure to select the appropriate purpose to ensure the file is used correctly within OpenAI’s system.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.