Incorrect API key provided
The API key is missing, malformed, revoked, or doesn’t match the base URL you’re calling. Check the key value, the Authorization header, and that the key belongs to the endpoint you’re hitting.
When wiring an agent to a new provider, a 401 usually means the base URL and key don’t belong to the same provider — verify both point at the same endpoint.
Most often the key is for a different provider than the base URL you’re calling, or an env var didn’t load so an empty value is being sent. Verify the key and the endpoint match.