Mistral AI routing

Use Mistral and Codestral from one address

Run TEKIZ.AI on your machine or private server with your Mistral key. Coding work can use Codestral while another approved model handles requests when needed. Hosted access uses a separate TEKIZ.AI key and the models available to your account.

Set up a local router Create hosted key Read quickstart Coding agents Browse models

Use your own Mistral key

Put your authorized MISTRAL_API_KEY on a router you control. Your Mistral account controls access to Codestral and other Mistral models.

OpenAI-compatible setup

For the hosted API, point OpenAI-compatible apps at https://api.tekiz.ai/v1. Hosted requests use routes available to your account. To use your own Mistral credentials, configure them on a local router.

Use Codestral for coding

Send code tasks to your Codestral or Mistral models, with stronger, longer-context, or local models available when needed.

Send a test request

This tests your hosted TEKIZ.AI key with automatic routing. To use Mistral with your own credentials, set up a local router and configure the credentials on that router.

export OPENAI_BASE_URL=https://api.tekiz.ai/v1
export OPENAI_API_KEY=sk_tekiz_your_generated_key

curl "$OPENAI_BASE_URL/chat/completions" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tekizai/auto",
    "messages": [{"role": "user", "content": "Explain how to make this function easier to test."}]
  }'

Use more than one Mistral key

Add multiple authorized Mistral keys. TEKIZ.AI shares requests across keys that are working and pauses only the key that fails.

When Mistral rate-limits

If Mistral rate-limits a request, TEKIZ.AI can try another configured key, provider, or eligible local model.

Send files to services that accept them

Images, audio, video, and documents are sent only to models that can handle that kind of input.

Use accounts you are allowed to use

Your own Mistral account and Mistral billing stay separate from hosted TEKIZ.AI access. On a router you control, TEKIZ.AI can try another eligible model when you configure one.

Next steps

Create an API key, copy the hosted quickstart, use the coding-agent setup, or estimate routing fit.

Stay within your approved services

If your company approves only Mistral, keep that boundary. TEKIZ.AI can reduce token burn by choosing eligible models. Your Mistral account handles provider billing.