# apimodels [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/stimQQ/apimodels-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1187  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/apimodels

## Description
Image, video, chat and speech models with one API key. The model can review its own images.

## Tools
Capabilities this server exposes over MCP:

- **get_balance** — Show the apimodels account balance (USD) for the configured API key. Check it before submitting a batch of generations, and tell the user if the balance looks too low for what they asked for.
- **list_models** — List the model ids available on apimodels.app, grouped by type (chat, image, video, audio, embedding) with the endpoint each one uses. Every id listed is callable. Use chat ids with chat, image ids with generate_image, video ids with generate_video, audio ids with text_to_speech.
- **chat** — Chat / text completion with any LLM on apimodels.app (GPT-5.5, Claude, Gemini, GLM, DeepSeek, Qwen, …). Returns the assistant reply text.
- **generate_image** — 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. Images take about 50 s (9 in 10 within 90 s); if the task is still running when wait_seconds is up you get a task id — call get_task with it, do not resubmit. 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.
- **review_image** — 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).
- **generate_video** — Generate a video from a text prompt (and optional reference image). Submits the job and waits up to wait_seconds: returns the video URL(s) (valid 7 days) if it finishes in time, otherwise a task id — then call get_task with that id; never resubmit a running task. Video takes a median 2.5 minutes and 9 in 10 finish within 8 minutes, so expect one or two get_task calls. 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.
- **get_task** — Check on, or wait for, an image / video / speech task that generate_image, generate_video or text_to_speech handed back as "still running". Returns the result URL(s) once it has finished (with an image preview for image tasks), a failure message if it failed, or "still running" again — in which case call get_task once more. Waits up to wait_seconds before answering, so one call usually suffices for a task that is nearly done. Task ids also appear at https://apimodels.app/console/records.
- **text_to_speech** — 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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "apimodels": {
    "command": "npx",
    "args": ["-y","apimodels-mcp"]
  }
}
```

## Documentation

## What apimodels does

apimodels exposes selected apimodels.app capabilities through MCP. Agents can send prompts to language models, create or edit images, render videos, convert text to speech, inspect generated images with a vision model, and check the status of longer-running jobs. The account balance and available model identifiers are also available as tools, so an agent can inspect costs and choose a callable model before starting work.

The service is intended for multimodal agent workflows. For example, an agent can plan a creative task with `chat`, generate an image or video, wait for completion with `get_task`, and use `review_image` to decide whether an image should be regenerated.

## How it works

The hosted MCP endpoint is `https://api.apimodels.app/mcp` and uses Streamable HTTP. Clients authenticate through apimodels.app, where authorization creates a dedicated API key for the connection. A plain bearer API key can also be used with the hosted endpoint.

A local installation is available through the npm package and can be configured in supported MCP clients. Local credentials are stored in `~/.apimodels/credentials.json`, allowing clients on the same machine to reuse the login. The installer detects supported clients, changes only the `apimodels` configuration entry, and creates a timestamped backup before modifying a file.

Image, video, and speech requests may return a task ID when processing has not finished. The agent should call `get_task` with that ID rather than submit the generation again. Generated image, video, and audio URLs remain valid for seven days.

## Setup and configuration

For the guided installer, use Node.js 18 or later:

```bash
npx -y apimodels-mcp install
```

Useful installer options include `--dry-run` to preview changes, `--yes` to accept all detected clients, `--client` to target specific clients, `--local` to configure the local server, and `uninstall` to remove the entry. The installer can also skip browser authentication with `--no-login`.

The hosted option needs no local package or API key copy. Add the MCP URL to a client that supports remote MCP connections, then sign in and authorize apimodels.app. The hosted server cannot access local filesystem paths; files must instead be uploaded and passed as URLs. Its calls wait up to 50 seconds before returning a task ID.

## Tools and capabilities

- `get_balance` reports the configured apimodels account balance in USD.
- `list_models` groups callable model IDs by chat, image, video, audio, and embedding endpoint.
- `chat` sends text conversations or completions to available language models.
- `generate_image` creates or edits images from prompts and returns temporary result URLs and, where supported, a preview.
- `review_image` compares an image with a brief, identifies issues, and suggests a revised prompt.
- `generate_video` submits text-to-video jobs, with optional reference imagery, and returns completed URLs or a task ID.
- `get_task` checks or waits for image, video, or speech jobs that are still running.
- `text_to_speech` converts text into audio using available voices.

## Limitations and notes

Generation time and cost vary by modality and model. Image jobs commonly take around 50 seconds, while video jobs have a median duration of about 2.5 minutes and can take several minutes longer. Video is the most expensive of the listed generation types, so balance checks are useful before batch work.

Result URLs are temporary, and a running task should be polled instead of resubmitted. The hosted deployment cannot read files directly from the client machine. Image review is useful when the MCP client cannot expose tool-result images to the agent because it returns a written critique from the image URL.

_Full upstream README: https://allmcps.com/mcp/apimodels/readme_

