Edit image
Create an edited or extended image from a source image and a prompt.
Model name. Required by this gateway
Image to edit, as a public URL or Base64 string
Multiple images to edit. Gateway extension
Edit instruction
Mask image, as a public URL or Base64 string
Number of images. The gateway allows 1–128 and treats an omitted value as 1
1 <= value <= 128Output size, formatted as widthxheight
Quality tier; gpt-image-1 defaults to auto
"auto" | "low" | "medium" | "high" | "standard"Background handling, supported by the GPT image family only
"transparent" | "opaque" | "auto"Input fidelity, supported by gpt-image-1 and newer models only
"low" | "high"Output image format, supported by the GPT image family only
"png" | "jpeg" | "webp"Compression level, 0–100
0 <= value <= 100Response form, supported by dall-e-2 only
"url" | "b64_json"Whether to stream partial results
Whether to add a watermark. Gateway extension, not part of the official API
End-user identifier
Response Body
application/json
curl -X POST "https://jiniu.ai/v1/images/edits" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-1", "image": "https://example.com/input.png", "prompt": "string" }'{
"created": 0,
"data": [
{
"url": "string",
"b64_json": "string",
"revised_prompt": "string"
}
]
}