OpenAI
Use GPT and o-series models from OpenAI as the LLM for your agents.
Get an API key
Sign up at platform.openai.com and create an API key under API Keys.
Setup
# 1. Store the key
pai add secret openai-key --from-literal api-key=sk-...
# 2. Create a model binding
pai apply -f - <<EOF
apiVersion: pai.io/v1
kind: ModelBinding
metadata:
name: gpt-4o
spec:
provider: openai
model: gpt-4o
maxTokensPerDay: 500000
maxTokensPerRequest: 16000
apiKeySecretRef:
name: openai-key
key: api-key
EOF
Supported models
| Model | model value | Best for |
|---|---|---|
| GPT-4o | gpt-4o | Best overall — multimodal, fast |
| GPT-4o mini | gpt-4o-mini | Fast, cost-efficient |
| o1 | o1 | Deep reasoning |
| o3-mini | o3-mini | Fast reasoning |
Use in an agent
spec:
modelBindings:
- gpt-4o