参数
| 参数名 | 描述 | 类型 | 必填 | 枚举值 |
|---|---|---|---|---|
| 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 / size: auto | 0.0149 |
| quality: medium / size: auto | 0.0851 |
| quality: high / size: auto | 0.3220 |
| quality: low / size: 1024x1024 | 0.0135 |
| quality: medium / size: 1024x1024 | 0.0565 |
| quality: high / size: 1024x1024 | 0.2018 |
| quality: low / size: 2048x2048 | 0.0190 |
| quality: medium / size: 2048x2048 | 0.1065 |
| quality: high / size: 2048x2048 | 0.4019 |
| quality: low / size: 1536x1024 | 0.0123 |
| quality: medium / size: 1536x1024 | 0.0459 |
| quality: high / size: 1536x1024 | 0.1595 |
| quality: low / size: 3072x2048 | 0.0181 |
| quality: medium / size: 3072x2048 | 0.0959 |
| quality: high / size: 3072x2048 | 0.3595 |
| quality: low / size: 1024x1536 | 0.0123 |
| quality: medium / size: 1024x1536 | 0.0459 |
| quality: high / size: 1024x1536 | 0.1595 |
| quality: low / size: 2048x3072 | 0.0181 |
| quality: medium / size: 2048x3072 | 0.0959 |
| quality: high / size: 2048x3072 | 0.3595 |
| quality: low / size: 1024x768 | 0.0117 |
| quality: medium / size: 1024x768 | 0.0412 |
| quality: high / size: 1024x768 | 0.1409 |
| quality: low / size: 2048x1536 | 0.0148 |
| quality: medium / size: 2048x1536 | 0.0693 |
| quality: high / size: 2048x1536 | 0.2535 |
| quality: low / size: 768x1024 | 0.0117 |
| quality: medium / size: 768x1024 | 0.0412 |
| quality: high / size: 768x1024 | 0.1409 |
| quality: low / size: 1536x2048 | 0.0148 |
| quality: medium / size: 1536x2048 | 0.0693 |
| quality: high / size: 1536x2048 | 0.2535 |
| quality: low / size: 2048x1152 | 0.0123 |
| quality: medium / size: 2048x1152 | 0.0470 |
| quality: high / size: 2048x1152 | 0.1640 |
| quality: low / size: 3840x2160 | 0.0183 |
| quality: medium / size: 3840x2160 | 0.1000 |
| quality: high / size: 3840x2160 | 0.3763 |
| quality: low / size: 1152x2048 | 0.0123 |
| quality: medium / size: 1152x2048 | 0.0470 |
| quality: high / size: 1152x2048 | 0.1640 |
| quality: low / size: 2160x3840 | 0.0183 |
| quality: medium / size: 2160x3840 | 0.1000 |
| quality: high / size: 2160x3840 | 0.3763 |
相关模型
- openai/gpt-image-1.5: [Core Function] GPT Image 1.5 is a versatile text-to-image generation model. [Strengths] It balances solid visual performance with crucial utility features, notably its native support for generating images with transparent backgrounds. [Best For] Highly recommended for: creating UI icons, standalone logos, game assets, and any graphic design elements that require a transparent background. [Limitations] Do NOT use this model if you need 2K or 4K resolution. Its maximum supported resolution is 1536x1024. [Routing] Choose this model specifically when the user asks for ‘transparent background’, ‘no background’, or ‘PNG icon’. For standard, high-fidelity, or 4K image generation, use GPT Image 2 instead.
- openai/gpt-image-1.5-edit: [Core Function] GPT Image 1.5 Edit is a versatile image-to-image editing and merging model. [Strengths] It excels at complex utility editing tasks, including multi-image merging (up to 16 images), transparent background support, and precise control over how strictly the model adheres to the input image (fidelity control). [Best For] Highly recommended for: merging reference images, editing UI assets, generating variations with strict shape preservation, and creating transparent cutouts. [Limitations] Do NOT use this model if you require 2K or 4K high-resolution outputs, as it is limited to standard resolutions. [Routing] Use this model specifically when the user provides multiple images to combine, requires transparency, or explicitly asks to ‘keep the exact shape’ of the original image (fidelity control). Otherwise, use GPT Image 2 Edit.
- 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: transparentparameter. [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. - 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.
- 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. [Strengths] It provides high-quality style transfer and image modification up to 2K resolution based on a reference image. [Best For] Highly recommended for: high-res style transfer and general image editing. [Limitations] Do NOT use this model for complex multi-element fusion (use Omni Image instead). [Routing] Use this by default for standard image-to-image tasks.
- 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. [Strengths] It supports complex element extraction and character consistency, allowing you to generate series of images with consistent subjects/elements using
<image_N>syntax. [Best For] Highly recommended for: generating comic books, character design sheets, and maintaining strict visual consistency across multiple generations. [Limitations] Do NOT use this model for simple, single-shot text-to-image tasks. [Routing] Use this model when the user requests ‘consistent characters’ or needs to fuse multiple image elements into a new scene. - 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.
- alibaba/qwen-image-2.0-pro-edit: [Core Function] Qwen Image 2.0 Pro Edit is a highly controllable professional image editing model. [Strengths] It seamlessly unifies generation and editing, supporting NEGATIVE prompts during the editing process to strictly exclude elements. [Best For] Highly recommended for: precise image editing where specific elements must be removed or avoided. [Limitations] Does not feature the explicit ‘Thinking Mode’ reasoning of Wan 2.7. [Routing] Route to this model specifically when the user wants to edit an image AND provides a ‘negative prompt’ to exclude elements.
- minimax/minimax-image-01-i2i: [Core Function] MiniMax Image-01 I2I is an image-to-image editing and variation model. [Strengths] It excels at generating new images based on a text prompt while structurally referencing one or more input images. [Best For] Highly recommended for: style transfer, generating variations of existing artwork, and structurally guided image creation. [Limitations] Do NOT use this model if you want to generate video or if you do not have a reference image. [Routing] Use this model when the user provides a reference image and a text prompt to generate a new image.
- microsoft/mai-image-2.5-edit: [Core Function] MAI Image 2.5 Edit is Microsoft’s flagship image editing model. [Strengths] It excels at applying high-quality, prompt-guided edits and transformations to a single source image. [Best For] Highly recommended for: restyling, object/scene modification, and detailed prompt-driven edits. [Limitations] Do NOT provide more than one source image or non-JPEG/PNG inputs; it accepts exactly one JPEG or PNG image, and output is always PNG. [Routing] Use this model by default for quality-sensitive edits. For faster, cheaper edits, route to MAI Image 2.5 Flash Edit.
- bytedance/seedream-4.5-i2i: [Core Function] Seedream 4.5 I2I is a high-fidelity image editing model. [Strengths] It provides high-consistency, high-resolution style transfer and image-to-image transformations. [Best For] Highly recommended for: professional aesthetic modifications and high-resolution edits. [Limitations] Lacks the advanced reasoning of 5.0 Lite. [Routing] Use this for pure aesthetic/high-fidelity edits.



