openai/gpt-image-2-edit

gpt-image-2-edit
文档
Schema

[Core Function] GPT Image 2 Edit is a high-resolution image-to-image editing model. [Strengths] It excels at making high-fidelity edits and style transformations to a single source image based on a text prompt, preserving details at up to 4K resolutions. [Best For] Highly recommended for: professional photo retouching, upscaling style transfers, and modifying high-resolution concept art. [Limitations] Do NOT use this model for multi-image merging (it only accepts one input image). Do NOT use if you need precise input fidelity control or transparent backgrounds. [Routing] Use this model by default when the user wants to edit a single image and prioritize output resolution/quality. If they need to merge multiple images or control the strictness of the edit (fidelity), use GPT Image 1.5 Edit.

$0.0400~$0.2500/img$0.0360~$0.2250/img
image-to-image

输入

Description of the desired edits, supports up to 32,000 characters
Input image URL(s) to edit. Direct HTTPS URLs as string array. Supports up to 16 images for GPT Image models
提示:可拖拽文件、从剪贴板粘贴(Ctrl/Cmd+V),或提供 URL。
Optional mask URL. Must be PNG with alpha channel; dimensions must match the input image exactly. Transparent areas are edited, opaque areas locked, semi-transparent areas blend with the original.
提示:可拖拽文件、从剪贴板粘贴(Ctrl/Cmd+V),或提供 URL。
Output quality level. 'low': fast draft (default), 'medium': balanced, 'high': best quality
Output size as width x height, or 'auto' for model-selected size. Presets are valid under OpenAI constraints (total pixels 655360-8294400, edges multiples of 16). Mapping: 1:1 1K/2K; 3:2 1K/2K; 2:3 1K/2K; 4:3 1K/2K; 3:4 1K/2K; 16:9 2K/4K; 9:16 2K/4K. No 1K for 16:9/9:16; no 4K for non-widescreen ratios.

结果

暂无结果

运行模型后,结果将在这里显示。

Next:

README

属性

系列

集合

参数

参数名 描述 类型 必填 枚举值
prompt Description of the desired edits, supports up to 32,000 characters string 是 -
images Input image URL(s) to edit. Direct HTTPS URLs as string array. Supports up to 16 images for GPT Image models string[] 是 -
mask Optional mask URL. Must be PNG with alpha channel; dimensions must match the input image exactly. Transparent areas are edited, opaque areas locked, semi-transparent areas blend with the original. string 否 -
quality Output quality level. ‘low’: fast draft (default), ‘medium’: balanced, ‘high’: best quality string 否 low, medium, high
size Output size as width x height, or ‘auto’ for model-selected size. Presets are valid under OpenAI constraints (total pixels 655360-8294400, edges multiples of 16). Mapping: 1:1 1K/2K; 3:2 1K/2K; 2:3 1K/2K; 4:3 1K/2K; 3:4 1K/2K; 16:9 2K/4K; 9:16 2K/4K. No 1K for 16:9/9:16; no 4K for non-widescreen ratios. string 否 auto, 1024x1024, 2048x2048, 1536x1024, 3072x2048, 1024x1536, 2048x3072, 1024x768, 2048x1536, 768x1024, 1536x2048, 2048x1152, 3840x2160, 1152x2048, 2160x3840

价格

单位: $/img

维度 价格
quality: low 0.0360
quality: medium 0.0792
quality: high 0.2250

相关模型

  • openai/gpt-image-2: [Core Function] GPT Image 2 is a state-of-the-art text-to-image generation model. [Strengths] It excels at generating highly detailed, photorealistic images from text descriptions, with native support for ultra-high resolutions including 2K and 4K (up to 3840x2160). [Best For] Highly recommended for: cinematic landscapes, detailed character portraits, high-end commercial concept art, and any scenario requiring maximum resolution and visual fidelity. [Limitations] Do NOT use this model if you need a transparent background (e.g., for icons or UI assets), as it does not support the background: transparent parameter. [Routing] Use this model by default for all high-quality image generation requests. If the user explicitly asks for an image with a transparent background, route to GPT Image 1.5 instead.
  • openai/gpt-image-2.5-flare: [Core Function] GPT Image 2.5 Flare is a speed-oriented text-to-image generation model. [Strengths] Supports ten aspect ratios, resolution tiers up to 4K, and transparent backgrounds. [Best For] Landscape illustrations, product posters, and transparent icons. [Limitations] Do NOT use this for editing an existing image or selecting arbitrary pixel dimensions. [Routing] Choose this variant when speed is the priority; use GPT Image 2.5 Sunburst when image quality is the priority. Use GPT Image 2.5 Flare Edit when input images are required.
  • openai/gpt-image-2.5-sunburst: [Core Function] GPT Image 2.5 Sunburst is a quality-oriented text-to-image generation model. [Strengths] Supports ten aspect ratios, resolution tiers up to 4K, and transparent backgrounds. [Best For] Landscape illustrations, product posters, and transparent icons. [Limitations] Do NOT use this for editing an existing image or selecting arbitrary pixel dimensions. [Routing] Choose this variant when image quality is the priority; use GPT Image 2.5 Flare when speed is the priority. Use GPT Image 2.5 Sunburst Edit when input images are required.
  • openai/gpt-image-2.5-flare-edit: [Core Function] GPT Image 2.5 Flare Edit is a speed-oriented image editing model. [Strengths] Supports up to 16 input images, optional mask-based local edits, resolution tiers up to 4K, and transparent backgrounds. [Best For] Product image changes, masked object replacements, and edits guided by multiple reference images. [Limitations] Do NOT use this for editing more than 16 input images or selecting arbitrary pixel dimensions. Exact input fidelity control is not exposed. [Routing] Choose this variant when speed is the priority; use GPT Image 2.5 Sunburst Edit when image quality is the priority.
  • openai/gpt-image-2.5-sunburst-edit: [Core Function] GPT Image 2.5 Sunburst Edit is a quality-oriented image editing model. [Strengths] Supports up to 16 input images, optional mask-based local edits, resolution tiers up to 4K, and transparent backgrounds. [Best For] Product image changes, masked object replacements, and edits guided by multiple reference images. [Limitations] Do NOT use this for editing more than 16 input images or selecting arbitrary pixel dimensions. Exact input fidelity control is not exposed. [Routing] Choose this variant when image quality is the priority; use GPT Image 2.5 Flare Edit when speed is the priority.
  • google/nano-banana-pro-edit: [Core Function] Nano Banana Pro Edit is a high-capability creative image editing model. [Strengths] It provides high-quality creative edits, background replacements, and style transformations. [Best For] Highly recommended for: detailed creative modifications and complex style transfers. [Limitations] Do NOT use for strict photorealistic restoration. [Routing] Use this model for detailed, high-quality creative edits.
  • google/nano-banana-2-edit: [Core Function] Nano Banana 2 Edit is a high-speed image editing model. [Strengths] It rapidly modifies existing images or extracts image frames from videos based on text prompts. [Best For] Highly recommended for: rapid style transfer, quick image modifications, and fast creative edits. [Limitations] Do NOT use this model for meticulous photorealistic retouching. [Routing] Use this model by default for fast, creative image editing tasks. For Nano Banana 2.1 editing, use google/nano-banana-2.1-edit.
  • bytedance/seedream-5.0-lite-edit: [Core Function] Seedream 5.0 Lite Edit is a reasoning-enhanced, smart image editing model. [Strengths] It features superior cross-modal understanding and reasoning, allowing for highly accurate, interactive multi-turn image editing with real-time knowledge enhancement. [Best For] Highly recommended for: complex image editing tasks, structural modifications, and edits requiring deep semantic understanding. [Limitations] As a ‘Lite’ model, raw visual rendering might not match the 4.5 tier. [Routing] Use this model by default for complex, reasoning-based image editing tasks.
  • kling/kling-v3-i2i: [Core Function] Kling V3 I2I is the flagship image-to-image editing model (POST /images/generations, model_name=kling-v3 with image). [Strengths] High-quality style transfer and editing up to 2K. [Best For] Single-reference image editing. [Limitations] Do NOT send negative_prompt when image is present (officially unsupported). No image_fidelity / image_reference on V3. For multi-image fusion or series, use kling-v3-omni-image. [Routing] Default for standard image-to-image.
  • xai/grok-imagine-image-quality-edit: [Core Function] Grok Imagine Image Edit (Quality) is xAI’s high-fidelity image editing model. [Strengths] It excels at applying detailed, prompt-guided edits and style transformations to one or more source images while preserving fine detail. [Best For] Highly recommended for: high-quality restyling, detailed inpainting-style edits, and combining up to 3 source images. [Limitations] Do NOT use this model when latency is critical, as it is slower than the standard edit variant; a maximum of 3 source images is supported. [Routing] Use this model by default for quality-sensitive edits. For faster edits, route to Grok Imagine Image Edit (standard).
  • kling/kling-v3-omni-image: [Core Function] Kling V3 Omni Image is a unified multimodal image generation endpoint (POST /images/omni-image). [Strengths] Multi-image reference, up to 4K, and optional series generation via result_type/series_amount. Use <<<image_N>>> placeholders in prompt. [Best For] Character consistency, fusing multiple reference images, and comic/storyboard series. [Limitations] Element library IDs are not exposed. Default aspect_ratio is 1:1 when omitted. [Routing] Prefer for multi-image fusion or series; use kling-v3-t2i/i2i for standard single-shot generation.
  • alibaba/wan2.7-image-pro-edit: [Core Function] Wan 2.7 Image Pro Edit is Alibaba’s flagship reasoning-enhanced image editing model. [Strengths] It supports interactive editing, character-consistent multi-image generation, and complex multi-reference modifications with deep reasoning. [Best For] Highly recommended for: professional image retouching, consistent character sheets, and complex structural edits. [Limitations] Do NOT use this model if you specifically need to use negative prompts to exclude elements during editing (use Qwen Image 2.0 Pro Edit instead). [Routing] Use this by default for high-end image editing and multi-reference consistent character generation.
  • microsoft/mai-image-2.6-edit: [Core Function] MAI Image 2.6 Edit is Microsoft’s latest prompt-guided image editing model in the MAI Image family. [Strengths] It applies targeted edits to a single source image with the same quality gains as MAI Image 2.6 generation. [Best For] Highly recommended for: object edits, layout changes, text cleanup, and iterative photorealistic retouching. [Limitations] Do NOT use this if the caller provides more than one source image, a data URI, or a URL that is not publicly reachable over HTTP or HTTPS. It accepts exactly one JPEG or PNG image URL, and output is always PNG. auto_aspect_ratio and web_grounding are optional booleans; omit them unless the caller sets them. [Routing] Use this model when the latest MAI edit quality is required. For faster or lower-cost edits, route to MAI Image 2.6 Flash Edit.
  • microsoft/mai-image-2.6-flash-edit: [Core Function] MAI Image 2.6 Flash Edit is the faster, lower-cost variant of MAI Image 2.6 image editing. [Strengths] It applies prompt-guided edits to a single source image with lower latency than MAI Image 2.6 Edit. [Best For] Highly recommended for: high-throughput edit APIs and production retouching pipelines. [Limitations] Do NOT use this if the caller provides more than one source image, a data URI, or a URL that is not publicly reachable over HTTP or HTTPS. It accepts exactly one JPEG or PNG image URL, and output is always PNG. auto_aspect_ratio and web_grounding are optional booleans; omit them unless the caller sets them. [Routing] Use this model when edit speed or cost matters more than maximum 2.6 quality. For the highest fidelity, route to MAI Image 2.6 Edit.

相关资源