# gpt-4o-image-mcp [Health: Active]

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

## Description
RunAPI MCP server for GPT-4o Image: 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.
- **text_to_image** — Create a GPT-4o Image 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 gpt-4o-image task.
- **check_pricing** — Look up RunAPI pricing for the gpt-4o-image model line.

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

```json
"mcpServers": {
  "gpt-4o-image-mcp": {
    "command": "npx",
    "args": ["-y","@runapi.ai/gpt-4o-image-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 gpt-4o-image-mcp does

RunAPI’s GPT-4o Image model is available to MCP-compatible assistants through three focused tools. The server supports the `gpt-4o-image` model variant and its associated endpoint rather than exposing the full RunAPI catalog.

`text_to_image` submits a text-to-image generation task. It can either return after submission or wait for a terminal task status. The response includes the task ID, status, and output URLs when available. `get_task` checks an existing task and returns its current status together with the latest payload. `check_pricing` retrieves pricing information for the GPT-4o Image model and endpoint.

This scope suits workflows where an agent should create images with GPT-4o Image, track asynchronous work, and review pricing before submission.

## How it works

The package runs as an MCP server over stdio. An MCP host launches it with `npx`, then makes the three tools available to the assistant. A client can first call `check_pricing`, create a task with `text_to_image`, and use `get_task` later if the task was submitted without waiting.

The `text_to_image` tool accepts the `gpt-4o-image` model. Its optional wait behavior determines whether the call waits for a terminal result or returns the task ID for later polling. Model availability and pricing are subject to change, so pricing or the linked RunAPI model page should be checked when current catalog information matters.

## Setup and configuration

Install the package through an MCP host using the stdio command below:

```json
{
  "mcpServers": {
    "gpt-4o-image": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/gpt-4o-image-mcp"]
    }
  }
}
```

Claude Code can register the same package with `claude mcp add`, using either user or project scope. The stdio command also works with Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts.

Task creation and status polling require RunAPI authentication. The server checks credentials in this order:

1. The `RUNAPI_API_KEY` environment variable.
2. `~/.config/runapi/config.json`, which can be created by the MCP `login` tool or `runapi login`.
3. No credentials, which is sufficient for `check_pricing` only.

For headless use, set `RUNAPI_API_KEY` before launching the MCP host. A pre-provisioned configuration file can contain an `apiKey` value. Keep API keys out of source control.

## Tools and capabilities

- `text_to_image`: Creates a GPT-4o Image text-to-image task, optionally waits for a terminal status, and returns the task ID, status, and output URLs.
- `get_task`: Retrieves the current status and latest payload for an existing task.
- `check_pricing`: Looks up pricing for a GPT-4o Image model and endpoint without authentication.

Natural-language workflows can ask an assistant to check pricing before creating a task, submit without waiting, or return the task ID and output URLs after completion.

## Limitations and notes

The server is intentionally limited to one GPT-4o Image model variant and one endpoint. It does not provide the full RunAPI model catalog; use RunAPI’s broader MCP package when an assistant needs access to multiple model lines. Pricing and model availability can change between releases. Image task creation and polling depend on RunAPI authentication, while pricing inspection is available without sign-in.

_Full upstream README: https://allmcps.com/mcp/gpt-4o-image-mcp/readme_

