Skip to main content

Getting an API key

1

Create an OpenAI account

Go to platform.openai.com and sign in or create an account.
2

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.
3

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.
4

Select OpenAI as your provider

Under Node to Code | LLM Provider, set Provider to OpenAI.

Model selection

Set the model under Node to Code | LLM Services | OpenAI → OpenAI Model.
Display nameModel IDNotes
o4 Minio4-miniRecommended — best price/performance
GPT-4.1gpt-4.1
o3o3
o3 Minio3-mini
o1o1
o1 Previewo1-preview-2024-09-12Does not support system prompts
o1 Minio1-mini-2024-09-12Does not support system prompts
GPT-4ogpt-4o-2024-08-06
GPT-4o Minigpt-4o-mini-2024-07-18
o4 Mini is the recommended default. It delivers strong translation quality at a fraction of the cost of the larger reasoning models.

System prompt support

o1 Preview and o1 Mini do not support system prompts. The plugin handles this automatically by merging the system prompt into the user message for those models.All other OpenAI models — including o1, o3, o3 Mini, o4 Mini, GPT-4.1, GPT-4o, and GPT-4o Mini — support system (developer) prompts.

Build docs developers (and LLMs) love