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

# OpenAI

> Configure Oryx to use OpenAI's GPT models

GPT-4.1 is powerful for complex agent tasks. If you need the best reasoning capabilities, OpenAI is a solid choice.

## Get your API key

### Step 1: Go to OpenAI Platform

Visit [platform.openai.com](https://platform.openai.com), click the settings icon in the top right, then go to **API keys** in the left sidebar.

<img src="https://mintcdn.com/lol-87e214d6/eTkn-8G54o6wzba3/images/SCR-20251007-kibz.png?fit=max&auto=format&n=eTkn-8G54o6wzba3&q=85&s=cb7f83351cb8ae6dbdd42cacb2d15b18" alt="SCR-20251007-kibz.png" width="1809" height="1417" data-path="images/SCR-20251007-kibz.png" />

### Step 2: Create a new key

Click **Create new secret key**, name it, and click **Create secret key**.

<img src="https://mintcdn.com/lol-87e214d6/eTkn-8G54o6wzba3/images/SCR-20251007-kiyo.png?fit=max&auto=format&n=eTkn-8G54o6wzba3&q=85&s=b3179b4e3333d952a641ac17f7d19bd4" alt="SCR-20251007-kiyo.png" width="1809" height="1417" data-path="images/SCR-20251007-kiyo.png" />

### Step 3: Copy your key

Copy the key that appears. Keep it safe - you won't be able to see it again.

## Configure Oryx

Click the settings icon in Oryx, then click **USE** on the OpenAI card. Paste your API key and configure the settings based on your chosen model. For GPT-4.1, set **Context Window Size** to `128000` and check **Supports Images**. Click **Save**.

<img src="https://mintcdn.com/lol-87e214d6/HQWW0FFWRvqlfAYo/images/provider-setting.png?fit=max&auto=format&n=HQWW0FFWRvqlfAYo&q=85&s=59b15163df7b8e3fb25079358d3e109b" alt="SCR-20251006-mnhm.png" width="1280" height="827" data-path="images/provider-setting.png" />

Done! You're ready to use Oryx with OpenAI.
