# Gemini 3.1 with Google API key fails due to disable\_thought\_tag extra\_body field

**URL:** <https://forum.cursor.com/t/gemini-3-1-with-google-api-key-fails-due-to-disable-thought-tag-extra-body-field/159066>\
**Category:** Bug Reports\
**Tags:** gemini, byok\
**Created:** [April 26, 2026, 1:04pm UTC](https://forum.cursor.com/t/gemini-3-1-with-google-api-key-fails-due-to-disable-thought-tag-extra-body-field/159066 "2026-04-26T13:04:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eran\_Kaufman](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@Eran\_Kaufman](https://forum.cursor.com/u/Eran_Kaufman)\
**Post date:** [April 26, 2026, 1:04pm UTC](https://forum.cursor.com/t/gemini-3-1-with-google-api-key-fails-due-to-disable-thought-tag-extra-body-field/159066/1 "2026-04-26T13:04:46Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

When using Gemini 3.1 through a Google API key / BYOK, the request fails before completion. Cursor surfaces this provider error:

Provider returned error: [{ “error”: { “code”: 400, “message”: “Invalid JSON (for ‘extra\_body’): no such field: ‘disable\_thought\_tag’”, “status”: “INVALID\_ARGUMENT” } }]

This looks like Cursor is sending an extra\_body field named disable\_thought\_tag that Google’s API rejects.

### Steps to Reproduce

1. Enable/use a Google API key in Cursor.
2. Select Gemini 3.1 as the model.
3. Send any chat or agent request.
4. Observe the provider error above.

### Expected Behavior

Gemini 3.1 should work when Google API key support is enabled, or Cursor should omit provider-specific request fields that Google’s API does not accept.

### Operating System

MacOS

### Version Information

IDE:  
Version: 3.1.15  
VSCode Version: 1.105.1  
Commit: 3a67af7b780e0bfc8d32aefa96b8ff1cb8817f80

### For AI issues: which model did you use?

Gemini 3.1 with Google API key / BYOK

### For AI issues: add Request ID with privacy disabled

Not available in this report. The visible provider error is: Invalid JSON (for ‘extra\_body’): no such field: ‘disable\_thought\_tag’.

### Additional Information

Operating system reported by the machine: macOS / Darwin 25.1.0. Cursor otherwise works; this appears limited to the Gemini 3.1 + Google API key path.

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [April 27, 2026, 10:15am UTC](https://forum.cursor.com/t/gemini-3-1-with-google-api-key-fails-due-to-disable-thought-tag-extra-body-field/159066/3 "2026-04-27T10:15:32Z")

</div>

Split this topic on April 27, 2026, 10:15am UTC

4 posts were merged into an existing topic: [Gemini API key not working in Cursor, getting PROVIDER\_ERROR](https://forum.cursor.com/t/gemini-api-key-not-working-in-cursor-getting-provider-error/157546)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [April 27, 2026, 10:15am UTC](https://forum.cursor.com/t/gemini-3-1-with-google-api-key-fails-due-to-disable-thought-tag-extra-body-field/159066/4 "2026-04-27T10:15:38Z")

</div>

Closed on April 27, 2026, 10:15am UTC


