apimodels-mcp
This MCP server lets an agent discover apimodels models and use them for chat, image generation/editing, image review, video generation, and text-to-speech.
List available models across chat, image, video, and audio, with a caveat to try dotted aliases when a model id is rejected.
Run LLM chat/completions with a prompt, optional system prompt, chosen model, and max token limit; returns the assistant reply text.
Generate or edit images from a text prompt and optional input image (public URL, local path, localhost URL, or data URI); returns image URL(s) valid 7 days plus an optional preview.
Review generated images against a brief using a vision model; returns critique details and a revised prompt to guide regeneration.
Generate videos from text and optional reference/first-frame images, with model, duration, resolution, and aspect-ratio controls; polls until done and returns video URL(s) valid 7 days.
Convert text to speech with selectable TTS model, voice, and speed; returns an audio URL valid 7 days.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
apimodels-mcp
MCP server for apimodels.app — call image, video, LLM chat, text-to-speech and speech-to-text models with one API key, from Claude Desktop, Cursor, or any MCP client.
One key unlocks GPT-6.1, Claude, Gemini, GLM, DeepSeek, Qwen, Seedance, Veo, Kling, gpt-image-2, Gemini Image, MiniMax speech and more — billed in USD, you only pay for successful generations.
Fastest setup: the Codex / Claude Code plugin
Coding agents are good at planning — scripts, shot lists, prompts, editing with ffmpeg. The apimodels plugin gives them the part they cannot do: rendering the video, images and voice-over. It bundles this MCP server plus a skill that teaches the agent when to use it, how to pick a model, how to wait for long renders and when to ask before spending.
Sign in once (needs Node.js 18+):
npx -y apimodels-mcp loginYour browser opens apimodels.app; click Authorize. A key named
CLI · <date>is created for this machine and stored in~/.apimodels/credentials.json, where every client finds it — including desktop apps that do not see your shell's environment variables. Nothing to copy or paste, and the agent can run this step for you. On a machine without a browser use--no-browser(prints the link) or--paste(paste a key from https://apimodels.app/console/api-keys).Install the plugin.
Claude Code (2.1.275 or later):
/plugin install apimodels --marketplace stimQQ/apimodels-mcpOlder versions:
/plugin marketplace add stimQQ/apimodels-mcp, then/plugin install apimodels@apimodels.Codex:
codex plugin marketplace add stimQQ/apimodels-mcp codex plugin add apimodels@apimodelsOnly have the Codex desktop app and no
codexcommand? Usenpx -y @openai/codexin place ofcodex— it runs the official CLI on the fly and shares the app's config. Then restart Codex. Codex asks you to approve each call that spends credits or changes something (the generation tools,transcribe_audio,chat,review_image,embed,extract_media,jev_decide,upload_asset,delete_asset,clone_voice,delete_voice,write_lyrics); checking progress, the model list, voices, assets and the balance never asks.
Ask in plain words, e.g. "make a 5-second 16:9 video of a kitten slowly raising its head in morning light" or "plan a 20-second product video for this repo and render it shot by shot".
No Node.js yet? Install the plugin anyway and ask for a video: the skill has the agent check for Node.js and, with your OK, install the official LTS for you (winget on Windows, Apple's installer on macOS).
Related MCP server: avots-mcp
Hosted server: no Node.js, sign in with OAuth
The same tools run at https://api.apimodels.app/mcp (Streamable HTTP). Nothing to install and no key to copy: add the URL to your client and it asks you to sign in to apimodels.app and click Authorize. The access token it gets is a dedicated API key named MCP · <app> · <date>; delete that key in the console to disconnect.
Codex — add to
~/.codex/config.toml, then runcodex mcp login apimodels:[mcp_servers.apimodels] url = "https://api.apimodels.app/mcp"Claude Code —
claude mcp add --transport http apimodels https://api.apimodels.app/mcp, then/mcp→ apimodels → Authenticate.Cline —
cline mcp install apimodels --transport http https://api.apimodels.app/mcp, or in VS Code add{"type": "streamableHttp", "url": "https://api.apimodels.app/mcp"}undermcpServers.apimodelsincline_mcp_settings.jsonand authorize. Step-by-step guide for agents: llms-install.md.ChatGPT, Claude.ai, Cursor and other clients that take a remote MCP URL — add it as a custom connector with this URL and sign in when asked.
Differences from the local server: the hosted one cannot read files on your machine — the agent calls get_upload_url, uploads the file with curl -T and passes the returned URL instead (local paths are refused with that hint) — and each call waits at most 50 seconds before handing back a task id for get_task. Signed in with a plain API key instead? Send it as Authorization: Bearer sk_….
Tools
Tool | What it does |
| Your apimodels balance in USD — the agent checks it before a batch. |
| Every model id, grouped by endpoint, with the tool that calls it. |
| Chat / text completion with any LLM ( |
| Text-to-image and edits, with up to 16 reference images ( |
| A vision model critiques an image against your brief and proposes a revised prompt. |
| Text-to-video, image-to-video, first + last frame, reference images / videos / audio (Seedance), talking avatars and lip sync (image or video + |
| Wait for / check on any image, video, audio or transcription task that came back as still running. |
| Speech from MiniMax, ElevenLabs ( |
| Search 12,000+ MiniMax, ElevenLabs and Fish voices by language, gender or keyword, the Kling voices for |
| Clone a voice from an audio sample — MiniMax ($1.41), ElevenLabs (free, kept 24 hours) or Fish (first 20 free) — and delete clones you no longer need. |
| Music with |
| Speech to text with |
| Draft lyrics, a title and style tags for |
| Embedding vectors ( |
| Direct video / image / audio links, captions and subtitles from YouTube, TikTok, Instagram, X, Bilibili, Douyin, Xiaohongshu and 1000+ other sites; whole profiles and playlists page by page. |
| Jev (TypeSafe System One): typed questions about a state, answered with calibrated probabilities. |
| Register an image, video or audio file in your asset library and get an |
| Browse, check and delete library assets. |
| Hosted server only: a 15-minute link to |
Not exposed: the realtime voice model (grok-voice-3.0, a WebSocket session) — MCP tool calls cannot carry a live audio stream.
Long generations do not get lost
Every generation is asynchronous on apimodels, and video is slow: a median of about 2.5 minutes, 9 in 10 within 8 minutes (production, week to 2026-09-22). Images take about 50 seconds. Meanwhile Codex aborts an MCP tool call after 60 seconds by default, and the MCP SDK's own client timeout is 60 seconds too. A tool that blocks until the video is ready therefore gets killed mid-wait — the task keeps running, the account is billed when it finishes, and the assistant never sees the URL. Versions up to 0.2.x did exactly that.
Since 0.3.0 the generation tools wait at most wait_seconds (default 50) and then return the task id with a "still running" note; the assistant calls get_task, which waits up to another wait_seconds and returns the URL(s) — with the image preview for image tasks — or "still running" again. Nothing is resubmitted and nothing is billed twice. The assistant does this on its own; you just ask for the video.
Codex: keep the default. Or raise
tool_timeout_secfor this server inconfig.tomland pass a largerwait_seconds.Claude Code / Claude Desktop / Cursor: no 60-second limit, so
wait_seconds: 600ongenerate_videogets the URL in one call.APIMODELS_WAIT_SECONDS=600in the server's env makes that the default.
The model can check its own work
Ask for an image and let the assistant iterate until it is right — "make a 16:9 banner that says SAVE 10%, check the spelling, fix it if needed":
generate_imagereturns the URL and a preview of the image itself (max 1024px JPEG). Clients that pass tool-result images to the model — Claude Desktop, Claude Code, Cursor — let it see what it made. Passreturn_image: falseto skip the preview.review_imageworks everywhere, including clients that show tool-result images to you but not to the model (Cherry Studio is one). It sends the image and your brief to a vision model and returns what matches, what is wrong (garbled text, composition, aspect ratio, artifacts) and a revised prompt. One review costs well under $0.01 on the defaultgpt-5.6-luna.
The assistant picks aspect_ratio and resolution itself from what you ask for, so "make it 16:9" in plain words is enough.
Speech to text
transcribe_audio turns a recording into text — "transcribe ~/Downloads/interview.m4a and list the action items":
The answer is the text itself, with the audio duration and a
transcript_url: the complete result as JSON, kept 30 days.timestamps: trueadds word-level start / end times and speaker labels (up to 8 speakers) to that JSON:words[],diarization[]andtext_with_speakers.target_languagetranslates the speech instead (32 language codes; only translation to or from English is guaranteed). It cannot be combined withtimestamps: true— the tool refuses that pair before sending anything.$0.0025 per audio minute ($0.15 per hour), billed by the second. Timestamps, speaker labels and translation cost nothing extra; failed jobs are not billed.
Up to 60 minutes and 200 MB per file: mp3, wav, m4a, aac, flac, ogg, opus, webm, or mp4 / mov with an audio track. Whole-file, offline transcription — not realtime.
A local file is uploaded first, and that upload takes audio up to 10 MB and video up to 100 MB. For a larger recording, put it at a public URL and pass the URL.
A long recording that is still being processed comes back as a task id; get_task then returns the same text.
Local files just work
Every input that takes a file — image_url, image_urls, video_url, audio_url, reference lists, source on upload_asset — takes any of these (images and audio up to 10 MB, video up to 100 MB):
a public
https://…URL — passed through untoucheda local file path —
/Users/me/photo.png,./ref.jpg,~/Pictures/x.webpa URL on your own machine —
http://127.0.0.1:8000/photo.png,http://localhost:3000/…a
data:image/png;base64,…URIan
asset://…reference fromupload_asset— passed through untouched
The last three are uploaded for you first, and the resulting public URL is what gets
generated from. This has to happen here rather than server-side: the file exists only on
your machine, and 127.0.0.1 means our server when our server resolves it — which is why
passing one to the REST API directly fails with private/reserved IP addresses not allowed.
This MCP server runs next to your files, so it can do what our servers cannot.
Uploads land in your account's R2 space and are auto-deleted after 30 days.
Setup
Run
npx -y apimodels-mcp loginand click Authorize in the browser — or create a key at https://apimodels.app/console/api-keys (it looks likesk_…) and put it in the server's environment asAPIMODELS_API_KEY, as the examples below do.Add the server to your MCP client.
npx -y apimodels-mcp statusshows which key is in use and your balance.
Claude Desktop
Edit claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"apimodels": {
"command": "npx",
"args": ["-y", "apimodels-mcp"],
"env": {
"APIMODELS_API_KEY": "sk_your_key_here"
}
}
}
}Restart Claude Desktop. You can now ask it to "generate an image of …" or "make a 5-second video of …".
Cursor
Settings → MCP → Add new MCP server, or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"apimodels": {
"command": "npx",
"args": ["-y", "apimodels-mcp"],
"env": { "APIMODELS_API_KEY": "sk_your_key_here" }
}
}
}Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.apimodels]
command = "npx"
args = ["-y", "apimodels-mcp"]
env = { APIMODELS_API_KEY = "sk_your_key_here" }
# Optional. Codex aborts a tool call after 60 s by default; the tools stay under that
# on their own (see "Long generations do not get lost"), so this is only needed if you
# want generate_video to return the URL in one call — then also pass wait_seconds: 600.
# tool_timeout_sec = 660Two things to know in Codex:
Approvals. Codex asks you to approve any tool call that is not marked read-only. Since 0.4.3,
list_modelsandget_taskare marked read-only, so waiting on a video no longer prompts on every check (0.8.0 addslist_voices,list_assetsandget_asset); the tools that bill your account or change your asset library still ask once per call. To skip those prompts as well, adddefault_tools_approval_mode = "approve"under[mcp_servers.apimodels].Name the tool. Codex loads MCP tools on demand rather than listing them all up front, so say which one you want — e.g. "use apimodels generate_video to make a 5-second 16:9 clip of …". A bare "make me a video" may not make it look.
Cherry Studio
In Settings → MCP Servers, add a new server of type stdio:
Command:
npxArguments:
-y apimodels-mcpEnvironment variables:
APIMODELS_API_KEY=sk_your_key_here
Enable the server, then select it for your conversation from the MCP control under the chat box. Use a chat model that supports tool calls (Claude, GPT, Gemini …) as the conversation model — it calls the image model for you. Cherry Studio needs Node.js installed for npx; on Windows install it from https://nodejs.org.
Any other MCP client works the same way — run npx -y apimodels-mcp over stdio with APIMODELS_API_KEY in the environment.
Models, docs and pricing
Everything the tools call is documented on apimodels.app:
Image: GPT Image 2.5 API (model page), GPT Image 2 API, Nano Banana 2.1 API (model page), all image models
Video: Seedance 2.5 API, Kling 4.0 and Kling 4.0 Flash API (
kling-4.0-flash: 720p, 3–20 s, $0.094 per second, same fields askling-4.0), Google Veo API, MiniMax H3 API, FlashVSR video upscalingChat and speech: LLM API (GPT, Claude, Gemini, DeepSeek, GLM, Qwen), Claude Sonnet 5.5, audio and text-to-speech, Nemotron 3.5 Transcribe (speech to text)
Other ways in: Claude Code setup, chat clients, Agent Skills, free calculators and tools
Prompt libraries with example outputs: GPT Image 2.5 prompts, GPT Image 2 prompts, Seedance 2.5 prompts, MiniMax H3 prompts
Configuration
Env var | Default | Description |
| — | Your |
|
| Where |
|
| API base URL. |
|
| Default |
| — | Deprecated (0.2.x): the same wait in milliseconds. Still honoured if set. |
Local development
pnpm install
pnpm build
pnpm test # offline self-test: mocked API, no network, no cost
APIMODELS_API_KEY=sk_... node dist/index.js # runs over stdioChangelog
0.9.0 —
transcribe_audio: speech to text withnemotron-3.5-transcribe(word-level timestamps, speaker labels, translation);get_taskprints the text of a transcription task.kling-4.0-flashlisted forgenerate_video.0.8.0 — every
/v1endpoint as a tool (music, sound effects, dubbing, embeddings, media extraction, Jev), the asset library, voice cloning.
License
MIT
Available Tools
6 toolschatAInspect
Chat / text completion with any LLM on apimodels.app (GPT-5.5, Claude, Gemini, GLM, DeepSeek, Qwen, …). Returns the assistant reply text.
Inputs: prompt (required), model, system, max_tokens.
generate_imageAInspect
Generate an image from a text prompt (or edit an input image). Returns the URL(s) of the generated image, valid 7 days, plus a downscaled preview of the image itself when the client can show tool-result images to you. If you cannot see the image in the result, call review_image with the returned URL to get a written critique and a revised prompt, then generate again. Roughly $0.025 per image on the default model; gpt-image-2-lite is $0.008.
Inputs: prompt (required), model, image_url, resolution, +2 more.
generate_videoAInspect
Generate a video from a text prompt (and optional reference image). Polls until done and returns the video URL(s), valid 7 days. May take a few minutes. Video is the most expensive modality here — the default model costs roughly $0.30-$0.50 per clip; pass model:"veo-3.1-fast-fhd" for the cheapest option at $0.07 flat.
Inputs: prompt (required), model, duration, image_url, +2 more.
list_modelsAInspect
List the model ids available on apimodels.app (chat, image, video, audio). Use the returned ids with the other tools. Caveat: a handful of entries are internal names that the generation endpoints reject (e.g. seedance-2-fast, seedance-2, motion-control) — the public alias is the dotted form, e.g. seedance-2.0-fast. If an id comes back "Invalid model", try the dotted variant before giving up.
Inputs: no named parameters.
review_imageAInspect
Have a vision model look at an image and critique it against a brief. Returns what matches, what is wrong (garbled text, composition, colors, artifacts) and a revised prompt. Use it after generate_image to check the result and decide whether to regenerate — this works in every MCP client, including ones that do not pass tool-result images to you. Costs one small vision chat call (well under $0.01 on the default model).
Inputs: brief (required), image_url (required), model.
text_to_speechAInspect
Convert text to speech (MiniMax voices). Returns the audio file URL (valid 7 days). Costs about $0.004 for a short line; billed at $0.04 per 1000 characters.
Inputs: text (required), model, speed, voice_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool maps to a clearly distinct modality or action: model listing, text chat, image generation, image critique, video generation, and speech synthesis. There is no meaningful overlap between tool purposes, so an agent should be able to select correctly.
Most tools follow a snake_case verb_noun pattern (list_models, generate_image, review_image, generate_video). text_to_speech is a descriptive noun phrase and chat is a single verb, which are minor deviations from the dominant pattern.
Six tools is a well-scoped set for a multimodal model gateway covering chat, image, video, and audio. Each tool is independently useful and there are no redundant additions.
The tool surface covers the main generation workflows for all four advertised modalities and includes a helpful image-review loop. Minor gaps exist, such as no video review or audio transcription, but agents can complete core tasks without dead ends.
Maintenance
Related MCP Connectors
Generate images and videos (GPT Image, Seedance, Kling, Wan, Qwen) with one API key.
Generate images and videos with 200+ AI models (GPT-Image-2, Seedance, Veo, Kling) via one API.
Image, video, music and text generation across 100+ models through one endpoint.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Related MCP Servers
- AlicenseAqualityBmaintenanceOne MCP server for music, image, video, and audio generation across Suno, Grok Imagine, Seedance, Kling, Hailuo, Wan, VEO, Ideogram, and GPT Image 2. Generate, edit, upscale, reframe, and master through one API key and one credit pool.161,024 npm6MIT
- AlicenseAqualityCmaintenanceHosted multi-model AI media + chat MCP server. Generates images, video, audio, face-swaps and talking-avatars, and chats across 300+ models (Claude, GPT, Gemini, DeepSeek…) - all from one balance and one API key.16MIT

Createya MCP & APIofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents and developers to generate images, videos, audio, and text using 100+ models via MCP or REST with a single API key.4MIT- AlicenseNot gradedqualityCmaintenanceGenerate AI images and videos from Claude, Cursor or any MCP client: 48+ models on one account (Flux 2, Nano Banana 2, Seedream 5, Kling V3, Seedance 2.5, Veo 3.1), with the exact cost in credits returned on every call.1MIT