impeccable
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
Image generation with Google Gemini 3.1 Flash: 512px-4K, reference images, search grounding
教 AI 做这类工作的 Skill,可与本项一起使用
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
Create beautiful slides on the web using a coding agent's frontend skills
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 14/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 7/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 21/100 |
质量: 基础检查通过 2/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Ultimate Gemini MCP。按照 https://mcp.popnx.com/i/nikships-ultimate-image-gen-mcp.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 2/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Ultimate Gemini MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ultimate-image-gen": { "command": "uvx", "args": [ "ultimate-gemini-mcp" ], "env": { "GEMINI_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GEMINI_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Ultimate Gemini MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
SettingsDeveloperEdit Config
{
"mcpServers": {
"ultimate-image-gen": {
"command": "uvx",
"args": [
"ultimate-gemini-mcp"
],
"env": {
"GEMINI_API_KEY": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Ultimate Gemini MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Ultimate Gemini MCP,或回答中出现 Ultimate Gemini MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OUTPUT_DIR 保存生成图像的目录 DEFAULT_IMAGE_SIZE 生成图像的默认分辨率 DEFAULT_MODEL 默认的 Gemini 图像模型 ENABLE_PROMPT_ENHANCEMENT 在生成之前使用 Gemini Flash 自动增强提示词。 ENABLE_GOOGLE_SEARCH 默认启用 Google 搜索增强(用于天气、活动等实时数据) REQUEST_TIMEOUT API 请求超时时间(秒) MAX_BATCH_SIZE 批处理模式下的最大并行请求数 LOG_LEVEL 日志级别 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Ultimate Gemini MCP
Ultimate Gemini MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Ultimate Gemini MCP 的应用
B · 设计、图片与音频 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 Ultimate Gemini MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Ultimate Gemini MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user ultimate-image-gen --env GEMINI_API_KEY=your-value -- uvx ultimate-gemini-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GEMINI_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Ultimate Gemini MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user ultimate-image-gen --env GEMINI_API_KEY=your-value -- uvx ultimate-gemini-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Ultimate Gemini MCP 在列表中并显示已连接
用 Ultimate Gemini MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Ultimate Gemini MCP,或回答中出现 Ultimate Gemini MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OUTPUT_DIR 保存生成图像的目录 DEFAULT_IMAGE_SIZE 生成图像的默认分辨率 DEFAULT_MODEL 默认的 Gemini 图像模型 ENABLE_PROMPT_ENHANCEMENT 在生成之前使用 Gemini Flash 自动增强提示词。 ENABLE_GOOGLE_SEARCH 默认启用 Google 搜索增强(用于天气、活动等实时数据) REQUEST_TIMEOUT API 请求超时时间(秒) MAX_BATCH_SIZE 批处理模式下的最大并行请求数 LOG_LEVEL 日志级别 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Ultimate Gemini MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Ultimate Gemini MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "ultimate-image-gen": { "command": "uvx", "args": [ "ultimate-gemini-mcp" ], "env": { "GEMINI_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GEMINI_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Ultimate Gemini MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 Ultimate Gemini MCP 的设置中,GEMINI_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Ultimate Gemini MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Ultimate Gemini MCP,或回答中出现 Ultimate Gemini MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OUTPUT_DIR 保存生成图像的目录 DEFAULT_IMAGE_SIZE 生成图像的默认分辨率 DEFAULT_MODEL 默认的 Gemini 图像模型 ENABLE_PROMPT_ENHANCEMENT 在生成之前使用 Gemini Flash 自动增强提示词。 ENABLE_GOOGLE_SEARCH 默认启用 Google 搜索增强(用于天气、活动等实时数据) REQUEST_TIMEOUT API 请求超时时间(秒) MAX_BATCH_SIZE 批处理模式下的最大并行请求数 LOG_LEVEL 日志级别 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Ultimate Gemini MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Ultimate Gemini MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "ultimate-image-gen": { "type": "stdio", "command": "uvx", "args": [ "ultimate-gemini-mcp" ], "env": { "GEMINI_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GEMINI_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Ultimate Gemini MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 Ultimate Gemini MCP 的设置中,GEMINI_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Ultimate Gemini MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Ultimate Gemini MCP,或回答中出现 Ultimate Gemini MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OUTPUT_DIR 保存生成图像的目录 DEFAULT_IMAGE_SIZE 生成图像的默认分辨率 DEFAULT_MODEL 默认的 Gemini 图像模型 ENABLE_PROMPT_ENHANCEMENT 在生成之前使用 Gemini Flash 自动增强提示词。 ENABLE_GOOGLE_SEARCH 默认启用 Google 搜索增强(用于天气、活动等实时数据) REQUEST_TIMEOUT API 请求超时时间(秒) MAX_BATCH_SIZE 批处理模式下的最大并行请求数 LOG_LEVEL 日志级别 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user ultimate-image-gen --env GEMINI_API_KEY=your-value -- uvx ultimate-gemini-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"ultimate-image-gen": {
"command": "uvx",
"args": [
"ultimate-gemini-mcp"
],
"env": {
"GEMINI_API_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"ultimate-image-gen": {
"command": "uvx",
"args": [
"ultimate-gemini-mcp"
],
"env": {
"GEMINI_API_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"ultimate-image-gen": {
"type": "stdio",
"command": "uvx",
"args": [
"ultimate-gemini-mcp"
],
"env": {
"GEMINI_API_KEY": "your-value"
}
}
}
}GEMINI_API_KEY 机密 必填 envOUTPUT_DIR envDEFAULT_IMAGE_SIZE envDEFAULT_MODEL envENABLE_PROMPT_ENHANCEMENT envENABLE_GOOGLE_SEARCH envREQUEST_TIMEOUT envMAX_BATCH_SIZE envLOG_LEVEL env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日
注册名称已通过 GitHub 账户 nikships 验证,该账户拥有此仓库
代码最后更新于2个月前
GitHub 无法识别许可证类型;请打开文件自行查看
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 ultimate-gemini-mcp@6.0.21 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/nikships-ultimate-image-gen-mcp)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GEMINI_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于2个月前,最新版本(6.0.21)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:HyperFrames by HeyGen, Pascal 3D Editor, draw.io, Figma MCP Server, Remocn: Remotion MCP server
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.
Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
The Figma MCP server brings Figma design context directly into your AI workflow.
Hosted MCP for Remotion videos: search Remocn components, read docs, plan a video, preview it.
| 本项 Ultimate Gemini MCP | HyperFrames by HeyGen | Pascal 3D Editor | draw.io | Figma MCP Server | Remocn: Remotion MCP server | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 云端或安装在电脑上都可以 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 是 | 否 | 否 | 是 | 否 |
| 基础检查 | 2/3 | 4/4 | 5/5 | 4/4 | 4/4 | 4/4 |
| 许可证 | NOASSERTION | Apache-2.0 | MIT | Apache-2.0 | – | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP server for Google's Gemini 3.1 Flash Image — fast image generation with advanced reasoning, 512px–4K resolution, up to 14 reference images, Google Search grounding, and automatic thinking mode.
Add to your mcp config (mcp.json / .claude.json):
{
"mcpServers": { "ultimate-gemini": { "command": "uvx", "args": ["ultimate-gemini-mcp@latest"], "env": { "GEMINI_API_KEY": "your-api-key-here" } } } }
All generated images include invisible SynthID watermarks for authenticity and provenance tracking.
generate_app_icon forces a square, transparent, 1024px PNG every time — no way to get a non-square or opaque-background iconThis model is different. Unlike traditional image generators that rely solely on training data, Gemini 3.1 Flash has live access to Google Search and Image Search. It can find actual references for products, people, events, or anything that exists online. "Way of Wade 12" → generates the REAL shoe. "Tony Hawk" → finds real photos. Don't over-prompt — let the model cook.
Jensen Huang — GPU Surfing
Elon Musk — Mars Chess Match
Jensen Huang — GPU Kitchen
Elon Musk — Cybertruck Symphony
Jensen Huang — Underwater Data Center
Elon Musk — SpaceX Skateboarding
Current Weather in San Francisco
Butterfly on Flower
512px (fastest)
1K
2K
Using uvx (recommended — no install needed):
uvx ultimate-gemini-mcp@latest
Note: Use
@latestto ensure uv always fetches the newest version from PyPI. Without it, uv may use a cached environment.
Using pip:
pip install ultimate-gemini-mcp
From source:
git clone https://github.com/anand-92/ultimate-image-gen-mcp
cd ultimate-image-gen-mcp uv sync
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonmacOS `spawn uvx ENOENT` error: Use the full path — find it with
which uvx, then set"command": "/Users/you/.local/bin/uvx".
claude mcp add ultimate-gemini \
--env GEMINI_API_KEY=your-api-key \ -- uvx ultimate-gemini-mcp@latest
Add to .cursor/mcp.json:
{
"mcpServers": { "ultimate-gemini": { "command": "uvx", "args": ["ultimate-gemini-mcp@latest"], "env": { "GEMINI_API_KEY": "your-api-key-here" } } } }
Images are saved to ~/gemini_images by default. Add "OUTPUT_DIR": "/your/path" to customize.
generate_imageGenerate an image with Gemini 3.1 Flash Image.
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt | string | required | Text description. Less is more — "Tony Hawk kickflip" beats a long description. The model with search can find references automatically. |
aspect_ratio | string | 1:1 | One of: 1:1 1:4 1:8 2:3 3:2 3:4 4:1 4:3 4:5 5:4 8:1 9:16 16:9 21:9 |
image_size | string | 2K | 512px, 1K, 2K, or 4K |
output_format | string | png | png, jpeg, or webp |
reference_image_paths | list | [] | Up to 14 local image paths (10 objects + 4 characters) |
enable_google_search | bool | false | USE THIS for products, people, events — anything that exists now. The model searches Google for real info. |
enable_image_search | bool | false | USE THIS for visual references. The model finds actual images to work from. This is huge — it can reference real photos of anyone/anything. |
thinking_level | string | minimal | minimal (fast) or high (best quality) |
response_modalities | list | ["TEXT","IMAGE"] | ["TEXT","IMAGE"], ["IMAGE"], or ["TEXT"] |
transparent_background | bool | false | Produce a transparent PNG/WebP cut-out via the two-pass difference matte (~2x cost; see below) |
preserve_original | bool | true | Also keep the pass-1 (white-background) image, not just the cut-out |
alpha_output_format | string | png | Alpha-capable output format: png or webp |
Image size guide:
512px — fastest, lowest cost (0.5K)1K — fast, good for testing (~1-2 MB)2K — recommended for most use cases (~3-5 MB)4K — maximum quality for production assets (~8-15 MB)Just set `transparent_background=true`. You get back a ready-to-use transparent PNG/WebP (real alpha channel) at transparent_path — no manual masking, no second tool, no follow-up steps.
Generating an app icon or logo? Use the dedicated
generate_app_icontool instead — it forces square + transparent + 1024px PNG so the icon constraints can't be set wrong.
Under the hood this is a two-pass difference matte. The subject is rendered once on a pure white (#FFFFFF) background, that image is edited to a pure black (#000000) background, and the two frames are combined to solve for alpha per pixel: since obs_white − obs_black = (1−α)·255 on every channel, α = 1 − mean(obs_white − obs_black)/255, and the foreground colour is un-premultiplied from the black frame. Because there's no colour key, there's no green spill/halo; alpha is fractional, so soft edges, glow, glass, and faint shadows all survive. Pillow-only, zero ML downloads — but it costs a second model call (~2x tokens/latency).
The technique assumes the edit pass changed *only* the background. If the model drifts the subject between passes, the matte degrades — the result still returns (aligned/alignment_error flag it, with a loud post_processing_warnings entry) so you can decide whether to regenerate.
Each returned image gains: transparent_path, background_removed, background_removal_mode ("difference_matte"), aligned, alignment_error, alpha_output_format, and post_processing_warnings. By default the pass-1 (white-background) original is preserved alongside the cut-out (preserve_original=true).
// generate_image(prompt="a friendly robot mascot", transparent_background=true)
{ "images": [{ "path": "/path/to/a-friendly-robot-mascot-...png", // pass-1 (white bg) "transparent_path": "/path/to/a-friendly-robot-mascot-...-transparent.png", "background_removed": true, "background_removal_mode": "difference_matte", "aligned": true, "alignment_error": 0.004, "alpha_output_format": "png", "post_processing_warnings": [] }] }
It nails crisp-edged subjects and soft glow/glass. The one failure mode is the edit pass drifting the subject (flagged via aligned: false) — regenerate if edges look ghosted.
generate_app_iconPurpose-built for app icons and logos. Square, transparent, and 1024px are forced — there is no aspect_ratio, image_size, output_format, or transparent_background knob to get wrong. Every result is a real alpha-channel PNG at transparent_path, ready to drop into a .iconset directory and convert with iconutil -c icns.
| Parameter | Type | Default | Description | |
|---|---|---|---|---|
prompt | string | required | Describe the icon/logo mark only — framing & transparency are handled | |
reference_image_paths | str \ | list | null | Brand/style reference image path(s), up to 14 |
enable_google_search | bool | false | Ground design in real web references | |
enable_image_search | bool | false | Use Google Image Search for visual context | |
thinking_level | string | high | minimal or high (icons reward high) | |
allow_icon_words_in_prompt | bool | false | Escape hatch — bypass the prompt guard only when a word like "logo" is genuinely part of the subject |
The `prompt` must describe ONLY the subject, never the deliverable. This tool already turns whatever you describe *into* an icon, so framing words like "app icon", "logo", "favicon", or "squircle" in the prompt are rejected (set
allow_icon_words_in_prompt=trueonly if such a word is literally part of the depicted subject). Right:"a glowing electric-blue magnifying glass over a network graph". Wrong:"an app icon of a magnifying glass".
// generate_app_icon(prompt="a glowing electric-blue magnifying glass over a network graph")
{ "images": [{ "transparent_path": "/path/to/...-transparent.png", // square, 1024px, alpha "background_removed": true, "alpha_output_format": "png" }] }