reroute

Mistral: Mixtral 8x22B Instruct

mistralai/mixtral-8x22b-instruct

Mistral's official instruct fine-tuned version of Mixtral 8x22B. It uses 39B active parameters out of 141B, offering unparalleled cost efficiency for its size. Its strengths include: - strong math, coding,...

Modalities
In / Out Price
$2 / $6 per 1M
Context
66K
Released
Apr 17, 2024
Knowledge Cutoff
Jan 2024

API

Reroute speaks the OpenAI Chat Completions format. Point any OpenAI SDK at https://reroute.wtf/api/v1 and use mistralai/mixtral-8x22b-instruct as the model.

You need an API key
Keys start with sk-rr-v1- and are shown once.
Create API key
curl https://reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{
  "model": "mistralai/mixtral-8x22b-instruct",
  "messages": [
    { "role": "user", "content": "What is the meaning of life?" }
  ]
}'

Streaming

Set stream: true to receive server-sent events. The final chunk carries usage and cost.

curl -N https://reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{ "model": "mistralai/mixtral-8x22b-instruct", "stream": true,
        "messages": [{ "role": "user", "content": "Count to five" }] }'