AI/ML API MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with AI/ML API MCP or direct API to compare models, run multimodal generation, track jobs, and monitor usage through natural language.

AI/ML API MCP logoAI/ML API MCP
Dcr Oauth

AI/ML API MCP is a unified gateway to hundreds of AI models and generation APIs. It gives teams one place to compare models, run multimodal jobs, and track usage.

25 Tools

Try AI/ML API MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
AI/ML API MCP
Try asking
TOOLS

Supported Tools

Every AI/ML API MCP action and event your agent gets out of the box.

Account balance

Get the balance of the AIMLAPI account that owns this API key, and whether it is running low.

Account usage

Get this API key's spending and the spending limit set on it, if any, with what is left of the limit.

Audio generate

Start generating music — a song with or without lyrics, or an instrumental — from a text prompt with an AIMLAPI music model.

Document ocr

Read the text of a scanned document or an image (OCR) with an AIMLAPI OCR model.

Embeddings create

Turn text into embedding vectors (lists of numbers that capture its meaning) with an AIMLAPI embedding model, for semantic search, retrieval, clustering or deduplication.

Image edit

Edit images with an OpenAI gpt-image or xAI grok-imagine model: give the images by URL and describe the change.

Image generate

Generate images from a text prompt — or edit an image, or turn one into a 3D model, with a model that does that (the input image goes in `params`) — with an AIMLAPI image model.

Jev model search

Find the right AI model for a task described in plain words — chat and coding LLMs, image generation or editing, video, text-to-speech, speech-to-text, music, embeddings, OCR, 3D, classification — ranked by Jev (TypeSafe Jev, an AI model that judges how well each model in the AIMLAPI catalog fits the task).

Jev tool search

Find an API tool for a task described in plain words — web search, reading or scraping a web page, social media (X, Instagram, TikTok, Reddit, YouTube, Facebook, LinkedIn), maps and place reviews, SEO, stocks and crypto data, company data, jobs, real estate, weather, image tools and more — ranked by Jev (TypeSafe Jev, an AI model that judges how well each Agent Tool in the AIMLAPI catalog fits the task).

Job result

Get the output of a job.

Job status

Check how a generation job is going, without fetching its output.

Llm chat

Get a reply from any AIMLAPI language model (the `model` parameter selects it) to a list of chat messages: text, code, reasoning, image understanding for vision models, and function calling with your own `tools`.

Model get

Get everything about one model, by id or alias: capabilities, input and output modalities, limits, the complete price list and recent performance metrics.

Models compare

Compare 2–10 models side by side: capabilities, the full price list and recent performance metrics of each.

Models find best

Rank models by a single objective — the cheapest (optimize_for 'cheapest', by comparable price) or the fastest ('fastest', by median latency over recent traffic) — and return the top few.

Models list

Browse the AIMLAPI model catalog: all models, or those matching filters (modality, maximum price, minimum context window, required capabilities), sorted by id and paginated.

Models search

Find AIMLAPI models whose id, aliases, name, description or tags contain a keyword (case-insensitive substring), optionally narrowed by the same filters as models_list.

Ping

Check that the AIMLAPI MCP server is reachable and accepts your API key.

Speech generate

Read a text aloud with an AIMLAPI text-to-speech model and get a link to the audio file.

Speech transcribe

Start transcribing a recording (speech to text) with an AIMLAPI speech-to-text model, from a URL the platform downloads.

Tools inspect

Get one Agent Tool by id (from tools_search or jev_tool_search): its input schema, description, current price and health.

Tools run

Run an Agent Tool by id with its `input`, built from the inputSchema that tools_inspect returns.

Tools run status

Check a run started by tools_run, by its `run_id`.

Tools search

Search the AIMLAPI Agent Tools catalog for external tools that do what the query describes: web and news search, web page scraping and content extraction (read a URL), social media (Reddit, X, TikTok, YouTube, Instagram and more), company data, places and maps, and other data APIs.

Video generate

Start generating a video from a text prompt — or from an image, with an image-to-video model — with an AIMLAPI video model.

SETUP GUIDE

Connect AI/ML API MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["ai_ml_api_mcp"],
  mcp: true,
});
Create a session scoped to AI/ML API MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Compare available AI models for summarizing legal documents",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a AI/ML API MCP request
SETUP GUIDE

Connect AI/ML API MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["ai_ml_api_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to AI/ML API MCP
3

Run AI/ML API MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Compare available AI models for summarizing legal documents" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the AI/ML API MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native AI/ML API MCP Integration

  • Supports both AI/ML API MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable model discovery and tool execution
  • Rich coverage for chat, embeddings, image, video, audio, speech, and OCR generation

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke AI/ML API MCP access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access AI/ML API MCP
  • Scoped, least privilege access to AI/ML API MCP resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use AI/ML API MCP with any AI Agent Framework

Choose a Framework you want to connect AI/ML API MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with AI/ML API MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every AI/ML API MCP tool your agent needs.Free to start.

Start building