"OpenAI rejected the request"
Resolved 💬 41 comments Opened Apr 16, 2025 by avaer Closed Apr 16, 2025
💡 Likely answer: A maintainer (maheshrijal, contributor)
responded on this thread — see the highlighted reply below.
I set export OPENAI_API_KEY= and ran the codex cli with a simple prompt "read the README.md" and ran into this error:
⚠️ OpenAI rejected the request (request ID: req_13e38c243f89126dd24093d2e4892535). Please verify your settings and
try again.
Is there any way to debug this?
Showing cached comments. Read the full discussion on GitHub ↗
40 Comments
Running into this too, and have access to all models.
Ran into this exact issue
Can confirm
++ Same issue
Surely there must be a step somewhere where I can provide my API key? The README.md just says to run the
npmcommand and there's "zero configuration" from there. How could that be? Is OpenAI providing this service for free?In the OP's description they mention
OPENAI_API_KEYbecause it's only in the Non‑interactive / CI mode section. Should we have that in our environment anyway?I have that but still get this result.
same
same
as well
Happening here as well, maybe still rolling out? I'm on tier 5 and have access via the API and playground.
same pinch.
samesies! <3 super pumepd though!
wrong issue, but just run
codexon the workdir you want, ex:cd code/react/foo; codexThis is the issue actually:
https://platform.openai.com/settings/organization/general
I made a PR to fix this. https://github.com/openai/codex/pull/23
Same problem here!
Hey! 👋
So just a thought — the default model used by the CLI is _o4-mini_, which I think might not be fully rolled out to everyone yet. If your API key doesn’t have access to that model, that could explain the rejection error you’re seeing.
You might want to try running the /model command in the CLI and picking something like _gpt-4.5_ instead — basically any model you know you have access to — and see if that helps.
Not totally sure that’s the issue, but worth trying! Let me know if that works for you.
I tried with
o3-miniand it has the same issue.Switched to 4o and it fixed!
Anyone else facing the same issue with a different
OPENAI_BASE_URL? I've got a LiteLLM server with O3-mini connected to it, but face the same issuethis is indeed the problem
o4-mini-2025-04-16works! and it works ... amazing this is awesome !It seems to be a rollout issue.
o3noro3-2025-04-16work though.gpt-4.1ando4-mini-2025-04-16seem to work.EDIT:
After verifying my organization,
o3workshow do you change the model?
/modelHappens here same issue
seea above for solution
@MadcowD is right: the issue is that this is trying to generate reasoning summaries, and you need to verify your org before you can do that.
Right now, non-reasoning models work, but reasoning models will not. If you verify your org (https://platform.openai.com/settings/organization/general), the reasoning models will work.
I can confirm it works, just start codex with
better to use
codex -m o4-mini-2025-04-16to use new 04 miniverifying our org helped!
https://help.openai.com/en/articles/10910291-api-organization-verification
from blog post
!Image
Can confirm o4-mini-2025-04-16 works.
It does not work, I don't know if it is because I am not in USA.
!Image
Verify your organization people, that is the fix.
Below worked for me.
codex -m o4-mini-2025-04-16
To expand on @ReyNeil's suggestion to "verify your organization," go to https://platform.openai.com/settings/organization/general
There you will see a "Verify Organization" button if you have not verified already.
You may also need to generate and use a new API key (you shouldn't have to but empirically...)
o4-mini should work and for o3 you currently need to verify as explained just above
FWIW I needed to verify, then had the same issue until I generated a new API key post-verification.
Yeah no thanks. Not providing my biometrics, going back to claude code.
!Image
same for me, only o4-mini works and o3 is rejected.
anyone figure out how to get reasoning level to work?
Fix was fixed earlier today, please open new issues for other things and thanks for being patient!
same only the o4-mini-[date-slug] works for me!