Mistral AI
communityEuropean AI company offering open and commercial large language models for text generation and code.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.mistral.ai/v1/chat/completionsGenerate text with chat models
Parameters
modelmistral-large-latest|mistral-medium-latest|open-mistral-nemo (stringrequiredmessagesconversation array (arrayrequiredmax_tokensmax response tokens (integeroptionaltemperature0-1 (numberoptionalReturns
choices[] with message.content, usage with prompt_tokens, completion_tokensPOST
https://api.mistral.ai/v1/embeddingsGenerate text embeddings
Parameters
inputtext or text array (string|string[]requiredmodelmistral-embed (stringrequiredReturns
data[] with embedding (float[]), usageGET
https://api.mistral.ai/v1/modelsList available models
Returns
data[] with id, object, created, owned_by