dLazy AIdLazy AI
Model ReferenceImage Models

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

FieldValue
Model IDgpt-image-2
CLIdlazy gpt-image-2
MCPgpt-image-2 (Claude Code surfaces this as mcp__dlazy__gpt-image-2)
Typeimage
ExecutionReturns synchronously
BatchSupports --batch <n> parallel fan-out

Parameters

ArgTypeRequiredNotes
promptstringYesPrompt
imagesarray<url>NoImages; image (accepts URL, local path, or data: URL); max 5 items
size"1024x1024" | "1536x1024" | "1024x1536" | "2048x2048" | "2048x1152" | "3840x2160" | "2160x3840" | "auto"NoSize; default "auto"
imageFormat"jpeg" | "png" | "webp"NoImage Format; default "jpeg"
quality"low" | "medium" | "high"NoQuality; default "medium"

--input @file.json or --input '{...}' can supply all args at once; flags take precedence over --input keys.

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 4

Compose 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.

On this page