Gemini 3 Flash on Openrouter: Provider returned error #3654

Closed
opened 2026-02-16 17:41:01 -05:00 by yindo · 7 comments
Owner

Originally created by @bcardarella on GitHub (Dec 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I want to use the Gemini 3 Flash model on Openrouter. I chose it in the /models list and get Provider returnd an error

I can do something simple like prompt for 1 + 1

But when I make a more complex request to work on a project it fails:

https://opncd.ai/share/N6ESpQ3S

OpenCode version

1.0.168

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @bcardarella on GitHub (Dec 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I want to use the Gemini 3 Flash model on Openrouter. I chose it in the `/models` list and get `Provider returnd an error` I can do something simple like prompt for `1 + 1` But when I make a more complex request to work on a project it fails: https://opncd.ai/share/N6ESpQ3S ### OpenCode version 1.0.168 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:01 -05:00
yindo closed this issue 2026-02-16 17:41:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4632: Gemini 3 pro preview issues - Similar Gemini provider problems
  • #4608: "Provider returned error" with openrouter/openai/gpt-5.1-codex - Same "Provider returned error" message
  • #4579: Openrouter unwanted requests to Claude Haiku 4.5 - Openrouter provider issues
  • #915: OpenRouter AI_APICallError: Provider returned error - Generic provider error with Openrouter

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 18, 2025): This issue might be a duplicate of existing issues. Please check: - #4632: Gemini 3 pro preview issues - Similar Gemini provider problems - #4608: "Provider returned error" with openrouter/openai/gpt-5.1-codex - Same "Provider returned error" message - #4579: Openrouter unwanted requests to Claude Haiku 4.5 - Openrouter provider issues - #915: OpenRouter AI_APICallError: Provider returned error - Generic provider error with Openrouter Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 18, 2025):

model misconfigured ill fix ugh

@rekram1-node commented on GitHub (Dec 18, 2025): model misconfigured ill fix ugh
Author
Owner

@rekram1-node commented on GitHub (Dec 18, 2025):

try:

opencode models --refresh

Run it in like 1-2 min should be fixed

@rekram1-node commented on GitHub (Dec 18, 2025): try: `opencode models --refresh` Run it in like 1-2 min should be fixed
Author
Owner

@sedubois commented on GitHub (Jan 22, 2026):

I ran opencode models --refresh but still get plenty of "Provider returned error" messages when coding with OpenRouter and Gemini 3 Flash Preview, using OpenCode 1.1.28 on Arch Linux. I can force the model to resume its task by constantly asking it to do so, but it gets very annoying. Is there any known fix?

@sedubois commented on GitHub (Jan 22, 2026): I ran `opencode models --refresh` but still get plenty of "Provider returned error" messages when coding with OpenRouter and Gemini 3 Flash Preview, using OpenCode 1.1.28 on Arch Linux. I can force the model to resume its task by constantly asking it to do so, but it gets very annoying. Is there any known fix?
Author
Owner

@jakobbjelver commented on GitHub (Jan 27, 2026):

I still also get lots of "Provider returned error" messages. Using OpenCode 1.1.36 on different platforms and devices (CLI and GUI on macOS and windows).

@jakobbjelver commented on GitHub (Jan 27, 2026): I still also get lots of "Provider returned error" messages. Using OpenCode 1.1.36 on different platforms and devices (CLI and GUI on macOS and windows).
Author
Owner

@jroddev commented on GitHub (Jan 28, 2026):

Gemini 3 Flash has seemed really unstable the last 24 hours. I only just found the opencode log file so I'm not sure if this is all errors , but the latest one was

"error":{
  "code":400,
  "message":"Provider returned error",
  "type":null,
  "param":null,
  "metadata": {
    "raw": {
      "error": {
        "code": 400, 
        "message": "Unable to submit request because Thought signature is not valid.. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini",
        "status": "INVALID_ARGUMENT"  
      }
    }",
    "provider_name":"Google",
    "is_byok":false
  }
}

OpenCode version 1.1.30 with OpenRouter and Gemini 3 Flash Preview running on Linux.

@jroddev commented on GitHub (Jan 28, 2026): Gemini 3 Flash has seemed really unstable the last 24 hours. I only just found the opencode log file so I'm not sure if this is all errors , but the latest one was ``` "error":{ "code":400, "message":"Provider returned error", "type":null, "param":null, "metadata": { "raw": { "error": { "code": 400, "message": "Unable to submit request because Thought signature is not valid.. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini", "status": "INVALID_ARGUMENT" } }", "provider_name":"Google", "is_byok":false } } ``` OpenCode version 1.1.30 with OpenRouter and [Gemini 3 Flash Preview](https://openrouter.ai/google/gemini-3-flash-preview) running on Linux.
Author
Owner

@sedubois commented on GitHub (Jan 28, 2026):

Could this issue be reopened? Still lots of "provider returned error" with Gemini 3 Flash and Pro.

@sedubois commented on GitHub (Jan 28, 2026): Could this issue be reopened? Still lots of "provider returned error" with Gemini 3 Flash and Pro.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3654