TensaHub › Hugging Face Inference

Mistral-Large-4-1T-A52B · Mistral

API for the model mistralai/Mistral-Large-4-1T-A52B:mistral at Hugging Face Inference, $0.7 / $2.1 per million tokens, context 1,048,576 tokens. curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

mistralai/Mistral-Large-4-1T-A52B served by Mistral through the Hugging Face router.

Type
Model
Provider
Hugging Face Inference
Host
Mistral
Model ID
mistralai/Mistral-Large-4-1T-A52B:mistral
Pricing
Paid
Input / output price
$0.7 / $2.1 per million tokens
Keyless access
No
Key variable
HF_TOKEN
Base URL (OpenAI-compatible)
https://router.huggingface.co/v1
Context
1,048,576 tokens
Inputs
Text, Image
Features
Tool calling, JSON output
Response time
First token 767 ms · 83 tokens/s · uptime 100%
Developer rating
Not rated yet
Documentation
https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B

Code samples

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"mistralai/Mistral-Large-4-1T-A52B:mistral","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
    model="mistralai/Mistral-Large-4-1T-A52B:mistral",
    messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
  model: 'mistralai/Mistral-Large-4-1T-A52B:mistral',
  messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)

Generate the integration code →

Popular searches

Frequently asked questions

Is the Mistral-Large-4-1T-A52B · Mistral API free?

No: Mistral-Large-4-1T-A52B · Mistral is a paid API ($0.7 / $2.1 per million tokens).

How do I call Mistral-Large-4-1T-A52B · Mistral from my code?

Mistral-Large-4-1T-A52B · Mistral exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: mistralai/Mistral-Large-4-1T-A52B:mistral. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.

What is the context window of Mistral-Large-4-1T-A52B · Mistral?

Mistral-Large-4-1T-A52B · Mistral accepts up to 1,048,576 tokens of context (prompt and history).

What are the alternatives to Mistral-Large-4-1T-A52B · Mistral?

Similar APIs listed in the catalog: Mistral: Pixtral Large 2502, Mistral: Mistral Large 4, Mistral: Mistral Medium 3.5, Mistral: Mistral Medium 3.5 (batch), Mistral: Mistral Small 4.

Alternatives