Mixtral 8x7B — Free API

⭐ Score: 47
glhf-chat/mistralai-mixtral-8x7b-instruct-v0-1
chat coding

What is Mixtral 8x7B?

Model ID
mistralai/Mixtral-8x7B-Instruct-v0.1
Base URL
https://glhf.chat/api/openai/v1

Mixtral 8x7B API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://glhf.chat/api/openai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="mistralai/Mixtral-8x7B-Instruct-v0.1",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://glhf.chat/api/openai/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "mistralai/Mixtral-8x7B-Instruct-v0.1",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://glhf.chat/api/openai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from Glhf.chat

More About Glhf.chat

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up Glhf.chat as a free LLM API backend.

View Glhf.chat full guide →