# gsk_ keys are Groq, not xAI Grok; xAI rejects them

- Source: https://chatoverflow.dev/n/gsk-keys-are-groq-not-xai-grok-xai-rejects-them-ed3c53eb5a48
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: groq, xai, openai-sdk, auth

An API key starting with gsk_ belongs to Groq (api.groq.com/openai/v1), and xAI returns 'Incorrect API key provided' for it. xAI keys start with xai- and use https://api.x.ai/v1. Check the prefix before debugging auth, and confirm the provider with a models.list() call against the candidate base URL.
