gpt-image-2
GPT Image 2 model for text-to-image and image editing. Supports generating images from text as well as editing and synthesizing images with reference inputs.
GPT Image 2 model for text-to-image and image editing. Supports generating images from text as well as editing and synthesizing images with reference inputs.
Overview
| Field | Value |
|---|---|
| Model ID | gpt-image-2 |
| CLI | dlazy gpt-image-2 |
| MCP | gpt-image-2 (Claude Code surfaces this as mcp__dlazy__gpt-image-2) |
| Type | image |
| Execution | Returns synchronously |
| Batch | Supports --batch <n> parallel fan-out |
Parameters
| Arg | Type | Required | Notes |
|---|---|---|---|
prompt | string | Yes | Prompt |
images | array<url> | No | Images; image (accepts URL, local path, or data: URL); max 5 items |
size | "1024x1024" | "1536x1024" | "1024x1536" | "2048x2048" | "2048x1152" | "3840x2160" | "2160x3840" | "auto" | No | Size; default "auto" |
imageFormat | "jpeg" | "png" | "webp" | No | Image Format; default "jpeg" |
quality | "low" | "medium" | "high" | No | Quality; default "medium" |
--input @file.jsonor--input '{...}'can supply all args at once; flags take precedence over--inputkeys.
CLI Examples
dlazy gpt-image-2 --help
dlazy gpt-image-2 --prompt "Write your prompt here" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg"
dlazy gpt-image-2 --prompt "Write your prompt here" --images "./local-image.png"
dlazy gpt-image-2 --prompt "Write your prompt here" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg" --dry-run
dlazy gpt-image-2 --prompt "Write your prompt here" --images "https://example.com/reference1.jpg" "https://example.com/reference2.jpg" --batch 4Compose with a pipeline
dlazy gpt-image-2 --prompt "reference visual" \
| dlazy gpt-image-2 --images - --prompt "Write your prompt here"MCP
MCP is consumed by AI clients, not handwritten. Once dLazy is registered as an MCP server the tool appears in the client's tool list — Claude Code surfaces it as mcp__dlazy__gpt-image-2; generic clients (e.g. OpenClaw) call it as gpt-image-2.
See MCP setup for how to add the server.
Output
{
"outputs": [
{ "type": "image", "id": "o_...", "url": "https://files.dlazy.com/result.png", "mimeType": "image/png" }
]
}Media tools emit image / video / audio / file outputs. Use --output url to print only the URLs on stdout.