这个资源提供什么What this offer provides
The official Mistral help center states: 'Free mode (the default) has the lowest limits, intended for evaluation and prototyping', with pay-as-you-go tiers unlocking higher limits.The official Mistral help center states: 'Free mode (the default) has the lowest limits, intended for evaluation and prototyping', with pay-as-you-go tiers unlocking higher limits.
关键信息Key details
快速上手Quick start
Use the Mistral API in free mode, the default tier for evaluation and prototypingFollow the model-specific steps to register, create a key and connect the model.
注册与接入步骤Registration and access steps
准备条件Prerequisites
- Mistral account (La Plateforme / AI Studio)
- API key
- Create a Mistral account and generate an API keyCreate a Mistral account and generate an API key
- Call the chat completions endpoint within free mode limits; check the Limits page of the Admin panel for your current tierCall the chat completions endpoint within free mode limits; check the Limits page of the Admin panel for your current tier
发送第一条请求Send first request
使用下方命令开始调用。Use the command below to make your first request.
export MISTRAL_API_KEY="你的 Key"
curl https://api.mistral.ai/v1/chat/completions --header "Authorization: Bearer $MISTRAL_API_KEY" --header 'Content-Type: application/json' --data '{"model":"mistral-small-latest","messages":[{"role":"user","content":"Hello"}]}'如何使用How to use
Use the Mistral API in free mode, the default tier for evaluation and prototypingUse the Mistral API in free mode, the default tier for evaluation and prototyping
前置条件Prerequisites
- Mistral account (La Plateforme / AI Studio)Mistral account (La Plateforme / AI Studio)
- API keyAPI key
步骤Steps
- Create a Mistral account and generate an API keyCreate a Mistral account and generate an API key
- Call the chat completions endpoint within free mode limits; check the Limits page of the Admin panel for your current tierCall the chat completions endpoint within free mode limits; check the Limits page of the Admin panel for your current tier
官方来源Official sources
Official help article: 'Free mode (the default) has the lowest limits, intended for evaluation and prototyping ... Rate limits depend on your plan and usage tier'.Official help article: 'Free mode (the default) has the lowest limits, intended for evaluation and prototyping ... Rate limits depend on your plan and usage tier'.