翻篇收录说明
翻篇网页快照

Inference API: Frontier & Open Models by Region | Mistral

https://mistral.ai/cloud/inference/

最近抓取:2026-12-04 07:49:25(北京时间)

最近内容变化:2026-12-01 08:34:09(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Run Mistral and leading open models on one API, tuned for production and served in the region you choose. 99.5% uptime SLA, EU or US data residency.

正文摘录

CloudInference to build your frontier.Run Mistral and leading open models on one API, tuned for production and served in the region you choose.Get API keyPrompt a modelBuild an agentDocument understandingTranscribe audioGenerate speechPythonJavaScriptcURLRead our docsfrom mistralai import Mistral model = "mistral-large-latest" client = Mistral(api_key=" MISTRAL_API_KEY") chat_response = client.chat.complete( model=model, messages=[ { "role": "user", "content": "Explain a merkle tree in two sentences.", }, ], ) print(chat_response.choices[0].message.content)import { Mistral } from '@mistralai/mistralai' const client = new Mistral({ apiKey: ' MISTRAL_API_KEY' }) const chatResponse = await client.chat.complete({ model: 'mistral-large-latest', messages: [{ role: 'user', content: 'Explain a merkle tree in two sentences.' }], }) console.log(chatResponse.choices[0].message.content)curl -X POST "https://api.mistral.ai/v1/chat/completions" \ -H "Authorization: Bearer MISTRAL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mistral-large-latest", "messages": [ { "role": "user", "content": "Explain a merkle tree in two sentences." } ] }'PythonRead our docsimport asyncio import os from mistralai import agents os.environ["MISTRAL_API_KEY"] = " MISTRAL_API_KEY" @agents.tool async def get_weather(city: str) -> dict[str, str]: """Weather for a city.""" return {"weather": f"sunny in {city}"} agent = agents.Agent( model="mistral-large-latest", name="weather-agent", instructions="You are a friendly agent. Tell us the weather in a city.", tools=[get_weather], ) result = asyncio.run(agent.run("What's the weather in Paris?")) print(result.text)PythonJavaScriptcURLRead our docsfrom mistralai import Mistral with Mistral( api_key=' MISTRAL_API_KEY', ) as mistral: ocr_response = mistral.ocr.process( model='mistral-ocr-latest', document={ 'type': 'document_url', 'document_url': 'https://arxiv.org/pdf/2201.04234', }, ) print(ocr_response.pages[0].markdown)import { Mistral } from '@mistralai/mistralai' const client = new Mistral({ apiKey: ' MISTRAL_API_KEY' }) const ocrResponse = await client.ocr.process({ model: 'mistral-ocr-latest', document: { type: 'document_url', documentUrl: 'https://arxiv.org/pdf/2201.04234', }, }) console.log(ocrResponse.pages[0].markdown)curl https://api.mistral.ai/v1/ocr \ -H "Content-Type: application/json" \ -H "Authorization: Bearer MISTRAL_API_KEY" \ -d '{ "model": "mistral-ocr-latest", "document": { "type": "document_url", "document_url": "https://arxiv.org/pdf/2201.04234" } }'PythonJavaScriptcURLRead our docsfrom mistralai import Mistral with Mistral( api_key=' MISTRAL_API_KEY', ) as mistral: response = mistral.audio.transcriptions.complete( model='voxtral-mini-latest', file_url='https://docs.mistral.ai/audio/bcn_weather.mp3', ) print(response.text)import { Mistral } from '@mistralai/mistralai' const client = new Mistral({ apiKey: ' MISTRAL_API_KEY' }) const result = await client.audio.transcriptions.complete({ model: 'voxtral-mini-latest', fileUrl: 'https://docs.mistral.ai/audio/bcn_weather.mp3', }) console.log(result.text)curl https://api.mistral.ai/v1/audio/transcriptions \ -X POST \ -H "Authorization: Bearer MISTRAL_API_KEY" \ -F model="voxtral-mini-latest" \ -F file_url="https://docs.mistral.ai/audio/bcn_weather.mp3"PythonJavaScriptcURLRead our docsfrom mistralai import Mistral with Mistral( api_key=' MISTRAL_API_KEY', ) as mistral: response = mistral.audio.speech.complete( model='voxtral-mini-latest', input='Today is going to be a great day.', ) print(response)import { Mistral } from '@mistralai/mistralai' const client = new Mistral({ apiKey: ' MISTRAL_API_KEY' }) const result = await client.audio.speech.complete({ model: 'voxtral-mini-latest', input: 'Today is going to be a great day.', }) console.log(result)curl https://api.mistral.ai/v1/audio/speech \ -X POST \ -H "Authorization: Bearer MISTRAL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "voxtral-mini-latest", "input": "Today is going to be a great day." }' Mistral CloudData sovereignty for every request.Choose where it runs.Process requests in the EU or, for supported models, US for data residency and lower latency. Each region is a fully independent deployment with its own capacity and data boundary.Know who handles the data.Mistral serves every model itself, so third-party open models run safely, under the same regional controls and service commitments as ours.Limit what’s retained.Turn on zero data retention or deploy privately for the strictest regulatory requirements.Models for every workloadMistral and leading open models, all served by us in EuropeAll modelsFor agents, coding, chat and everyday tasks.Price settingsProcessingBatch runs at half price, Priority guarantees fast compute.StandardBatchHigh-volume processing, at half price, for maximum efficiency.PriorityPriority inference for high-importance, predictable and fast compute needs.RegionChoose global or EU inference endpoints for supported models with regional data processing. Learn more.Regional inference+10%CurrencyPrices are shown excluding VAT.USD ($)EUR (€)Mistral Large 4Our most capable model for agentic coding and cybersecurity.Input $0.7/M TokensCached input $0.07/M TokensOutput $2.1/M TokensRead moreGLM 5.3A third-party open weight text model from Z.ai with a 1M-token context window.Input $1.4/M TokensCached input $0.14/M TokensOutput $4.4/M TokensRead moreGLM 5.3 FlashA third-party multimodal model from Z.ai with a 1M-token context window, optimized for agentic workflows and visual coding.Input $0.15/M TokensCached input $0.03/M TokensOutput $0.5/M TokensRead moreDeepSeek V4.1 Flash 1017NewA third-party open weight model from DeepSeek with text and image inputs and a 1M-token context window, optimized for long-context coding and agentic workflows.Input $0.3/M TokensCached input $0.007/M TokensOutput $1.2/M TokensRead moreMistral Medium 3.5Our frontier-class multimodal model optimized for agentic and coding use cases.Input $1.5/M TokensOutput $7.5/M TokensRead moreMistral Small 4Hybrid model unifying instruct, reasoning, and coding in a single efficient model.Input $0.15/M TokensOutput $0.6/M TokensRead moreMinistral 3 (14B)A powerful model offering best-in-class text and vision capabilities. Input $0.2/M TokensOutput $0.2/M TokensRead moreMinistral 3 (8B)A powerful and efficient model offering best-in-class text and vision capabilities. Input $0.15/M TokensOutput $0.15/M TokensRead moreMinistral 3 (3B)A tiny and efficient model offering best-in-class text and vision capabilities. Input $0.1/M TokensOutput $0.1/M TokensRead moreOCR 4.1The world’s best document extraction and understanding model.Input $4/1000 PagesInput $5/1000 Annotated PagesRead moreVoxtral Mini Transcribe 3NewState-of-the-art low-latency speech transcription and diarization.Input $0.0035/MinRead moreVoxtral Mini Transcribe Realtime 3NewRealtime transcription model for agentic use-cases with configurable latency and turn detection.Input $0.008/MinRead moreVoxtral Mini TTS 3NewState-of-the-art TTS with zero-shot and professional voice cloning, 35+ languages and 50+ dialects, and streaming.Input $13/M CharsRead moreVoxtral Small Transcribe 3NewFlagship transcription and diarization model with SOTA accuracy.Input $0.004/MinRead moreNo resultsTry adjusting your search or filters to find what you are looking for.ExploreSee models side-by-side to find the right one for your use case.CompareMistral Large 4Mistral Medium 3Mistral Small 4OCR 4.1Voxtral TTSVoxtral Mini Transcribe 2Enterprise APIsRegional data processing controls, system-level SLAs, increased rate limits, and premium support. Get in touch"We use Mistral Small models in Firefox to bring fast, accurate, multilingual AI in the browser to millions of users."Alexander Osipenko, Staff Machine Learning Engineer, Firefox."Mistral allows us to run open models under strict regional controls and service commitments, making it easy for us to maintain data residency and compliance requirements while furthering our commitment to open source."Matan Grinberg, CEO and cofounder, Factory.Explore developer resources.API referenceThe complete REST reference, with schemas and examples.SDKsOfficial Mistral clients for Python and TypeScript.CookbooksWorking examples for agents, retrieval, OCR, and more.Join our communityGet help and share what you build.Start buildingBuild, run, scale, with Mistral.Get API keyFrequently asked questions. Can I control latency and where inference runs?Yes, you can call our regional inference endpoints in the EU or, for supported models, US (api.eu.mistral.ai, api.us.mistral.ai) to process requests for supported models in your preferred region for data residency or lower latency, at a 10% upcharge. Without a regional endpoint, requests use the global endpoint. For production traffic, you can request Priority Tier, which puts your requests ahead of standard traffic, backed by an uptime SLA.How do you serve third-party open models?We serve third-party models ourselves, so they run safely on GPU infrastructure managed by Mistral, without modifications and under the same regional controls and service commitments as our own. Your requests are processed by Mistral. Third-party models follow a shorter deprecation schedule; see the model lifecycle policy.Do you train on my data or keep it?Data sent through our API isn’t used for model training, and zero data retention is available on request.Can I try out Mistral’s models before paying?Yes, in Studio, you can test-prompt general models in the agent playground, or try documents and speech in the dedicated OCR and audio playgrounds.Which model should I use?For general tasks, productivity, and coding, Mistral Medium and GLM by Z.ai (hosted by Mistral) are the strongest models. For structured document extraction—Mistral OCR, and Voxtral for transcription, voice cloning, and voice agents. For cost-sensitive work, Mistral Small as well as Ministral are the lightest model