API do modelo mistralai/Mistral-Large-4-1T-A52B:mistral na Hugging Face Inference, $0.7 / $2.1 por milhão de tokens, contexto 1.048.576 tokens. Exemplos em curl, Python e JavaScript, teste ao vivo.
mistralai/Mistral-Large-4-1T-A52B served by Mistral through the Hugging Face router.
- Tipo
- Modelo
- Provedor
- Hugging Face Inference
- Hospedagem
- Mistral
- ID do modelo
mistralai/Mistral-Large-4-1T-A52B:mistral- Preço
- Pago
- Preço entrada / saída
- $0.7 / $2.1 por milhão de tokens
- Acesso sem chave
- Não
- Variável da chave
HF_TOKEN- URL base (compatível com OpenAI)
https://router.huggingface.co/v1- Contexto
- 1.048.576 tokens
- Entradas
- Texto, Imagem
- Recursos
- Chamada de ferramentas, Saída JSON
- Tempo de resposta
- Primeiro token 767 ms · 83 tokens/s · disponibilidade 100 %
- Avaliação dos desenvolvedores
- Ainda sem avaliação
- Documentação
- https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B
Exemplos de código
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":"Olá, apresente-se em uma frase."}]}'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": "Olá, apresente-se em uma frase."}],
)
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: 'Olá, apresente-se em uma frase.' }],
})
console.log(r.choices[0].message.content)
Gerar o código de integração →
Buscas populares
Perguntas frequentes
A API do Mistral-Large-4-1T-A52B · Mistral é gratuita?
Não: o Mistral-Large-4-1T-A52B · Mistral é uma API paga ($0.7 / $2.1 por milhão de tokens).
Como chamar o Mistral-Large-4-1T-A52B · Mistral no meu código?
O Mistral-Large-4-1T-A52B · Mistral oferece uma API compatível com OpenAI em https://router.huggingface.co/v1: use qualquer SDK da OpenAI (Python, JavaScript…) com essa URL base. Identificador do modelo: mistralai/Mistral-Large-4-1T-A52B:mistral. Há código pronto (streaming, JSON, novas tentativas) na caixa de ferramentas do desenvolvedor.
Qual é a janela de contexto do Mistral-Large-4-1T-A52B · Mistral?
O Mistral-Large-4-1T-A52B · Mistral aceita até 1.048.576 tokens de contexto (mensagem e histórico).
Quais são as alternativas ao Mistral-Large-4-1T-A52B · Mistral?
APIs semelhantes no catálogo: Mistral: Pixtral Large 2502, Mistral: Mistral Large 4, Mistral: Mistral Medium 3.5, Mistral: Mistral Medium 3.5 (batch), Mistral: Mistral Small 4.
Alternativas
- Mistral: Pixtral Large 2502 — Pago
- Mistral: Mistral Large 4 — Pago
- Mistral: Mistral Medium 3.5 — Pago
- Mistral: Mistral Medium 3.5 (batch) — Pago
- Mistral: Mistral Small 4 — Pago
- Mistral: Mistral Small 4 (batch) — Pago
- Mistral: Devstral 2 2512 — Pago
- Mistral: Ministral 3 14B 2512 — Pago
- Mistral: Ministral 3 8B 2512 — Pago
- Mistral: Ministral 3 8B 2512 (batch) — Pago
- Mistral: Ministral 3 3B 2512 — Pago
- Mistral: Mistral Large 3 2512 — Pago