providers
OpenAI
gpt-5.x. mantis handles this API's quirks for you — max_completion_tokens vs max_tokens and locked temperature are auto-negotiated.
| endpoint | https://api.openai.com/v1 |
| env var | OPENAI_API_KEY |
| get a key | platform.openai.com |
Get an API key
- Sign in at platform.openai.com
- Open the API keys page
- Click 'Create new secret key'
- Name it and copy the key (shown once)
- Add funds under Settings → Billing
No free tier; pay-as-you-go needs a prepaid funded balance.
Enable
export OPENAI_API_KEY=... # shell profile — survives foreveror in the terminal — validates the key live before saving:
/enable openaior pick any locked 🔒 OpenAI model in /models and paste the key inline.
Models
Starter menu (once enabled, /models fetches the provider's full live list):
gpt-5.4gpt-5.4-minigpt-5.4-nanogpt-5.4-pro
Switch anytime — /model gpt-5.4 fuzzy-matches; context carries over.
SDK
from mantis_agent import MantisAgentOptions
options = MantisAgentOptions(
model="gpt-5.4",
backend="https://api.openai.com/v1", # key read from $OPENAI_API_KEY
)Notes
- gpt-5.x rejects
max_tokensand non-default temperature; mantis retries with the right parameters automatically. - Realtime/audio/codex models are filtered out of
/models— only chat models show.