Home / Servers / OpenAI API / create_image_edit
Create image edit
An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.
Create image edit Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models. [POST /images/edits]
Name on the gateway: openai_api__create_image_edit · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
frame_count | integer | Number of frames for GIF output. Accepts integers from 2 through 16. Defaults… |
frame_duration_ms | integer | Requested delay per GIF frame, in milliseconds. Defaults to 200 when omitted.… |
complexity | string | Computation spent planning the image, independently of rendering quality. Uses… |
model | string | The GPT image model to use for image editing, including gpt-image-2, its dated… |
images required | array | Input image references to edit. For GPT image models, you can provide up to 16… |
mask | object | Reference an input image by either URL or uploaded file ID. Provide exactly… |
markup | object | A transparent PNG overlaid on the first image, referenced by file ID, HTTPS… |
prompt required | string | A text description of the desired image edit. |
n | integer | The number of edited images to generate. |
quality | low | medium | high | xhigh | max | auto | Output quality for GPT image models. The GPT image models support low, medium… |
input_fidelity | high | low | Control how much effort the model will exert to match the style and features… |
size | string | The size of the generated images. For gpt-image-2, gpt-image-2-2026-04-21… |
safety_identifier | string | A stable identifier for an end user in your organization, used for safety… |
user | string | Deprecated: use safety_identifier instead. This parameter remains accepted for… |
output_format | png | jpeg | webp | gif | Output image format. Supported for GPT image models. |
output_compression | integer | Compression level for jpeg or webp output. |
moderation | low | auto | Moderation level for GPT image models. |
background | transparent | opaque | auto | Set the background of the generated image output. gpt-image-2.5-sunburst and… |
stream | boolean | Stream partial image results as events. |
partial_images | integer | The number of partial images to generate. This parameter is used for streaming… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "openai_api__create_image_edit",
"arguments": {
"images": [],
"prompt": "…"
}
}Or connect the OpenAI API server directly, which lists 371 tools including this one:
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create image edit tool with frame_count set to ….