Skip to content

"OpenAI rejected the request" #10

Closed

Description

@avaer

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?

Activity

  1. LuciferMornens commented on Apr 16, 2025

    @LuciferMornens

    Running into this too, and have access to all models.

  2. shobhitic commented on Apr 16, 2025

    @shobhitic

    Ran into this exact issue

  3. ndisalvio3 commented on Apr 16, 2025

    @ndisalvio3

    Can confirm

  4. maheshrijal commented on Apr 16, 2025

    @maheshrijal
    Contributor

    ++ Same issue

  5. adamjgrant commented on Apr 16, 2025

    @adamjgrant

    Surely there must be a step somewhere where I can provide my API key? The README.md just says to run the npm command 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_KEY because 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.

  6. justinechang39 commented on Apr 16, 2025

    @justinechang39

    same

  7. rasdani commented on Apr 16, 2025

    @rasdani

    same

  8. MadcowD commented on Apr 16, 2025

    @MadcowD

    as well

  9. johanbaath commented on Apr 16, 2025

    @johanbaath

    Happening here as well, maybe still rolling out? I'm on tier 5 and have access via the API and playground.

  10. DhrubaPatra commented on Apr 16, 2025

    @DhrubaPatra

    same pinch.

  11. bradennapier commented on Apr 16, 2025

    @bradennapier

    samesies! <3 super pumepd though!

  12. EverStarck commented on Apr 16, 2025

    @EverStarck

    it prob cant find the key because workdir is defaulted to "~"

    anyone see how to specify workdir?

    │ localhost session: * │ ↳ workdir: ~ │ ↳ model: o4-mini │ ↳ approval: suggest

    wrong issue, but just run codex on the workdir you want, ex:
    cd code/react/foo; codex

  13. MadcowD commented on Apr 16, 2025

    @MadcowD

    This is the issue actually:

        system
        ⚠️  OpenAI rejected the request (request ID: req_a057493e36bb3dda8a2fe4646b7d4cb0): 400 Your organization must be verified to generate reasoning summaries. Please go to: 
    https://platform.openai.com/settings/organization/general and click on Verify Organization.. Please verify your settings and try again.
    

    https://platform.openai.com/settings/organization/general

    I made a PR to fix this. #23

  14. leandroz commented on Apr 16, 2025

    @leandroz

    Same problem here!

  15. cruffinoni commented on Apr 16, 2025

    @cruffinoni

    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.

  16. 22 remaining items

  17. adityamcodes commented on Apr 16, 2025

    @adityamcodes

    anyone figure out how to get reasoning level to work?

  18. tibo-openai commented on Apr 16, 2025

    @tibo-openai
    Collaborator

    Fix was fixed earlier today, please open new issues for other things and thanks for being patient!

  19. kohl00 commented on Apr 16, 2025

    @kohl00

    same only the o4-mini-[date-slug] works for me!

  20. added a commit that references this issue on Sep 8, 2025
    2d2c886
  21. added a commit that references this issue on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions