# imagen-4-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/runapi-ai/imagen-4-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 526  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/imagen-4-mcp

## Description
RunAPI MCP server for Imagen 4: create tasks, poll status, and check pricing.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
- **remix_image** — Create a Imagen 4 task on RunAPI (remix image). Returns a task id, status, and output URLs.
- **text_to_image** — Create a Imagen 4 task on RunAPI (text to image). Returns a task id, status, and output URLs.
- **get_task** — Fetch the current status and latest result payload for a imagen-4 task.
- **check_pricing** — Look up RunAPI pricing for the imagen-4 model line.

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

```json
"mcpServers": {
  "imagen-4-mcp": {
    "command": "npx",
    "args": ["-y","@runapi.ai/imagen-4-mcp"],
    "env": {
      "RUNAPI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RUNAPI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What imagen-4-mcp does

imagen-4-mcp connects MCP-compatible assistants to the Imagen 4 model line on RunAPI. It covers two image-generation workflows: creating an image from a text prompt and remixing an existing image. The server also exposes task tracking and pricing lookup, keeping the integration limited to Imagen 4 rather than the broader RunAPI catalog.

Four model variants are available across the supported operations. `text_to_image` accepts `imagen-4`, `imagen-4-fast`, and `imagen-4-ultra`; `remix_image` uses `imagen-4-pro-remix-image`. Model availability may change, so pricing lookup or the Imagen 4 model page should be used for the current catalog.

## How it works

The server runs as an MCP process launched with `npx -y @runapi.ai/imagen-4-mcp`. MCP clients send tool calls over stdio, and the server submits the corresponding operation to RunAPI.

Image creation tools return a task identifier and status. Both creation tools support an option to wait for a terminal result. When waiting is enabled, the response can include the final status and output URLs; when disabled, the task ID can be saved and checked later with `get_task`. That tool retrieves the current state and latest task payload for an existing task.

`check_pricing` looks up pricing for an Imagen 4 model and endpoint. It does not require sign-in, which makes it suitable for checking cost before submitting an authenticated generation task.

## Setup and configuration

Install the server in Claude Code with:

```bash
claude mcp add imagen-4 -s user -- npx -y @runapi.ai/imagen-4-mcp
```

For other MCP hosts, configure the command as `npx` with `-y` and `@runapi.ai/imagen-4-mcp` as its argument. The same stdio configuration works with Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP-compatible hosts.

For authenticated operations, ask the assistant to call the `login` tool. Browser-based login stores credentials in `~/.config/runapi/config.json`, which is also used by `runapi login`. Headless or CI environments can instead set `RUNAPI_API_KEY` before starting the MCP host. A pre-provisioned configuration file may contain an `apiKey` field. Real credentials should not be committed to source control.

## Tools and capabilities

- `text_to_image`: submits an Imagen 4 text-to-image task and can wait for completion.
- `remix_image`: submits an Imagen 4 remix task and can wait for completion.
- `get_task`: retrieves the latest status and payload for a task ID.
- `check_pricing`: checks pricing for a selected Imagen 4 model and endpoint without authentication.

The generation tools return task IDs, statuses, and output URLs when available. Natural-language requests can be used to have an assistant check pricing first, create a task, or submit work without waiting.

## Limitations and notes

Authenticated access is needed for task creation and status polling; pricing lookup remains available without a key. The server is intentionally scoped to Imagen 4 and does not provide discovery across all RunAPI model families. Model availability can change between package releases, so clients should use `check_pricing` or the canonical Imagen 4 catalog when selecting a model.

_Full upstream README: https://allmcps.com/mcp/imagen-4-mcp/readme_

