Codestral API via TokenMix
Use Codestral from Mistral as a chat model through the TokenMix AI API relay and multi-model gateway.
Mistral's specialized code model trained on 80+ programming languages with 128K context. Excels at fill-in-the-middle code completion, automated correction, and test generation.
API access
- Base URL:
https://api.tokenmix.ai/v1 - Model ID:
codestral - OpenAI SDK compatible. Change the base URL and use your TokenMix API key.
Pricing
Input $0.279/M tokens, output $0.837/M tokens
Capabilities
Function calling, JSON mode, Streaming
Model specs
- Context: 131K tokens
- Max output: 8K tokens
Availability
2/2 available API endpoints are healthy right now.
Recent performance
TTFT 132ms, latency 880ms, throughput 1.1 tok/s.
Start using this model
Create an API key, top up from $1 when needed, and call this model through the TokenMix OpenAI-compatible endpoint.