gpt 5.4 mini is not available in model picker when using API auth key
Open 💬 3 comments Opened Mar 26, 2026 by balboah
What version of the Codex App are you using (From “About Codex” dialog)?
26.324.21641 (1228)
What subscription do you have?
openai platform API key
What platform is your computer?
macOS
What issue are you seeing?
While logged into codex with ChatGPT, the gpt 5.4 mini model is available in the dropdown.
While logged into codex using an API key, it is not.
<img width="172" height="220" alt="Image" src="https://github.com/user-attachments/assets/3034b0ec-3875-415d-95dd-174fafe2492d" />
What steps can reproduce the bug?
- codex login --with-api-key
- open codex app or codex cli, observe missing model
What is the expected behavior?
Models enabled in the API should also be available in the codex app model picker
Additional information
_No response_
3 Comments
Not available on 0.116.0 codex CLI either, but updating to 0.117.0 (latest) fixes it
<img width="1000" height="539" alt="Image" src="https://github.com/user-attachments/assets/953ab482-0ac8-4d57-b0be-54f16277bc33" />
In
refresh_available_models, API-key users hit an unconditional early return that prevents them from ever fetching the remote model catalog:This creates a circular problem for API-key users (where
auth_mode() == Some(AuthMode::ApiKey)):fetch_and_update_models()is unreachable because of the early return at line 410fetch_and_update_models()is the only place that callspersist_cache()(line 467-469), so the cache is never written by API-key userstry_load_cache()requires the cache to be fresh (5-min TTL) and version-matched, so any cache from a prior ChatGPT session quickly becomes unusablemodels.json, which doesn't containgpt-5.4-miniIn contrast, ChatGPT auth users and command-auth users proceed past line 411 to the normal
OnlineIfUncachedpath, which falls through tofetch_and_update_models()on cache missThe early return at line 410 should not be unconditional for API-key users who have valid credentials. The
OnlineIfUncachedandOnlinestrategies should be allowed to reachfetch_and_update_models()when the user has a valid API key, just as they do for ChatGPT and command-auth users. The guard at lines 401-411 appears to have been intended for users with no auth at all (where a network fetch would fail anyway), but it also blocks authenticated API-key users.I have encountered the same issue. I'm using the enterprise unified routing API endpoint, which may not support forwarding requests for the model list. I think it's worth considering updating the built-in
models.jsoncontent, or providing a user-defined configuration file formodels.json.