Skip to content
Gemini CLI

apimodels for Gemini CLI

io.github.stimqq/apimodels-mcp

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

client:Gemini CLI transport:stdio runtime:npm

Install apimodels in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "apimodels-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "apimodels-mcp"
      ],
      "env": {
        "APIMODELS_API_KEY": "<APIMODELS_API_KEY>",
        "APIMODELS_BASE_URL": "<APIMODELS_BASE_URL>",
        "APIMODELS_WAIT_SECONDS": "<APIMODELS_WAIT_SECONDS>",
        "APIMODELS_TIMEOUT_MS": "<APIMODELS_TIMEOUT_MS>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

apimodels in other clients