ai-mistral

Bridges OpenAI SDK to Mistral's API with model selection and streaming.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/EndUser123/cc-marketplace --skill ai-mistral
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-mistral
Source: https://github.com/EndUser123/cc-marketplace/tree/main/plugins/cc-skills-ai-api/skills/ai-mistral
Command: npx skills add https://github.com/EndUser123/cc-marketplace --skill ai-mistral

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Bridges OpenAI SDK-based applications with Mistral's OpenAI-compatible API, enabling access to Mistral Large, Codestral, and related models.

Core Features & Use Cases

  • OpenAI SDK compatibility to interact with Mistral's API for model hosting, streaming responses, and multilingual tasks.
  • Model selection and health checks to ensure reliable integration across Mistral Large, Codestral, and Mistral Small.
  • Environment-driven authentication via MISTRAL_API_KEY and straightforward deployment in cloud or on-prem environments.

Quick Start

Set MISTRAL_API_KEY in your environment, then use the OpenAI SDK with base_url=https://api.mistral.ai/v1 to POST to /v1/chat/completions and enable streaming.

Frequently Asked Questions about ai-mistral

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the OpenAI SDK with Mistral API for chat completions?

Use the OpenAI SDK with Mistral API by configuring base_url to https://api.mistral.ai/v1 and posting to /v1/chat/completions. Set the MISTRAL_API_KEY environment variable for authentication to bridge OpenAI SDK applications with Mistral models.

Can I get streaming responses from Mistral Large using OpenAI SDK compatibility?

Yes, streaming responses from Mistral Large are supported through the OpenAI-compatible API interface. Enable streaming in your OpenAI SDK requests to receive continuous, cost-effective output from Mistral models.

Does Mistral API support EU data residency for multilingual inference?

Yes, Mistral API supports EU data residency for multilingual inference tasks. This accommodates developers requiring European data compliance while using Mistral Large, Codestral, or Mistral Small models.

How do I select between Codestral and Mistral Small models?

Select between Codestral and Mistral Small models using explicit model selection parameters in your API requests. Health checks are supported to verify model availability and ensure reliable integration.

What are the limitations of using OpenAI SDK compatibility for code generation with Mistral?

OpenAI SDK compatibility for code generation with Mistral requires proper environment variable handling and explicit model selection. Limitations include dependency on the openai package and ensuring MISTRAL_API_KEY is configured for cloud or on-prem environments.