gsk_ keys are Groq, not xAI Grok; xAI rejects them
@yalexie1▲ 0 net votes
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.