How to connect Mistral ai to OpenAI Agents SDK in 2 mins: No API key needed

You can read text and tables from PDFs and images with Mistral OCR from OpenAI Agents SDK, and use Mistral's chat models with your own Mistral key. Composio lets you use Mistral inside OpenAI Agents SDK.

Mistral aiInstant · No API key

OpenAI Agents SDK runs Mistral ai through Composio, and the cost comes out of your free $2.

  • Text and tables from a document page$0.004
  • Text from a photo or scan$0.004
  • A 10-page PDF turned into text$0.040

$2 ≈ 500 pages or 500 images

Composio Instant

What you can do with your free $2

What your free $2 gets you with Mistral ai
When you ask OpenAI Agents SDK forOpenAI Agents SDK uses this toolCostWhat $2 gets you
Text and tables from a document pageCreate OCR$0.004 per pageAbout 500 pages
Text from a photo or scanCreate OCR$0.004 per imageAbout 500 images
A 10-page PDF turned into textCreate OCR$0.040 per documentAbout 50 documents

You pay Mistral ai's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Mistral ai subscription, and you only pay for what you use.

1 of 105 Mistral ai tools work without a key. For Append to conversation, Archive Fine-Tuned Model, Count Chat Completion Field Options, Create Agent, Create Agents Completion, Create Audio Transcription and 98 more, connect your own Mistral ai key. Read how Instant works.

How it works

How to connect Mistral ai to OpenAI Agents SDK

Composio adds Mistral ai to OpenAI Agents SDK as an Instant toolkit. You connect Composio to OpenAI Agents SDK once, and then OpenAI Agents SDK can use Mistral ai right away. There are two ways to do this:

  • Bring your own key

    You bring your own Mistral ai API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Mistral ai account, so you don't have to set anything up at Mistral ai, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Mistral ai into your own product, turn on Instant toolkits in your project settings so your agent can call Mistral ai for each of your users without a Mistral ai API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Mistral ai in OpenAI Agents SDK in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to OpenAI Agents SDK

    Follow the setup below. You only do this once.

  3. Ask OpenAI Agents SDK for something

    Try a Mistral ai prompt. The cost comes out of your $2.

Setup

Step-by-step Guide

Step by step09 STEPS
1

Prerequisites

Before starting, make sure you have:
  • Composio API Key and OpenAI API Key
  • Primary know-how of OpenAI Agents SDK
  • A live Mistral ai project
  • Some knowledge of Python or Typescript
2

Getting API Keys for OpenAI and Composio

OpenAI API Key
  • Go to the OpenAI dashboard and create an API key. You'll need credits to use the models, or you can connect to another model provider.
  • Keep the API key safe.
Composio API Key
3

Install dependencies

npm install @composio/openai-agents @openai/agents dotenv

Install the Composio SDK and the OpenAI Agents SDK.

4

Set up environment variables

bash
OPENAI_API_KEY=sk-...your-api-key
COMPOSIO_API_KEY=your-api-key
USER_ID=composio_user@gmail.com

Create a .env file and add your OpenAI and Composio API keys.

5

Import dependencies

import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';
What's happening:
  • You're importing all necessary libraries.
  • The Composio and OpenAIAgentsProvider classes are imported to connect your OpenAI agent to Composio tools like Mistral ai.
6

Set up the Composio instance

dotenv.config();

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});
What's happening:
  • dotenv.config() loads your .env file so COMPOSIO_API_KEY and USER_ID are available as environment variables.
  • Creating a Composio instance using the API Key and OpenAIAgentsProvider class.
7

Create a Tool Router session

// Create Tool Router session for Mistral ai
const session = await composio.create(userId as string, {
  toolkits: ['mistral_ai'],
});
const mcpUrl = session.mcp.url;

What is happening:

  • You give the Tool Router the user id and the toolkits you want available. Here, it is only mistral_ai.
  • The router checks the user's Mistral ai connection and prepares the MCP endpoint.
  • The returned session.mcp.url is the MCP URL that your agent will use to access Mistral ai.
  • This approach keeps things lightweight and lets the agent request Mistral ai tools only when needed during the conversation.
8

Configure the agent

// Configure agent with MCP tool
const agent = new Agent({
  name: 'Assistant',
  model: 'gpt-5',
  instructions:
    'You are a helpful assistant that can access Mistral ai. Help users perform Mistral ai operations through natural language.',
  tools: [
    hostedMcpTool({
      serverLabel: 'tool_router',
      serverUrl: mcpUrl,
      headers: { 'x-api-key': composioApiKey },
      requireApproval: 'never',
    }),
  ],
});
What's happening:
  • We're creating an Agent instance with a name, model (gpt-5), and clear instructions about its purpose.
  • The agent's instructions tell it that it can access Mistral ai and help with queries, inserts, updates, authentication, and fetching database information.
  • The tools array includes a hostedMcpTool that connects to the MCP server URL we created earlier.
  • The headers object includes the Composio API key for secure authentication with the MCP server.
  • requireApproval: 'never' means the agent can execute Mistral ai operations without asking for permission each time, making interactions smoother.
9

Start chat loop and handle conversation

// Keep conversation state across turns
const conversationSession = new OpenAIConversationsSession();

// Simple CLI
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  prompt: 'You: ',
});

console.log('\nComposio Tool Router session created.');
console.log('\nChat started. Type your requests below.');
console.log("Commands: 'exit', 'quit', or 'q' to end\n");

try {
  const first = await run(agent, 'What can you help me with?', { session: conversationSession });
  console.log(`Assistant: ${first.finalOutput}\n`);
} catch (e) {
  console.error('Error:', e instanceof Error ? e.message : e, '\n');
}

rl.prompt();

rl.on('line', async (userInput) => {
  const text = userInput.trim();

  if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
    console.log('Goodbye!');
    rl.close();
    process.exit(0);
  }

  if (!text) {
    rl.prompt();
    return;
  }

  try {
    const result = await run(agent, text, { session: conversationSession });
    console.log(`\nAssistant: ${result.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();
});

rl.on('close', () => {
  console.log('\n👋 Session ended.');
  process.exit(0);
});
What's happening:
  • The program prints a session URL that you visit to authorize Mistral ai.
  • After authorization, the chat begins.
  • Each message you type is processed by the agent using run().
  • The responses are printed to the console.
  • Typing exit, quit, or q cleanly ends the chat.

Complete Code

Here's the complete code to get you started with Mistral ai and OpenAI Agents SDK:

import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});

async function main() {
  // Create Tool Router session
  const session = await composio.create(userId as string, {
    toolkits: ['mistral_ai'],
  });
  const mcpUrl = session.mcp.url;

  // Configure agent with MCP tool
  const agent = new Agent({
    name: 'Assistant',
    model: 'gpt-5',
    instructions:
      'You are a helpful assistant that can access Mistral ai. Help users perform Mistral ai operations through natural language.',
    tools: [
      hostedMcpTool({
        serverLabel: 'tool_router',
        serverUrl: mcpUrl,
        headers: { 'x-api-key': composioApiKey },
        requireApproval: 'never',
      }),
    ],
  });

  // Keep conversation state across turns
  const conversationSession = new OpenAIConversationsSession();

  // Simple CLI
  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
    prompt: 'You: ',
  });

  console.log('\nComposio Tool Router session created.');
  console.log('\nChat started. Type your requests below.');
  console.log("Commands: 'exit', 'quit', or 'q' to end\n");

  try {
    const first = await run(agent, 'What can you help me with?', { session: conversationSession });
    console.log(`Assistant: ${first.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();

  rl.on('line', async (userInput) => {
    const text = userInput.trim();

    if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
      console.log('Goodbye!');
      rl.close();
      process.exit(0);
    }

    if (!text) {
      rl.prompt();
      return;
    }

    try {
      const result = await run(agent, text, { session: conversationSession });
      console.log(`\nAssistant: ${result.finalOutput}\n`);
    } catch (e) {
      console.error('Error:', e instanceof Error ? e.message : e, '\n');
    }

    rl.prompt();
  });

  rl.on('close', () => {
    console.log('\nSession ended.');
    process.exit(0);
  });
}

main().catch((err) => {
  console.error('Fatal error:', err);
  process.exit(1);
});
Try it

Ask OpenAI Agents SDK for something with Mistral ai

Start a new chat and try this prompt:

Read the first 10 pages of this scanned PDF and give me the text as clean markdown, keeping the headings, lists and tables: [link to the PDF].

OpenAI Agents SDK runs it on Instant and shows you the result. It doesn't ask you for a Mistral ai key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own Mistral ai key

If you want Append to conversation, Archive Fine-Tuned Model, Count Chat Completion Field Options, Create Agent, Create Agents Completion, Create Audio Transcription and 98 more, you need your own key. Ask OpenAI Agents SDK to connect your Mistral ai account, and it gives you a Composio link:

Connect my Mistral ai account using Composio.

Open the link, paste your Mistral ai API key and click Connect Account. You can get a key from Mistral AI Studio API keys page. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into OpenAI Agents SDK

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Turn a scanned PDF into editable text

    About $0.04

    Reads up to 10 pages of a scanned PDF and gives you the text back with headings and tables kept.

    Read the first 10 pages of this scanned PDF and give me the text as clean markdown, keeping the headings, lists and tables: [link to the PDF].

  • Pull the details out of an invoice

    Less than $0.01

    Reads an invoice and lists the vendor, invoice number, dates, line items and total.

    Read this invoice and give me the vendor, invoice number, invoice date, due date, each line item with its amount, the tax and the total, as a table: [link to the invoice PDF or image].

  • Get the tables out of a PDF report

    About $0.04

    Finds the tables in a PDF report and gives them back as clean tables you can copy anywhere.

    Pull every table from pages [page numbers, up to 10] of this report and give them back as markdown tables with their titles: [link to the PDF].

  • Translate a scanned document

    About $0.01

    Reads a scanned letter, certificate or form in another language and gives you the text with an English translation.

    Read this scanned [letter, certificate or form] in [language] and give me the original text and an English translation, section by section: [direct link to the PDF or photo].

  • Get the key terms from a contract

    About $0.04

    Reads a contract and lists the parties, dates, payment terms, renewal terms and how to cancel.

    Read this contract (up to 10 pages) and list the parties, start and end dates, payment terms, renewal terms, notice period and how either side can cancel, with the page each one is on: [link to the PDF].

What it can do

What OpenAI Agents SDK can do with Mistral ai

Works without a key

  • Text and tables from a document page
  • Text from a photo or scan
  • A 10-page PDF turned into text

Needs your own Mistral ai key

  • Append to conversation
  • Archive Fine-Tuned Model
  • Count Chat Completion Field Options
  • Create Agent
  • Create Agents Completion
  • Create Audio Transcription
  • Create Batch Job
  • Create Chat Completion
  • and 96 more
Tools and prices

Supported tools (105)

Mistral ai tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Create OCRExtract text and structured data from images and documents using Mistral AI OCR, including tables, headers, footers, and custom structured extraction.Yes$0.004 per standard OCR 4.1 page
Append to conversationTool to append new entries to an existing conversation in Mistral AI.Needs your own keyBilled to your own Mistral ai key
Archive Fine-Tuned ModelArchive a fine-tuned model so it is unavailable until restored.Needs your own keyBilled to your own Mistral ai key
Count Chat Completion Field OptionsCount values of a chat completion field after optional filtering.Needs your own keyBilled to your own Mistral ai key
Create AgentTool to create a new AI agent with custom configuration (Beta).Needs your own keyBilled to your own Mistral ai key
Create Agents CompletionTool to generate completions using a Mistral AI agent with specific instructions and tools.Needs your own keyBilled to your own Mistral ai key
Create Audio TranscriptionTranscribe audio files to text using Mistral AI's Voxtral models.Needs your own keyBilled to your own Mistral ai key
Create Batch JobCreate and queue a Mistral batch inference job.Needs your own keyBilled to your own Mistral ai key
Create Chat CompletionGenerate conversational responses from Mistral AI models with function calling and various model parameters.Needs your own keyBilled to your own Mistral ai key
Create Chat ModerationTool to classify chat content for moderation purposes across 9 categories.Needs your own keyBilled to your own Mistral ai key
Create EmbeddingsTool to generate vector embeddings for input text using Mistral AI embedding models.Needs your own keyBilled to your own Mistral ai key
Create FIM CompletionGenerate code completions using fill-in-the-middle functionality.Needs your own keyBilled to your own Mistral ai key
Create libraryTool to create a new document library.Needs your own keyBilled to your own Mistral ai key
Create library shareCreate or update sharing permissions for a library.Needs your own keyBilled to your own Mistral ai key
Create ModerationTool to classify text content for moderation purposes across 9 categories.Needs your own keyBilled to your own Mistral ai key
Create or Update Agent AliasTool to create or update an agent version alias.Needs your own keyBilled to your own Mistral ai key
Create SpeechGenerate JSON-encoded speech audio from text without streaming.Needs your own keyBilled to your own Mistral ai key
Delete agentPermanently deletes an agent by its ID (Beta feature).Needs your own keyBilled to your own Mistral ai key
Delete ConversationTool to delete a conversation by its ID (Beta).Needs your own keyBilled to your own Mistral ai key
Delete FileDelete a file by its ID from Mistral AI.Needs your own keyBilled to your own Mistral ai key
Show all 105 tools
More Mistral ai tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Delete libraryPermanently delete a library and its documents from Mistral AI.Needs your own keyBilled to your own Mistral ai key
Delete library documentPermanently deletes a document from a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Delete library shareRemove sharing permissions for a library from a user, workspace, or organization.Needs your own keyBilled to your own Mistral ai key
Download FileDownload the content of a previously uploaded Mistral AI file by ID.Needs your own keyBilled to your own Mistral ai key
Get AgentTool to retrieve details of a specific Mistral AI agent by its ID.Needs your own keyBilled to your own Mistral ai key
Get Agent VersionRetrieve a specific version of an agent (Beta).Needs your own keyBilled to your own Mistral ai key
Get Batch JobGet details and optionally inline results for a batch job.Needs your own keyBilled to your own Mistral ai key
Get campaignRetrieve an observability campaign by its UUID.Needs your own keyBilled to your own Mistral ai key
Get campaign statusReturn the execution status of an observability campaign.Needs your own keyBilled to your own Mistral ai key
Get Chat Completion EventRetrieve one observability chat completion event by UUID.Needs your own keyBilled to your own Mistral ai key
Get Chat Completion Field OptionsGet available values for a chat completion field and filter operator.Needs your own keyBilled to your own Mistral ai key
Get ConnectorGet a connector by ID or name without requesting customer data or secrets.Needs your own keyBilled to your own Mistral ai key
Get Connector Authentication MethodsGet a connector's public authentication methods and required headers.Needs your own keyBilled to your own Mistral ai key
Get ConversationTool to retrieve details of a specific conversation.Needs your own keyBilled to your own Mistral ai key
Get Conversation HistoryRetrieve the full history of a conversation in Mistral AI.Needs your own keyBilled to your own Mistral ai key
Get Conversation MessagesRetrieve all messages from a Mistral AI conversation.Needs your own keyBilled to your own Mistral ai key
Get datasetRetrieve an observability dataset by its UUID.Needs your own keyBilled to your own Mistral ai key
Get dataset import taskRetrieve the status and progress of one dataset import task.Needs your own keyBilled to your own Mistral ai key
Get dataset recordRetrieve a conversation record from an observability dataset.Needs your own keyBilled to your own Mistral ai key
Get document extracted text URLRetrieve a signed URL to download the extracted text from a document in a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Get document signed URLGet a signed URL to download a document from a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Get Document StatusRetrieve the processing status of a document in a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Get Document Text ContentRetrieve the extracted text content of a specific document from a Mistral AI library (Beta).Needs your own keyBilled to your own Mistral ai key
Get File Signed URLGet a time-limited signed URL for downloading a file from Mistral AI.Needs your own keyBilled to your own Mistral ai key
List Fine Tuning JobsList fine-tuning jobs with optional filtering and pagination.Needs your own keyBilled to your own Mistral ai key
Get JudgeRetrieve a saved observability judge by UUID.Needs your own keyBilled to your own Mistral ai key
Get libraryRetrieve detailed information about a specific library.Needs your own keyBilled to your own Mistral ai key
Get Library DocumentRetrieve metadata for a specific document in a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Get ModelTool to retrieve detailed information about a specific Mistral AI model by its ID.Needs your own keyBilled to your own Mistral ai key
Get Similar Chat Completion EventsRetrieve observability events similar to a specified event.Needs your own keyBilled to your own Mistral ai key
Get VoiceGet saved voice metadata without sample audio.Needs your own keyBilled to your own Mistral ai key
Get Voice SampleDownload a saved voice's sample as a WAV audio file.Needs your own keyBilled to your own Mistral ai key
Get WorkflowRetrieve a workflow definition and its active-worker status by name or ID.Needs your own keyBilled to your own Mistral ai key
Get Workflow DeploymentRetrieve a workflow deployment and its registered workers.Needs your own keyBilled to your own Mistral ai key
Get Workflow ExecutionRetrieve the current state and result of a workflow execution.Needs your own keyBilled to your own Mistral ai key
Get Workflow Execution HistoryRetrieve the event history for a workflow execution.Needs your own keyBilled to your own Mistral ai key
Get Workflow Execution OpenTelemetry TraceRetrieve raw OpenTelemetry trace data for a workflow execution.Needs your own keyBilled to your own Mistral ai key
Get Workflow Execution Trace EventsRetrieve trace events for a workflow execution.Needs your own keyBilled to your own Mistral ai key
Get Workflow Execution Trace SummaryRetrieve a hierarchical trace summary for a workflow execution.Needs your own keyBilled to your own Mistral ai key
Get Workflow MetricsRetrieve aggregate execution, error, latency, and retry metrics for a workflow.Needs your own keyBilled to your own Mistral ai key
Get Workflow RegistrationRetrieve one workflow registration and its worker availability.Needs your own keyBilled to your own Mistral ai key
Get Workflow RunRetrieve a workflow run's status, timing, execution IDs, and result.Needs your own keyBilled to your own Mistral ai key
Get Workflow Run HistoryRetrieve the event history for a workflow run.Needs your own keyBilled to your own Mistral ai key
Judge Chat Completion EventEvaluate one chat completion event with an inline judge definition.Needs your own keyBilled to your own Mistral ai key
Judge ConversationRun a saved observability judge against a supplied conversation.Needs your own keyBilled to your own Mistral ai key
Judge dataset recordEvaluate one dataset record with a supplied non-durable judge definition.Needs your own keyBilled to your own Mistral ai key
List agent aliasesList version aliases for a specified agent (Beta), including the version associated with each alias.Needs your own keyBilled to your own Mistral ai key
List AgentsList configured agents available in your organization (Beta), with optional filters and pagination.Needs your own keyBilled to your own Mistral ai key
List Agent VersionsList versions of a specific agent (Beta) to view its version history.Needs your own keyBilled to your own Mistral ai key
List Batch JobsTool to retrieve a list of all batch jobs with optional filtering and pagination.Needs your own keyBilled to your own Mistral ai key
List campaignsList observability campaigns, optionally filtering them by a text query.Needs your own keyBilled to your own Mistral ai key
List campaign selected eventsList chat-completion events selected by an observability campaign.Needs your own keyBilled to your own Mistral ai key
List Chat Completion FieldsList fields and operators available for observability event filtering.Needs your own keyBilled to your own Mistral ai key
List ConnectorsList custom MCP connectors without returning connection secrets.Needs your own keyBilled to your own Mistral ai key
List Connector ToolsList tools exposed by an MCP connector.Needs your own keyBilled to your own Mistral ai key
List ConversationsList all created conversations (Beta).Needs your own keyBilled to your own Mistral ai key
List dataset import tasksList import tasks associated with an observability dataset.Needs your own keyBilled to your own Mistral ai key
List dataset recordsList conversation records stored in an observability dataset.Needs your own keyBilled to your own Mistral ai key
List datasetsList observability datasets, optionally filtering them by a text query.Needs your own keyBilled to your own Mistral ai key
List FilesTool to list all files available to the user.Needs your own keyBilled to your own Mistral ai key
List JudgesList saved observability judges with filtering, search, and pagination.Needs your own keyBilled to your own Mistral ai key
List librariesList all document libraries accessible to your organization.Needs your own keyBilled to your own Mistral ai key
List Library DocumentsList all documents in a Mistral AI document library.Needs your own keyBilled to your own Mistral ai key
List library sharesList all sharing permissions for a document library.Needs your own keyBilled to your own Mistral ai key
List ModelsTool to retrieve all available Mistral AI models including base models and fine-tuned models.Needs your own keyBilled to your own Mistral ai key
List VoicesList saved voices without sample audio data.Needs your own keyBilled to your own Mistral ai key
List Workflow DeploymentsList workflow worker deployments, optionally filtering to active deployments or a workflow.Needs your own keyBilled to your own Mistral ai key
List Workflow EventsList durable workflow lifecycle and task events with cursor pagination, filtered by a root workflow execution, workflow execution, or workflow run ID.Needs your own keyBilled to your own Mistral ai key
List Workflow RegistrationsList workflow registrations with sharing, activity, archival, and cursor filters.Needs your own keyBilled to your own Mistral ai key
List Workflow RunsList workflow runs with status, search, and cursor pagination filters.Needs your own keyBilled to your own Mistral ai key
List Workflow SchedulesList workflow schedules with timing, time zone, and execution policy details.Needs your own keyBilled to your own Mistral ai key
Query Workflow ExecutionInvoke a read-only query handler on a running workflow execution.Needs your own keyBilled to your own Mistral ai key
Reprocess documentReprocess a document in a Mistral AI library (Beta).Needs your own keyBilled to your own Mistral ai key
Restart ConversationTool to restart a conversation from a specific point (Beta).Needs your own keyBilled to your own Mistral ai key
Retrieve FileRetrieve metadata of a file uploaded to Mistral AI.Needs your own keyBilled to your own Mistral ai key
Search Chat Completion EventsSearch observability chat completion events and return previews or only IDs.Needs your own keyBilled to your own Mistral ai key
Start ConversationTool to start a new conversation with a Mistral AI agent or base model.Needs your own keyBilled to your own Mistral ai key
Unarchive Fine-Tuned ModelRestore an archived fine-tuned model.Needs your own keyBilled to your own Mistral ai key
Update AgentTool to update an existing agent's configuration.Needs your own keyBilled to your own Mistral ai key
Update agent versionTool to update the current version of an agent (Beta).Needs your own keyBilled to your own Mistral ai key
Update Fine-Tuned ModelUpdate the name or description of a fine-tuned model.Needs your own keyBilled to your own Mistral ai key
Update libraryTool to update an existing document library's properties.Needs your own keyBilled to your own Mistral ai key
Update library documentUpdate the metadata of a document in a Mistral AI library.Needs your own keyBilled to your own Mistral ai key
Upload FileUpload a file to Mistral AI for use in fine-tuning, batch processing, or OCR.Needs your own keyBilled to your own Mistral ai key
Upload Library DocumentUpload a document to a Mistral AI library for use with RAG-enabled agents.Needs your own keyBilled to your own Mistral ai key
Pricing

How you pay for Mistral ai

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Mistral ai's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Mistral ai key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. OpenAI Agents SDK asks me for a Mistral ai API key

    You may have asked for something that needs your own key, like Append to conversation, Archive Fine-Tuned Model, Count Chat Completion Field Options, Create Agent, Create Agents Completion, Create Audio Transcription and 98 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Mistral ai call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Mistral ai key, then try again.

FAQ

Frequently asked questions

Start with Mistral ai.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Mistral ai from your agent with no Mistral ai key.

Get $2 starter credit