APIMart logo
Machine Learning

APIMart MCP Server

Connect your account, then chat with AI to run tools.

APIMart is an OpenAI-compatible API gateway for GPT, Claude, Gemini, Grok, and dozens of image, video, audio, and music models. Connect your APIMart API key to run chat completions, submit async image and video jobs, poll task status, and check token balance from AI workflows.

Managed
9 tools
Agent guide included

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for APIMart — workflow patterns, data models, and gotchas for your AI agent.

APIMart

APIMart is a single gateway for GPT, Claude, Gemini, Grok, and dozens of image, video, audio, and music models. Pick the upstream model in the request instead of switching services per vendor.

Capabilities

  • Account — check API key balance or whole-account credits before long media runs.
  • Chat — OpenAI-style chat completions across text models.
  • Images — async image generation; jobs return a task id until URLs are ready.
  • Videos — async video generation; same task pattern as images.
  • Uploads — host reference images when a flow needs a URL instead of inline bytes.
  • Tasks — use the wait-for-task tool after async submits, or a one-shot status read when you only need a snapshot.
  • Extended surface — the generic API request tool covers Claude Messages, Whisper, TTS, Suno/Flow music, Midjourney, moderation, and other documented routes when no dedicated tool exists.

Workflow

  1. Validate — check balance before expensive image or video batches.
  2. Text — chat completions with streaming off for full JSON in agents.
  3. Reference media — upload images first when a flow requires a hosted URL.
  4. Media — submit with wait-for-completion, or capture the task id and call the wait-for-task tool until URLs appear in the result (avoid manual poll loops).
  5. Long tail — use the API request tool for routes without a dedicated tool (music tasks, Midjourney imagine, and similar).

Gotchas

  • Async media — image and video jobs return a task id; use wait-for-task or wait-for-completion for final URLs. Links often expire in 24–72 hours.
  • Billing — per-task cost and credits appear on completed tasks; usage history and invoices are dashboard-only.
  • Model IDs — use APIMart model slugs (for example gpt-4o, sora-2, gpt-image-1-official); pick from the APIMart model catalog, not vendor-native ids unless documented as aliases.
  • Insufficient balance — payment required; top up at APIMart before retrying.
  • Chat streaming — MCP tools return complete JSON; disable streaming on chat requests.

Tools in this Server (9)

Apimart API Request

Call any documented APIMart REST route relative to https://api.apimart.ai. Use for Claude Messages (v1/messages), Whisper/TTS, Suno/Flow music, Midjou...

Apimart Create Chat Completion

Create a chat completion on APIMart using OpenAI-compatible messages. Set model to any APIMart text model (GPT, Claude, Gemini, Grok, etc.). Returns t...

Apimart Create Image Generation

Submit an async APIMart image generation job via POST /v1/images/generations. Provide model and prompt; merge model-specific fields in extra_body. Ret...

Apimart Create Video Generation

Submit an async APIMart video generation job via POST /v1/videos/generations. Provide model and prompt; merge model-specific fields in extra_body. Ret...

Apimart Get Balance

Get remaining and used balance for the connected APIMart API key. Use before large image or video runs to confirm quota.

Apimart Get Task

Get status and results for an APIMart async task (image, video, music, etc.). Returns the current task payload; use the wait-for-task tool to block un...

Apimart Get User Balance

Get remaining and used balance for the whole APIMart user account (all API keys), including remain_credits and used_credits.

Apimart Upload Image

Upload an image to APIMart and receive a temporary URL (72 hours) for image-to-image or video reference inputs. Required before many generation calls ...

Apimart Wait For Task

Poll an APIMart async task until it completes, fails, is cancelled, or times out. Use after image, video, or generic submit tools when wait_for_comple...

Frequently Asked Questions

What is the APIMart MCP server?

APIMart is an OpenAI-compatible API gateway for GPT, Claude, Gemini, Grok, and dozens of image, video, audio, and music models. Connect your APIMart API key to run chat completions, submit async image and video jobs, poll task status, and check token balance from AI workflows. It provides 9 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect APIMart to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/apimart. Authentication is handled automatically.

How many tools does APIMart provide?

APIMart provides 9 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does APIMart require?

APIMart uses API Key. APIMart requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect APIMart to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/apimart

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to APIMart and paste the MCP URL into Remote MCP server URL.
  4. Click Add. APIMart will appear under Not connected — select it and click Connect to complete OAuth.
Name: APIMart
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/apimart
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use APIMart?

Sign in to connect your credentials and start running tools from the chat.

APIMart MCP Server & Skill