# Uncensored images inline in ChatGPT, and how to make an MCP server show them

_2026-12-01. OpenUncensored's ChatGPT app makes and edits images with uncensored models and shows them inline. How to add it, which models to use, and what it takes for an MCP server's images to appear in ChatGPT._

OpenUncensored's ChatGPT app now makes and edits images with uncensored models and shows them right in the conversation: a card sized to the picture, with a link to open it full size. Ask for an image, or upload a photo and ask for an edit, and the result appears inline, the way ChatGPT's own images do.

![An image made by OpenUncensored's z-image-turbo model, shown inline in ChatGPT](https://openuncensored.com/blog/chatgpt-mcp-images/chatgpt-image-card.jpg)

## Add it to ChatGPT

1. In ChatGPT, open **Plugins**, then **Add**, then **Add custom MCP server**.
2. Name it OpenUncensored and set the server URL to `https://openuncensored.com/mcp/connect`. Authentication: OAuth.
3. Tick the confirmation and create it. ChatGPT opens our sign-in page: paste your OpenUncensored API key and click Connect. No key yet? [Get one here](https://openuncensored.com/credits), no account needed.
4. In any chat, type `@OpenUncensored` and ask for an image: "make a photo of a red apple on a white table with z-image-turbo".

The same app chats with every model in our catalog, shows the [rankings](https://openuncensored.com/uncensored-llm-leaderboard), and checks your balance. Images and messages are billed to the credits on your key.

## What you can make

| Model | Best for |
|---|---|
| [`z-image-turbo`](https://openuncensored.com/models/z-image-turbo) | Fast photoreal images from plain English. The best default. |
| [`lustify-v8`](https://openuncensored.com/models/lustify-v8) | Explicit adult photography. |
| [`chroma`](https://openuncensored.com/models/chroma) | Long, detailed prompts (uncensored FLUX derivative). |
| [`qwen-image`](https://openuncensored.com/models/qwen-image) | Text inside the image: signs, captions, covers. |
| [`seedream-v5-5-edit`](https://openuncensored.com/models/seedream-v5-5-edit) | Keeping one character consistent, up to 10 reference images. |
| [`qwen-edit-uncensored`](https://openuncensored.com/models/qwen-edit-uncensored) | Uncensored edits of a photo you upload. |

Every image model and its price is on the [models page](https://openuncensored.com/models).

## How we made images show up inline (for MCP developers)

Getting a generated image to appear in a ChatGPT conversation took more than returning the picture. Here is what worked, tested in ChatGPT on the web in December 2026.

### 1. ChatGPT shows app views, not image content blocks

The MCP way to return a picture is an image content block: `{"type": "image", "data": "<base64>", "mimeType": "image/png"}`. ChatGPT hands that block to the model, but it does not draw it in the conversation for a connector. What ChatGPT does draw is an **app view**: an HTML page your server provides, rendered in a sandboxed frame under the tool call.

### 2. Do not send ChatGPT the image bytes

This one cost us an evening. With the image in the result, ChatGPT's very next turn failed with:

> You've reached the maximum length for this conversation, but you can keep talking by starting a new chat.

It happened with the image as a content block and again with it moved into the result's `_meta`. A text-only tool call in the same setup was fine. So for ChatGPT we return text, a link and `structuredContent`, and let the app view load the picture:

```json
{
  "content": [{ "type": "text", "text": "Image link (private, works for 24 hours): https://api.openuncensored.com/i/AbCdEfGhIj" }],
  "structuredContent": {
    "image_url": "https://api.openuncensored.com/i/AbCdEfGhIj",
    "width": 1024,
    "height": 1024,
    "model": "z-image-turbo"
  }
}
```

Other clients (Claude, coding agents) still get the image block, since they read it. ChatGPT is easy to tell apart: its tool calls carry `openai/*` keys in `params._meta` (`openai/subject`, `openai/session`, `openai/locale` and more) and the user agent `openai-mcp/1.0.0`.

```ts
const fromChatGPT = Object.keys(params._meta ?? {}).some((k) => k.startsWith("openai/"));
```

### 3. Declare the view the MCP Apps way

The tool names its view in `_meta`, and the view is a resource with the MCP Apps MIME type. Keep `openai/outputTemplate` as well; ChatGPT treats it as an alias.

```json
"_meta": {
  "ui": { "resourceUri": "ui://widget/image-card.html" },
  "openai/outputTemplate": "ui://widget/image-card.html"
}
```

```json
{
  "uri": "ui://widget/image-card.html",
  "mimeType": "text/html;profile=mcp-app",
  "_meta": {
    "ui": {
      "csp": {
        "connectDomains": [],
        "resourceDomains": ["https://api.example.com", "https://your-bucket.s3.amazonaws.com"]
      }
    }
  }
}
```

The sandbox only loads images from `resourceDomains`. If your link redirects to storage, list the storage host too.

### 4. Talk to ChatGPT over the bridge, and report your height

The view is a plain page. It says hello over `postMessage`, gets the tool result, and must tell ChatGPT how tall it is. Our first version skipped the height and showed up as a large blank frame.

```js
const send = (m) => parent.postMessage({ jsonrpc: "2.0", ...m }, "*");
send({ id: 1, method: "ui/initialize", params: {
  appInfo: { name: "image-card", version: "1.0.0" }, appCapabilities: {}, protocolVersion: "2026-01-26" } });

addEventListener("message", ({ data: m }) => {
  if (m?.id === 1 && m.result) send({ method: "ui/notifications/initialized", params: {} });
  if (m?.method === "ui/notifications/tool-result") show(m.params.structuredContent);
});

function reportHeight() {
  setTimeout(() => send({ method: "ui/notifications/size-changed",
    params: { height: Math.ceil(document.documentElement.getBoundingClientRect().height) } }), 30);
}
```

Use a timer, not `requestAnimationFrame`, to measure: Chrome pauses animation frames in cross-origin frames that are off screen, so a card that mounts below the fold would never report its size. Size the card from the image's `width` and `height` (we cap it at 480 px tall) so it does not jump when the picture loads. To open the full-size image, send `ui/open-link` with the URL; ChatGPT opens it in a new tab.

### 5. Give the model a short link

Signed storage URLs are about 600 characters long. When a model repeats one in its reply, a single changed character breaks the signature and the link fails. Our links are `https://api.openuncensored.com/i/` plus a 10-character code that redirects to a fresh signed URL, so they survive being copied by a model.

### 6. Bonus: an icon for a custom ChatGPT app

The **Add custom MCP server** form takes an icon (PNG, at most 10 KB) only when you create the app. To change it later, use **Download plugin ZIP** on the app's page, keep the `name` from its `.codex-plugin/plugin.json` (it looks like `dev-6b0e52...`), add `interface.composerIcon` and `interface.logo` pointing at your PNG, and use **Upload new version**.

## The same models over the API

Everything above is one call on our OpenAI-compatible API:

```bash
curl https://api.openuncensored.com/v1/images/generations \
  -H "Authorization: Bearer $OPENUNCENSORED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-image-turbo", "prompt": "a red apple on a white wooden table, soft daylight", "size": "1024x1024"}'
```

[Get a key](https://openuncensored.com/credits) with no sign up, try the models in the [web chat](https://openuncensored.com/chat), or hand your agent [openuncensored.com/agents.md](https://openuncensored.com/agents.md) and let it set itself up.
