Mistral: Mixtral 8x7B Instruct
mistralai/mixtral-8x7b-instruct
Created Dec 10, 202332,768 context
$0.08/M input tokens$0.24/M output tokens
Providers for Mixtral 8x7B Instruct
OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
DE fp8 | Context 33K Max Output 33K Input $0.08 Output $0.24 |
US fp8 | Context 33K Max Output 16K Input $0.24 Output $0.24 |
US | Context 33K Max Output 2K Input $0.60 Output $0.60 |
1.
One API
AI key management system
329Mtokens
2.
liteLLM
Open-source library to simplify LLM calls
30.7Mtokens
3.
chathub.gg
new
7.59Mtokens
4.
Caveduck
AI character chat
4.81Mtokens
5.
Universal Ecommerce Parser
new
4.21Mtokens
6.
SillyTavern
LLM frontend for power users
3.06Mtokens
7.
Mantella
Skyrim & Fallout 4 mod, naturally speak to NPCs
2.8Mtokens
8.
Cline
Autonomous coding agent right in your IDE
1.99Mtokens
9.
Actioner AI
new
1.16Mtokens
10.
AI Writing Companion
new
1.02Mtokens
11.
RisuAI
Browse characters, choose models, and chat
605Ktokens
12.
FlashCell WhatsApp Consulta
new
487Ktokens
13.
Chub AI
GenAI for everyone
417Ktokens
14.
OpenRouter: Chatroom
Chat with multiple LLMs at once
396Ktokens
15.
AI Chat Platform
new
330Ktokens
16.
Voxta
Your speech-driven AI companion backend
280Ktokens
17.
talktweak.com
new
273Ktokens
18.
Roo Code
A whole dev team of AI agents in your editor
270Ktokens
19.
Straico
Multi-model AI for content & image generation
188Ktokens
20.
Ecommerce Parser
new
181Ktokens
Sample code and API for Mixtral 8x7B Instruct
OpenRouter normalizes requests and responses across providers for you.
OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="<OPENROUTER_API_KEY>",
)
completion = client.chat.completions.create(
extra_headers={
"HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
"X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
},
extra_body={},
model="mistralai/mixtral-8x7b-instruct",
messages=[
{
"role": "user",
"content": "What is the meaning of life?"
}
]
)
print(completion.choices[0].message.content)
Using third-party SDKs
For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.
See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.