OpenRouter.ai provider: Not listing google/gemma-3-27b-it:free variant #7674

Open
opened 2026-02-16 18:07:54 -05:00 by yindo · 5 comments
Owner

Originally created by @jeremyakers on GitHub (Jan 26, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When I connect OpenCode to my OpenRouter.ai account, it does not show the google/gemma-3-27b-it:free variant:

Image

It shows (free) variants of other Gemma models, but not Gemma 3 27b IT specifically.

I tried selecting the non-free version, and it just throws this error:
"Provider returned error"

Image

Which is not super helpful.

When I increase my budget on my OpenCode API key (I had it set to $0 to prevent it from using the non-free version) and now I see it hitting other models rather than the one I selected:

Image

And it still throws the "Provider returned error" message.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

Connect to OpenRouter.ai and try to select google/gemma-3-27b-it:free variant

Screenshot and/or share link

Provided in report

Operating System

Ubuntu 22.04

Terminal

GNOME Terminal Version 3.44.0 for GNOME 42

Originally created by @jeremyakers on GitHub (Jan 26, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When I connect OpenCode to my OpenRouter.ai account, it does not show the google/gemma-3-27b-it:free variant: <img width="591" height="383" alt="Image" src="https://github.com/user-attachments/assets/03be8889-afcd-4df0-bf5e-fb857c762ba3" /> It shows (free) variants of other Gemma models, but not Gemma 3 27b IT specifically. I tried selecting the non-free version, and it just throws this error: "Provider returned error" <img width="564" height="323" alt="Image" src="https://github.com/user-attachments/assets/5712c89e-089e-4984-95cc-2fff4782a8b1" /> Which is not super helpful. When I increase my budget on my OpenCode API key (I had it set to $0 to prevent it from using the non-free version) and now I see it hitting other models rather than the one I selected: <img width="1130" height="155" alt="Image" src="https://github.com/user-attachments/assets/32a80907-9826-4c51-a4b7-9183876da2b4" /> And it still throws the "Provider returned error" message. ### Plugins None ### OpenCode version 1.1.36 ### Steps to reproduce Connect to OpenRouter.ai and try to select google/gemma-3-27b-it:free variant ### Screenshot and/or share link Provided in report ### Operating System Ubuntu 22.04 ### Terminal GNOME Terminal Version 3.44.0 for GNOME 42
yindo added the bugzen labels 2026-02-16 18:07:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #10594: No endpoints found error from OpenRouter with free models, model list not updating
  • #10557: OpenRouter provider selection/pinning not working correctly - wrong provider being used
  • #10687: Configured models not appearing in the UI model list
  • #10454: Authenticated models not being discovered in model list even though they're available

These issues all relate to OpenRouter model discovery, free variant availability, and provider fallback logic. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #10594: No endpoints found error from OpenRouter with free models, model list not updating - #10557: OpenRouter provider selection/pinning not working correctly - wrong provider being used - #10687: Configured models not appearing in the UI model list - #10454: Authenticated models not being discovered in model list even though they're available These issues all relate to OpenRouter model discovery, free variant availability, and provider fallback logic. Feel free to ignore if none of these address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 26, 2026):

I think it's because the model isn't in the models.dev database. That's where opencode gets its model information, so it needs to be added there (https://github.com/anomalyco/models.dev).

Also, be careful because you are trying to use the openrouter provider with the zen provider, they're not the same.

@cravenceiling commented on GitHub (Jan 26, 2026): I think it's because the model isn't in the models.dev database. That's where opencode gets its model information, so it needs to be added there (https://github.com/anomalyco/models.dev). Also, be careful because you are trying to use the openrouter provider with the zen provider, they're not the same.
Author
Owner

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

"trying to use the openrouter provider with the zen provider, they're not the same"

I know they are not the same. I am only using OpenRouter here, not Zen.

@jeremyakers commented on GitHub (Jan 27, 2026): "trying to use the openrouter provider with the zen provider, they're not the same" I know they are not the same. I am only using OpenRouter here, not Zen.
Author
Owner

@wang1212 commented on GitHub (Feb 8, 2026):

This is a long-standing and unresolved problem, resulting in a very poor user experience for developers.

@wang1212 commented on GitHub (Feb 8, 2026): This is a long-standing and unresolved problem, resulting in a very poor user experience for developers.
Author
Owner

@cravenceiling commented on GitHub (Feb 8, 2026):

I already see that model...

Image

Try again after running opencode models --refresh. Also, you need to setup the openrouter provider to see its models.

@cravenceiling commented on GitHub (Feb 8, 2026): I already see that model... <img width="992" height="540" alt="Image" src="https://github.com/user-attachments/assets/13348b09-7fe6-4f53-bff1-3eaa050f7b7d" /> Try again after running `opencode models --refresh`. Also, you need to setup the openrouter provider to see its models.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7674