apimodels

v0.12.0
io.github.stimQQ/apimodels-mcp Checked 4 days ago Published 10 hours ago

Chat, image, video, speech, music and media models with one account — local (npx) or hosted.

Values you need

VariableWhat it is
APIMODELS_API_KEYrequired secret Your sk_… API key from https://apimodels.app/console/api-keys
APIMODELS_BASE_URLoptional API base URL. Default https://api.apimodels.app/v1
APIMODELS_WAIT_SECONDSoptional Default wait_seconds for generate_image / generate_video / text_to_speech / transcribe_audio / get_task before they hand back a task id. Default 50 (Codex aborts tool calls at 60 s).
APIMODELS_TIMEOUT_MSoptional Deprecated: same wait in milliseconds, honoured for old configs.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add apimodels-mcp -e 'APIMODELS_API_KEY=<APIMODELS_API_KEY>' -- npx -y apimodels-mcp@0.11.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "apimodels-mcp": {
      "args": [
        "-y",
        "apimodels-mcp@0.11.0"
      ],
      "command": "npx",
      "env": {
        "APIMODELS_API_KEY": "<APIMODELS_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "apimodels-mcp": {
      "args": [
        "-y",
        "apimodels-mcp@0.11.0"
      ],
      "command": "npx",
      "env": {
        "APIMODELS_API_KEY": "<APIMODELS_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "APIMODELS_API_KEY",
      "id": "apimodels-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "apimodels-mcp": {
      "args": [
        "-y",
        "apimodels-mcp@0.11.0"
      ],
      "command": "npx",
      "env": {
        "APIMODELS_API_KEY": "${input:apimodels-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.apimodels-mcp]
command = "npx"
args = ["-y", "apimodels-mcp@0.11.0"]
env = { "APIMODELS_API_KEY" = "<APIMODELS_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http apimodels-mcp https://api.apimodels.app/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "apimodels-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.apimodels.app/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "apimodels-mcp": {
      "url": "https://api.apimodels.app/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "apimodels-mcp": {
      "type": "http",
      "url": "https://api.apimodels.app/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.apimodels-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.apimodels.app/mcp"]

For AI agents

  1. Ask the user for: APIMODELS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_balance, list_models, chat, generate_image, review_image, generate_video, get_task, text_to_speech, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json