namifusion

OpenAI GPT Image 2 Edit

openai/gpt-image-2/edit

OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Examples

OpenAI GPT Image 2 Edit example 1

Parameters

NameTypeDefaultDescription
images *Imagesimage_upload_groupList of URLs of input images for editing.
prompt *PrompttextareaThe positive prompt for the generation.
nImage Countslider1The number of images to generate (1-10). Each image is billed separately.
aspect_ratioAspect Ratioselect1:1The aspect ratio of the generated image. Ignored if 'size' is specified.
resolutionResolutionselect1kOutput resolution level. Ignored if 'size' is specified.
sizeSizetextautoSpecific image resolution. The format is [width]x[height]. If specified, aspect_ratio and resolution will be ignored.
qualityQualityselectautoRendering quality. Higher quality costs more and takes longer.
maskMask Imageimage_uploadReference an input image by URL. Provide exactly one.
backgroundBackgroundselectautoBackground behavior for generated image output.
input_fidelityInput FidelityselectlowControls fidelity to the original input image(s).
output_formatOutput FormatselectpngThe format of the output image. JPEG is faster for low latency.
output_compressionCompressionnumberCompression level, only valid for JPEG/WebP (0-100).
moderationModerationselectautoContent moderation level.

API

Call this model through one unified REST API. Get a key on the API Keys page.

curl -X POST https://www.namifusion.com/api/v1/marketplace/run/openai/gpt-image-2/edit \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "images": ..., "prompt": ..., "n": ... } }'

Related models

OpenAI GPT Image 2 Text-to-Image
Text to Imageminimax

OpenAI GPT Image 2 Text-to-Image

OpenAI's GPT Image 2 Text-to-Image generates high-quality images from natural-language prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.220 / per run
Nano Banana Text to Image
Text to Imagemaas

Nano Banana Text to Image

Gemini 2.5 Flash Image. Lightweight and fast. The most affordable option for instant, high-volume generation.

from $0.040 / per run
Nano Banana Pro Text to Image
Text to Imagemaas

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.140 / per run
Nano Banana Pro Text to Image
Text to Imagemaas

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.070 / per run
Google Nano Banana Lite Text to Image API
Text to Imagemaas

Google Nano Banana Lite Text to Image API

Google Nano Banana 2 Lite Text to Image generates high-quality images from text prompts with low latency, flexible aspect ratios, and fast image creation for creative and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.040 / per run
Seedream V5.0 Pro Text to Image API
Text to Imagemaas

Seedream V5.0 Pro Text to Image API

Seedream V5.0 Pro Text to Image by ByteDance generates high-quality images from text prompts, with aspect ratio selection, strong prompt following, and 1K / 2K output tiers for flexible image creation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.050 / per run
Seedream 5.0 Lite Sequential
Text to Imagevolcengine

Seedream 5.0 Lite Sequential

Seedream 5.0 Lite Sequential generates multi-image sets with consistent characters and objects, unifying palette, lighting, and style across all outputs. Supports up to 4K results for campaigns, storyboards, and product lines. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.040 / per run
Seedream 5.0 Lite
Text to Imagevolcengine

Seedream 5.0 Lite

Seedream 5.0 Lite by is a state-of-the-art text-to-image model with enhanced typography, clear text rendering for posters and brand visuals, superior prompt adherence, and up to 4K resolution. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.040 / per run
OpenAI GPT Image 2 Edit API — Pricing, Playground & Docs | NamiFusion