mistral-tiny
This documentation is valid for the following list of our models:
mistralai/mistral-tiny
Model Overview
A lightweight language model optimized for efficient text generation, summarization, and code completion tasks. It is designed to operate effectively in resource-constrained environments while maintaining high performance.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
Submit a request
API Schema
Creates a chat completion using a language model, allowing interactive conversation by predicting the next response based on the given chat history. This is useful for AI-driven dialogue systems and virtual assistants.
Authorizations
Body
modelundefined · enumrequired
Options:
mistralai/mistral-tiny
top_kintegeroptional
repetition_penaltynumber · max: 2optional
min_pnumber · max: 1optional
top_anumber · max: 1optional
frequency_penaltynumber | nullableoptional
logit_biasobject | nullableoptional
logprobsboolean | nullableoptional
top_logprobsnumber | nullableoptional
max_tokensnumber · min: 1 · default: 512optional
max_completion_tokensinteger · min: 1optional
ninteger | nullableoptional
predictionobjectoptional
presence_penaltynumber | nullableoptional
seedinteger · min: 1optional
messagesone of[]required
streamboolean · default: falseoptional
stream_optionsobjectoptional
top_pnumber · min: 0.1 · max: 1optional
temperaturenumber · max: 2optional
stopany ofoptional
toolsobject[]optional
tool_choiceany ofoptional
parallel_tool_callsbooleanoptional
reasoning_effortstring · enumoptional
Options:
low
, medium
, high
response_formatone ofoptional
Responses
cURL
JavaScript
Python
HTTP
201
No body
Last updated
Was this helpful?