🤖 Playing with Codestral Model API via Postman 🛠
Now that we have access to the Codestral Model API, let's explore it using REST API requests to see how it responds to different parameters! For this purpose, I recommend using Postman - a free tool that provides convenient features for working with APIs 🔧
🚀 Getting Started:
- Create a workspace in Postman
- Create a collection inside it to store your requests
🔌 Available Endpoints:
- Fill-in-the-middle:
🔑 Authorization: For authorization, you'll need a Codestral API key (see my previous post for instructions on obtaining one). Pro tip: store such sensitive data in variables!
⚙️ Testing: After sending the modified request, you can observe the model's response. All model parameters are customizable to fine-tune the output.
API documentation
#CodestralAPI #Tutorial
Now that we have access to the Codestral Model API, let's explore it using REST API requests to see how it responds to different parameters! For this purpose, I recommend using Postman - a free tool that provides convenient features for working with APIs 🔧
🚀 Getting Started:
- Create a workspace in Postman
- Create a collection inside it to store your requests
🔌 Available Endpoints:
- Fill-in-the-middle:
https://codestral.mistral.ai/v1/fim/completions
- Chat: https://codestral.mistral.ai/v1/chat/completions
💻 Let's experiment with the chat endpoint using a POST request. We'll modify the parameters from the API docs to focus on a coding task: generating a function to calculate Fibonacci numbers.🔑 Authorization: For authorization, you'll need a Codestral API key (see my previous post for instructions on obtaining one). Pro tip: store such sensitive data in variables!
⚙️ Testing: After sending the modified request, you can observe the model's response. All model parameters are customizable to fine-tune the output.
API documentation
#CodestralAPI #Tutorial
Postman
Postman: The World's Leading API Platform | Sign Up for Free
Accelerate API development with Postman's all-in-one platform. Streamline collaboration and simplify the API lifecycle for faster, better results. Learn more.
⚡2