Get Started with the Mistral AI API and Models in Infinite.Tech
Tags: opensource, ai, programming, productivity
Published: 2023-12-22 00:16:28

#### [Infinite.Tech](https://infinite.tech) Mistral API Integration & Roadmap

### Introduction

[Mistral AI](https://mistral.ai), a promising breakout AI startup based in France, has recently released an [impressive set of API and open local model tools](https://mistral.ai/news/mixtral-of-experts/) that have caught the [tech world's attention](https://aibusiness.com/nlp/mistral-ai-s-new-language-model-aims-for-open-source-supremacy). Infinite.Tech, always on the lookout for powerful, accessible AIs, is excited to incorporate these tools into our platform so you can test and explore their capabilities to find how to use them in the way that suits you. With a reputation and proclamation to high scientific standards with the open tech championing aligning with French Revolutionary ideology, this team and models are proving to be a force in AI and LLM access.

Check it out today on the [Infinite Tech App](https://app.infinite.tech/) and try what the [Mistral chat completion docs](https://docs.mistral.ai/platform/client) suggest: starting a conversation about French cuisine to express their palate of the fine, pungent sophistication of gooey cheeses.

![Infinite.Tech Interface with Mistral AI making tables](https://cdn-images-1.medium.com/max/1024/1*4eswRnzxP52JH2FpAYf46Q.png)

### Signing Up and Connecting Keys With Infinite.Tech

First, sign up for a beta account to use Mistral AI's API. Once you have an account, you can add your API keys to the Infinite.Tech App and use your account.

#### 1\. Login or sign up to the [Mistral Console](https://console.mistral.ai/user/)

![Mistreal Dashboard Home](https://cdn-images-1.medium.com/max/1024/1*LJidZUKlrAplhRx9fcxULw.png)

Mistral AI’s approach blends advanced AI capabilities with openness and community involvement, making it a versatile tool for developers and researchers. You can visit their API documentation and leading website for a detailed understanding of their API and models.

#### 1.5. Set [Billing Limits](https://console.mistral.ai/billing/)

Always a good idea

Building this feature, testing, and tutorials have taken about 276,844 tokens, which cost 0.97 EUR.

![Mistral AI Dashboard Usage page](https://cdn-images-1.medium.com/max/1024/1*mI3b5c1y04c0bjqxG3y1eA.png)

Mistral AI provides an API with pay-as-you-go access to its latest models. This API is currently in beta, allowing users to test and utilize the chat and embeddings endpoints. Examples of API usage include generating chat completions and embeddings for specified inputs.

#### 2\. Navigate to the [API Keys tab](https://console.mistral.ai/user/api-keys/) and Generate a new API key

![Mistral Dashboard API Keys](https://cdn-images-1.medium.com/max/1024/1*K0sUu0u9CVt-girz4XGsCg.png)

Mistral AI emphasizes open science and free software, releasing many models and tools under permissive licenses. They encourage community contributions and offer transparent access to their weights for full customization.

#### 3\. Copy And Paste the Generated Key into your [App.Infinite.Tech](https://app.infinite.tech/) Profile

![Add Keys To Infinite Tech](https://cdn-images-1.medium.com/max/1024/1*-T1_4hwypax15BaawtiQ9g.png)

Click on your user profile in the right and set the key in the profile

![Setting A Mistral API key in Infinite.Tech](https://cdn-images-1.medium.com/max/497/1*7YYoJUPR4Swl1rZta1t43Q.png)

#### 4\. Use the Mistral Model Catalog

![Infinite Tech selecting Models](https://cdn-images-1.medium.com/max/1024/1*8v0mlystpfHjZUFzcgOf-w.png)

Generating Chat Completions: The API allows users to send prompts for generating chat completions, with control over parameters like temperature and max tokens.

### First Impressions

The models respond with information-rich answers and transform data with rational, accurate thinking across modes. The tiny model is super quick, and we expect gains with local hardware hosting, which is on our roadmap.

It is particularly important with these tools to pick the correct model, adjust the settings, and have clear prompts with instructions to avoid repetitiveness and achieve expected or optimal results.

### Open Models and Weights

Mistral is setting a standard for open model access and is aiming us toward integrating more open models and hosing protocols. These models are available under the Apache 2.0 License. They can be accessed on platforms like Hugging Face or from Mistral AI’s documentation. This open-source approach fosters community contribution and enhances transparency and use potential. Mixtral 8x7B Model: A key offering of Mistral AI is the Mixtral 8x7B model, known for its speed and power. It excels in various benchmarks, supports multiple languages, and has coding capabilities with a 32k sequence length capacity. The model is available for use through the Mistral API or self-deployment.

![Mistral AI transforming graphs from charts](https://cdn-images-1.medium.com/max/1024/1*kNfze_fPmmP9Nqx4sBvh7w.png)

### Initial Experiments

To better understand Mistral AI’s capabilities, Infinite Tech conducted several experiments. In cheese, as suggested, cross-language understanding, gardening, and the Louvre museum. These tests suggest that Mistral AI has a high quality of multi-mode information thinking and might have an edge in understanding translations across multiple languages compared to primarily one-language trained models.

![Mistral AI Cheese prompt example](https://cdn-images-1.medium.com/max/1024/1*iWR4qtRf0rObllBuK8eEnQ.png)

#### Fromager-Affineur

Given the same prompt, “What do you have to say about French Cheeses.” It seems to give longer and more concrete answers than GPT-4. This trait seems repeatable as the models seem talkative and continue freely.

![Infinite Tech interface learning languages](https://cdn-images-1.medium.com/max/1024/1*ohmDL82UkHIRstP0SS7sjQ.png)

#### Multi-Language Tutor

Given the model's bi-lingual origin and expertise in this area, it would be interesting to see how it performed as a language tutor. I asked questions on how language structure differed and then transformed them into lessons using the quiz module.

### Roadmap

#### 1\. BETA API Keys → \[x\]

#### 2\. BETA API Model Inferencing → \[x\]

#### 3\. BETA API Embeddings →\[ \]

#### 4\. Local Host Inferencing→\[ \]

### Closing

Visit [Infinite.Tech](https://www.infinite.tech/) and explore these new models yourself. Get intuition in their collection of AI models and appreciate the exquisite taste it brings.

![Cheese in the shape of an Infnite. Tech Symbol](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bi43jtnjuoxsjna3no8l.jpeg)

You can visit their [API documentation](https://docs.mistral.ai/) and main website for a more detailed understanding of Mistral AI’s API and models.