# My API key is successfully verified but I get "invalid model"

**URL:** <https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990>\
**Category:** Bug Reports\
**Created:** [May 17, 2025, 1:14pm UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990 "2025-05-17T13:14:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![david1175082521](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@david1175082521](https://forum.cursor.com/u/david1175082521)\
**Post date:** [May 17, 2025, 1:14pm UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/1 "2025-05-17T13:14:50Z")

</div>

Thanks for reporting a bug you have found in Cursor!  
Please add the following info to help us diagnose your issue:

✅ **Check the forum** to ensure the issue hasn’t been reported already  
I’ve checked.

🐞 Provide a **clear description** of the bug  
I can successfully verify the API key for my custom model (Step series).  
The API provider also shows a record of using the key for verification.  
But I get “invalid model” when using chat mode or cmd+k mode.

🔄 Explain how to **reproduce the bug** (if known)  
📷 Attach **screenshots or recordings** (e.g., `.jpg`, `.png`, `.mp4`).

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/f/3/f3d2cff68265c17e76c83386a5851edce8218a78.png)  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/2/3224a4b66a0022b68689a1b7809abbabed6ced52.png)

💻 Tell us your operating system and your **Cursor version** (e.g., `Windows, 0.x.x`).  
Version: 0.49.6 (Universal)  
VSCode Version: 1.96.2  
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50  
Date: 2025-04-25T04:39:09.213Z  
Electron: 34.3.4  
Chromium: 132.0.6834.210  
Node.js: 20.18.3  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.4.0

🚫 Tell us if the issue stops you from using Cursor.

---

<div class="post-metadata">

**Author:** ![david1175082521](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@david1175082521](https://forum.cursor.com/u/david1175082521)\
**Post date:** [May 23, 2025, 7:56am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/2 "2025-05-23T07:56:51Z")

</div>

any one can help?  
I cannot use any custom models like Qwen and Step

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 23, 2025, 11:27am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/3 "2025-05-23T11:27:22Z")

</div>

Hey, which provider do you use?

---

<div class="post-metadata">

**Author:** ![david1175082521](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@david1175082521](https://forum.cursor.com/u/david1175082521)\
**Post date:** [May 28, 2025, 6:35am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/4 "2025-05-28T06:35:11Z")

</div>

I’m using qwen and step.  
After I’ve upgraded to pro, I can use these custom models.  
However, I think free users should have the access to use their custom models.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 28, 2025, 7:41am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/5 "2025-05-28T07:41:40Z")

</div>

Yes, this is an issue that we are trying to resolve. Free users should still be able to add their API keys.

---

<div class="post-metadata">

**Author:** ![BenkangPeng](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/benkangpeng/32/63603_2.png) [@BenkangPeng](https://forum.cursor.com/u/BenkangPeng)\
**Post date:** [June 14, 2025, 1:54am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/6 "2025-06-14T01:54:58Z")

</div>

Looking forward to cursor team’s improvement! I met the same issue when I add the custom deepseek model by deepseek api.

My key has been verified(deepseek offical said their key is compatiable to openai’s):

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/b/db15e55b3bbf242e488fe1592db7550bc215d4e8.png)  
But I get the error when chat with the model:  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/5/857bdef8834384c90cdb1498ef722a3f9752497c.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 14, 2025, 1:55am UTC](https://forum.cursor.com/t/my-api-key-is-successfully-verified-but-i-get-invalid-model/92990/7 "2025-07-14T01:55:52Z")

</div>

Closed on July 14, 2025, 1:55am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
