# Mistral AI Integration via LowCodeAPI
**Last Updated**: February 11, 2026
## Overview
Open source language models
**Categories:**
- {'id': 'frontier-ai-labs', 'name': 'Frontier AI labs'}
## Base Endpoint
https://api.lowcodeapi.com/mistralai
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://docs.mistral.ai
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### Create FIM Completions
**Method:** POST
**LowCodeAPI Path:** /v1/fim/completions
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/fim/completions?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/fim/completions?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| max_tokens | number | |
| min_tokens | number | |
| model | string | |
| prompt | string | |
| random_seed | number | |
| stop | array | |
| stream | boolean | |
| suffix | string | |
| temperature | number | |
| top_p | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mistralai/v1/fim/completions?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/createChatCompletion
### Create Chat Completions
**Method:** POST
**LowCodeAPI Path:** /v1/chat/completions
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/chat/completions?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/chat/completions?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| max_tokens | number | |
| messages | array | |
| model | string | |
| random_seed | number | |
| safe_prompt | boolean | |
| stream | boolean | |
| temperature | number | |
| top_p | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mistralai/v1/chat/completions?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/createChatCompletion
### Create Embeddings
**Method:** POST
**LowCodeAPI Path:** /v1/embeddings
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/embeddings?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/embeddings?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| encoding_format | string | |
| input | array | |
| model | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mistralai/v1/embeddings?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/createEmbedding
### List Files
**Method:** GET
**LowCodeAPI Path:** /v1/files
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_list_files
### Upload File
**Method:** POST
**LowCodeAPI Path:** /v1/files
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| file | file | |
| purpose | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/mistralai/v1/files?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_upload_file
### Retrieve File
**Method:** GET
**LowCodeAPI Path:** /v1/files/{file_id}
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/{file_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/file_id?file_id={file_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| file_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mistralai/v1/files/{file_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_retrieve_file
### Delete File
**Method:** DELETE
**LowCodeAPI Path:** /v1/files/{file_id}
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/{file_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/file_id?file_id={file_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| file_id | string | |
**Example Request (New Format):**
```bash
curl -X DELETE 'https://api.lowcodeapi.com/mistralai/v1/files/{file_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_delete_file
### Download File
**Method:** GET
**LowCodeAPI Path:** /v1/files/{file_id}/content
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/{file_id}/content?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/file_id/content?file_id={file_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| file_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mistralai/v1/files/{file_id}/content?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_download_file
### Get Signed Url
**Method:** GET
**LowCodeAPI Path:** /v1/files/{file_id}/url
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/{file_id}/url?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/files/file_id/url?file_id={file_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| file_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| expiry | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mistralai/v1/files/{file_id}/url?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/files_api_routes_get_signed_url
### List Fine Tuning Jobs
**Method:** GET
**LowCodeAPI Path:** /v1/fine_tuning/jobs
**New Format URL:**
https://api.lowcodeapi.com/mistralai/v1/fine_tuning/jobs?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/mistralai/v1/fine_tuning/jobs?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| created_after | string | |
| created_by_me | boolean | |
| model | string | |
| page | number | |
| page_size | number | |
| status | string | |
| suffix | string | |
| wandb_name | string | |
| wandb_project | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/mistralai/v1/fine_tuning/jobs?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.mistral.ai/api/#operation/jobs_api_routes_fine_tuning_get_fine_tuning_jobs
## Usage Examples
### Example 1: Basic Chat Completion
Creating a simple text completion or chat message:
```bash
# Create a chat completion - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/mistralai/v1/chat/completions?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-name",
"messages": [
{"role": "user", "content": "Hello, how can you help me?"}
]
}'
# Response includes generated content
```
### Example 2: Text Generation with Path Parameters
Generating text with specific model settings:
```bash
# Generate content using a specific model
curl -X POST "https://api.lowcodeapi.com/mistralai/v1/models/generate?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Write a short poem about technology",
"max_tokens": 100
}'
# Or if the provider uses model in the path:
curl -X POST "https://api.lowcodeapi.com/mistralai/v1/models/{MODEL_ID}:generateContent?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Write a short story"}]}]
}'
```
### Example 3: List Available Models
```bash
# Get list of available models
curl -X GET "https://api.lowcodeapi.com/mistralai/v1/models?api_token=YOUR_API_TOKEN"
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| Create FIM Completions | POST | Chat |
| Create Chat Completions | POST | Chat |
| Create Embeddings | POST | Embeddings |
| List Files | GET | Files |
| Upload File | POST | Files |
| Retrieve File | GET | Files |
| Delete File | DELETE | Files |
| Download File | GET | Files |
| Get Signed Url | GET | Files |
| List Fine Tuning Jobs | GET | Fine Tuning |
| Cancel Fine Tuning Job | POST | Fine Tuning |
| Start Fine Tuning Job | POST | Fine Tuning |
| Get Fine Tuning Job | GET | Fine Tuning |
| Update Fine Tuned Model | PATCH | Fine Tuning |
| Archive Fine Tuned Model | POST | Fine Tuning |
| Unarchive Fine Tuned Model | DELETE | Fine Tuning |
| List Available Models | GET | Models |
| Retrieve Model | GET | Models |
| Delete Model | DELETE | Models |
| Create Fine Tuning Job | POST | Fine Tuning |
| Create Batch Job | POST | Batch |
| Get Batch Job | GET | Batch |
| Get Batch Jobs | GET | Batch |
| Cancel Batch Job | POST | Batch |
| Create Agent | POST | Agents |
| List Agents | GET | Agents |
| Get Agent | GET | Agents |
| Update Agent | PATCH | Agents |
| Delete Agent | DELETE | Agents |
| Update Agent Version | PATCH | Agents |
| Create Agent Completion | POST | Agents |
| Moderations | POST | Moderation |
| Chat Moderations | POST | Moderation |
| Classifications | POST | Classification |
| Chat Classifications | POST | Classification |
| OCR | POST | OCR |
| Create Transcription | POST | Audio |
| Create Streaming Transcription | POST | Audio |
| Create Conversation | POST | Conversations |
| List Conversations | GET | Conversations |
| Get Conversation | GET | Conversations |
| Update Conversation | POST | Conversations |
| Delete Conversation | DELETE | Conversations |
| Get Conversation History | GET | Conversations |
| Get Conversation Messages | GET | Conversations |
| Restart Conversation | POST | Conversations |
| List Libraries | GET | Libraries |
| Create Library | POST | Libraries |
| Get Library | GET | Libraries |
| Update Library | PUT | Libraries |
| Delete Library | DELETE | Libraries |
| List Library Documents | GET | Libraries |
| Create Library Document | POST | Libraries |
| Get Library Document | GET | Libraries |
| Delete Library Document | DELETE | Libraries |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/mistralai/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/mistralai/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```