apimodels
v0.12.0Chat, image, video, speech, music and media models with one account — local (npx) or hosted.
Values you need
| Variable | What it is | |
|---|---|---|
APIMODELS_API_KEY | required secret | Your sk_… API key from https://apimodels.app/console/api-keys |
APIMODELS_BASE_URL | optional | API base URL. Default https://api.apimodels.app/v1 |
APIMODELS_WAIT_SECONDS | optional | 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_MS | optional | 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.0Add 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/mcpAdd 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
- Ask the user for: APIMODELS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_balance, list_models, chat, generate_image, review_image, generate_video, get_task, text_to_speech, ….
- 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