---
title: "ChatGPT"
description: "EMILY.RPA ChatGPT module: call OpenAI GPT models with a text prompt and image files, and write the result to output.txt in the working folder."
source: https://docs.emily.tips/en/ai-agent/chatgpt
---

# ChatGPT

Use OpenAI's GPT models. Input a natural language text prompt and image files, and output the text result to the output.txt file in the working folder.

![](https://docs.emily.tips/img/en/ai-agent-011.png)

## Parameters

**`API KEY`** - API key for using the OpenAI model. Supports the **%FILENAME%** variable, or use the prepaid dedicated key **%credit-key%**.

**`MODEL`** - Defaults to the gpt-4o model. You can select other models from the dropdown or enter manually.

**`IMAGE`** - Optionally select an image file for the model to analyze.

**`OUTPUT`** - Output can be plain text or JSON format.

**`TEMPERATURE(0~1.0)`** - Randomness of the response. 0 is the lowest and most stable; 1.0 is the most random.

**`MAX TOKENS`** - Limits the maximum number of response tokens. Higher values generally require more time to generate a response.

**`SYSTEM PROMPT`** - Specifies the role or output guidelines for the model. Supports the **%FILENAME%** template.

**`USER PROMPT`** - User prompt and input. Supports the **%FILENAME%** template.

## Model Limits and Pricing

For features, capabilities, limits, and pricing of each GPT model, refer to the [OpenAI website](https://platform.openai.com/docs/models).
