Labsco
MCP SERVER

4o-image MCP Server

by Antipas

Generate an image from a prompt, or hand it a base image to edit, and get back a clickable link that also opens in your browser.

Image GenerationVerified
Summary
One tool covering generation and editing alike, with a side effect that decides where you can run it.

`generateImage` takes a `prompt` for text-to-image and adds `imageBase64` for editing and style transfer, so a base image is inlined into the call rather than referenced by path or URL — worth knowing before sending anything large through it. The same call opens the result in your default browser rather than only returning the link, which assumes a desktop session rather than a headless host.

What it is

A single-call image generation and editing surface over the 4o-image API, returning a clickable link to the result and opening it in your default browser.

What you get
  • Text-to-image from a `prompt` alone, with `generateImage` returning a clickable link to the generated result.
  • Editing and style transfer on a picture you already have: `generateImage` also accepts `imageBase64` alongside the `prompt`, so the base image travels inside the call itself.
  • The result opens in your default browser as the call completes, as well as coming back as a link.
Requirements

An API key for the 4o-image API, supplied as API_KEY.

Setup effort

One command plus a key — npx -y 4oimage-mcp, then supply credentials