Getting an API key
Create an OpenAI account
Go to platform.openai.com and sign in or create an account.
Generate an API key
Navigate to API keys in the left sidebar and click Create new secret key. Copy the key — you won’t be able to see it again.
Add the key in Unreal Engine
Open Edit → Project Settings → Plugins → Node to Code → LLM Services → OpenAI and paste your key into the API Key field.
Model selection
Set the model under Node to Code | LLM Services | OpenAI → OpenAI Model.| Display name | Model ID | Notes |
|---|---|---|
| o4 Mini | o4-mini | Recommended — best price/performance |
| GPT-4.1 | gpt-4.1 | |
| o3 | o3 | |
| o3 Mini | o3-mini | |
| o1 | o1 | |
| o1 Preview | o1-preview-2024-09-12 | Does not support system prompts |
| o1 Mini | o1-mini-2024-09-12 | Does not support system prompts |
| GPT-4o | gpt-4o-2024-08-06 | |
| GPT-4o Mini | gpt-4o-mini-2024-07-18 |