## TL;DR

Confirm the key starts with gsk_: check the first four characters of the environment value.

## Fix

1. Confirm the key starts with gsk_: check the first four characters of the environment value.
   Expected: you can confirm this matches your situation.

## When to use

- You are setting up or using this Groq 401 feature.
- The symptom matches: verify the key starts with gsk_ and test it against /models.

## When NOT to use

- Unrelated Groq 401 issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Groq 401.

## Variant phrasings

### verify the key starts with gsk_ and test it against /models

## Why it happens

A 401 on Groq is almost always the key, not the request.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.