Groq api does not work properly #3232

Closed
opened 2026-02-16 17:39:15 -05:00 by yindo · 3 comments
Owner

Originally created by @SKozar on GitHub (Dec 1, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Groq api key does not working properly. Shows Invalid Api Key if you try to run any prompt.
Also not all groq models are shown in the list (groq code fast 1 shows only as opencode option, groq code 4 does not show at all)

OpenCode version

1.0.125

Steps to reproduce

  1. Provide groq key using opencode auth login method.
  2. Run opencode in project directory.
  3. call /models
  4. It shows list of models.
  5. Among models there is not such options as code fast 1 (only opencode version) and no grok4/grok4.1
  6. I choose any avaliable to try. (it doesn't matter what model to choose)
  7. Getting Invalid Api Key.

Screenshot and/or share link

No response

Operating System

Sequoia 15.7

Terminal

iTerm2

Originally created by @SKozar on GitHub (Dec 1, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Groq api key does not working properly. Shows `Invalid Api Key` if you try to run any prompt. Also not all groq models are shown in the list (groq code fast 1 shows only as opencode option, groq code 4 does not show at all) ### OpenCode version 1.0.125 ### Steps to reproduce 1. Provide groq key using `opencode auth login` method. 2. Run opencode in project directory. 3. call /models 4. It shows list of models. 5. Among models there is not such options as code fast 1 (only opencode version) and no grok4/grok4.1 6. I choose any avaliable to try. (it doesn't matter what model to choose) 7. Getting `Invalid Api Key`. ### Screenshot and/or share link _No response_ ### Operating System Sequoia 15.7 ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:39:15 -05:00
yindo closed this issue 2026-02-16 17:39:15 -05:00
Author
Owner

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

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

  • #222: Groq: Models return error - Reports "Failed to call a function" error when using Groq models
  • #866: New Session Using Groq Hosted Deepseek R1 Provides No Response - Groq models not responding properly
  • #1018: groq + kimi k2: Failed to call a function - Similar "Invalid Api Key"/"Failed to call a function" error pattern with Groq
  • #2441: Include kimi-k2-0905 from groq - Reports Groq models not appearing in model list

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

@github-actions[bot] commented on GitHub (Dec 1, 2025): This issue might be a duplicate of existing issues. Please check: - #222: Groq: Models return error - Reports "Failed to call a function" error when using Groq models - #866: New Session Using Groq Hosted Deepseek R1 Provides No Response - Groq models not responding properly - #1018: groq + kimi k2: Failed to call a function - Similar "Invalid Api Key"/"Failed to call a function" error pattern with Groq - #2441: Include kimi-k2-0905 from groq - Reports Groq models not appearing in model list Feel free to ignore if none of these address your specific case.
Author
Owner

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

@SKozar are you asking about Groq? Or Grok

2 very different things

@rekram1-node commented on GitHub (Dec 1, 2025): @SKozar are you asking about Groq? Or Grok 2 very different things
Author
Owner

@SKozar commented on GitHub (Dec 1, 2025):

you are right. My bad. i used Grok key for Groq
closing it

@SKozar commented on GitHub (Dec 1, 2025): you are right. My bad. i used Grok key for Groq closing it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3232