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

# OpenAI (GPT)

> Using GPT models in env

# OpenAI

OpenAI's GPT models are among the most widely used AI systems, known for versatility and strong performance across tasks.

## Available Models

| Model         | Context     | Best For                   |
| ------------- | ----------- | -------------------------- |
| GPT-4o        | 128K tokens | Multimodal, fast responses |
| GPT-4 Turbo   | 128K tokens | Complex reasoning          |
| GPT-3.5 Turbo | 16K tokens  | Fast, cost-effective       |

## Setup

1. Get an API key from [platform.openai.com](https://platform.openai.com/api-keys)
2. Open env Settings (⌘ + ,)
3. Add your key under **OpenAI**
4. Select a GPT model to start chatting

## Features

### Multimodal

GPT-4o natively supports images. Drag and drop an image into chat or use the attachment button.

### Function Calling

GPT models support function calling for structured outputs. This powers advanced features in env.

### JSON Mode

Enable JSON mode in model settings to get structured JSON responses.

## Tips

<Tip>
  GPT-4o offers the best balance of speed, capability, and cost for most tasks.
</Tip>

* Use **GPT-4 Turbo** for complex analysis requiring careful reasoning
* Use **GPT-3.5 Turbo** for simple tasks to minimize costs
* GPT models are strong at following specific formatting instructions

## Keyboard Shortcut

Press **⌘ + 2** to quickly switch to OpenAI.
