Models / Chat / Mistral Instruct API
Mistral Instruct API

API Usage
How to use Mistral InstructModel CardPrompting Mistral InstructApplications & Use CasesHow to use Mistral InstructMistral Instruct API Usage
Endpoint
mistralai/Mistral-7B-Instruct-v0.1
RUN INFERENCE
curl -X POST "https://api.together.xyz/v1/chat/completions" \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/Mistral-7B-Instruct-v0.1",
"messages": [],
"stream": true
}'
JSON RESPONSE
RUN INFERENCE
from together import Together
client = Together()
response = client.chat.completions.create(
model="mistralai/Mistral-7B-Instruct-v0.1",
messages=[],
stream=True
)
for token in response:
if hasattr(token, 'choices'):
print(token.choices[0].delta.content, end='', flush=True)
JSON RESPONSE
RUN INFERENCE
import Together from "together-ai";
const together = new Together();
const response = await together.chat.completions.create({
messages: [],
model: "mistralai/Mistral-7B-Instruct-v0.1",
stream: true
});
for await (const token of response) {
console.log(token.choices[0]?.delta?.content)
}
JSON RESPONSE
Model Provider:
Type:
Chat
Variant:
Instruct
Parameters:
7B
Deployment:
✔ Serverless
✔️ On-Demand Dedicated
Quantization
Context length:
8192
Pricing:
$0.20
Check pricing
Run in playground
Deploy model
Quickstart docs
Quickstart docs
How to use Mistral Instruct
Model details
Prompting Mistral Instruct
Applications & Use Cases
How to use Mistral Instruct
Looking for production scale? Deploy on a dedicated endpoint
Deploy Mistral Instruct on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.
