API do modelo mistralai/mistral-medium-3-5:batch na OpenRouter, $0.75 / $3.75 por milhão de tokens, contexto 262.144 tokens. Exemplos em curl, Python e JavaScript, teste ao vivo.
Mistral Medium 3.5 is a dense 128B instruction-following model from Mistral AI. It supports text and image inputs with text output, and is designed for agentic workflows, coding, and complex...
- Tipo
- Modelo
- Provedor
- OpenRouter
- ID do modelo
mistralai/mistral-medium-3-5:batch- Preço
- Pago
- Preço entrada / saída
- $0.75 / $3.75 por milhão de tokens
- Acesso sem chave
- Não
- Variável da chave
OPENROUTER_API_KEY- URL base (compatível com OpenAI)
https://openrouter.ai/api/v1- Contexto
- 262.144 tokens
- Entradas
- Texto, Imagem, Arquivo
- Recursos
- Raciocínio, Saída JSON, Chamada de ferramentas
- Avaliação dos desenvolvedores
- Ainda sem avaliação
- Documentação
- https://openrouter.ai/mistralai/mistral-medium-3-5:batch
Exemplos de código
cURL
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model":"mistralai/mistral-medium-3-5:batch","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://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
model="mistralai/mistral-medium-3-5:batch",
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://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
model: 'mistralai/mistral-medium-3-5:batch',
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: Mistral Medium 3.5 (batch) é gratuita?
Não: o Mistral: Mistral Medium 3.5 (batch) é uma API paga ($0.75 / $3.75 por milhão de tokens).
Como chamar o Mistral: Mistral Medium 3.5 (batch) no meu código?
O Mistral: Mistral Medium 3.5 (batch) oferece uma API compatível com OpenAI em https://openrouter.ai/api/v1: use qualquer SDK da OpenAI (Python, JavaScript…) com essa URL base. Identificador do modelo: mistralai/mistral-medium-3-5:batch. Há código pronto (streaming, JSON, novas tentativas) na caixa de ferramentas do desenvolvedor.
Qual é a janela de contexto do Mistral: Mistral Medium 3.5 (batch)?
O Mistral: Mistral Medium 3.5 (batch) aceita até 262.144 tokens de contexto (mensagem e histórico).
Quais são as alternativas ao Mistral: Mistral Medium 3.5 (batch)?
APIs semelhantes no catálogo: Mistral-Large-4-1T-A52B · Mistral, Mistral: Pixtral Large 2502, Mistral: Mistral Large 4, Mistral: Mistral Medium 3.5, Mistral: Mistral Small 4.
Alternativas
- Mistral-Large-4-1T-A52B · Mistral — Pago
- Mistral: Pixtral Large 2502 — Pago
- Mistral: Mistral Large 4 — Pago
- Mistral: Mistral Medium 3.5 — 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