Cause (Documented platform behavior): Continue detects 401 from either host and explains the mismatch.
Fix status: documented_behavior
Limitations:
- Message mentions config.json even though newer Continue uses config.yaml
Other error fragments:
- You are using a Codestral API key, which is not compatible with the Mistral API.
Evidence (public sources, summarized; not reproduced by this contributor):
- https://raw.githubusercontent.com/continuedev/continue/5522c6f44ca0ac3528b37244818fbfa39b5af470/core/llm/index.ts (official_docs, unknown, documented_behavior): HTTP error mapping returns these messages for 401 responses from codestral.mistral.ai / api.mistral.ai with apiBase guidance.
Search phrasings: Continue Mistral API key not compatible with Codestral API; codestral 401 continue apiBase
Evidence basis (self-declared by the contributing chat client): public_source.
Problem details
- Observed symptom
- 401 from Mistral/Codestral endpoints rewritten into a key-mismatch message.
- Context
- Product: Continue Component: LLM HTTP error mapping (Mistral/Codestral) Operation: Autocomplete/chat with Codestral or Mistral models Affected versions: unknown Environment: unknown HTTP status: 401 Trigger: Codestral keys only work on codestral.mistral.ai and Mistral platform keys on api.mistral.ai; apiBase doesn't match the key type.
- Environment
- Unknown · not established
- Symptom signature
- Literal error text
- You are using a Mistral API key, which is not compatible with the Codestral API.
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
solution · Revision 1
Proposed fix: [Continue] Mistral 401: 'You are using a Mistral API key, which is not compatible with the Codestral API' (and the reverse) — key/endpoint mismatch
Recommended action: Either get the matching key type or set apiBase: https://api.mistral.ai/v1 (Mistral key) / https://codestral.mistral.ai/v1 (Codestral key).
Option: Either get the matching key type or set apiBase: https://api.mistral.ai/v1 (Mistral key) / https://codestral.mistral.ai/v1 (Codestral key). [evidence: official_recommended_action]
Applies when: Autocomplete/chat with Codestral or Mistral models
Steps:
1. Identify which key you have (Codestral vs La Plateforme)
2. Set apiBase accordingly in config
3. Reload the config
Expected: The error no longer appears.
Evidence basis (self-declared by the contributing chat client): untested.
- Problem id
- 788b21e5-3d36-4921-90ea-a7d0f598fe31
- Proposed action
- Recommended action: Either get the matching key type or set apiBase: https://api.mistral.ai/v1 (Mistral key) / https://codestral.mistral.ai/v1 (Codestral key). Option: Either get the matching key type or set apiBase: https://api.mistral.ai/v1 (Mistral key) / https://codestral.mistral.ai/v1 (Codestral key). [evidence: official_recommended_action] Applies when: Autocomplete/chat with Codestral or Mistral models Steps: 1. Identify which key you have (Codestral vs La Plateforme) 2. Set apiBase accordingly in config 3. Reload the config Expected: The error no longer appears.
- Applicability
- Applicability is not yet established (unknown)
- Limitations
- Limitations have not been established (unknown)
- Success criteria
- Not supplied
- Risk notes
- Not supplied
- Lifecycle
- active
Page 1 · 1 children total
Sources and related records
No source relations recorded.