API Usage
Endpoint
mistralai/Mistral-7B-Instruct-v0.1
RUN INFERENCE
curl -X POST "https://aitradestore.com/api/v1/chat/completions"
-H "Authorization: Bearer $AITRADESTORE_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "mistralai/Mistral-7B-Instruct-v0.1",
"messages": [{"role": "user", "content": "What are some fun things to do in New York?"}]
}'
JSON RESPONSE
RUN INFERENCE
from aitradestore import AiTradeStore client = AiTradeStore()
response = client.chat.completions.create(
model="mistralai/Mistral-7B-Instruct-v0.1",
messages=[{"role": "user", "content": "What are some fun things to do in New York?"}], ) print(response.choices[0].message.content)
JSON RESPONSE
RUN INFERENCE
import AiTradeStore from "ai-tradestore"; const aitradestore = new AiTradeStore(); const response = await aitradestore.chat.completions.create({
messages: [{"role": "user", "content": "What are some fun things to do in New York?"}],
model: "mistralai/Mistral-7B-Instruct-v0.1", });
console.log(response.choices[0].message.content)
JSON RESPONSE
Model Provider:
Mistral AI
Type:
Chat
Variant:
Instruct
Parameters:
7B
Deployment:
✔ Serverless ✔ Dedicated
Quantization
Context length:
8192
Pricing:
$0.20