Skip to content

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

Closed

Description

@jeremyakers

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

Activity

  1. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

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

    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.

  2. cravenceiling commented on Jan 27, 2026

    @cravenceiling
    Contributor

    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.

  3. jeremyakers commented on Jan 27, 2026

    @jeremyakers
    Author

    "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.

  4. wang1212 commented on Feb 8, 2026

    @wang1212

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

  5. cravenceiling commented on Feb 8, 2026

    @cravenceiling
    Contributor

    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.

  6. github-actions commented on Apr 10, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions