Gpt Image 1 Mini

gpt-image-1-mini-image-to-image

post

GPT Image 1 mini combines OpenAI's advanced language capabilities, powered by GPT-5, with GPT Image 1 Mini for efficient image generation.

Header parameters
AuthorizationstringRequiredExample: sk-XIl7IWyv0rWebaWIlTJwGsLtfxH1bCh1lA4p6eXDtDaScfOF
Body
modelstringRequired

model is the model name

Example: gpt-image-1-mini-image-to-image
promptstringRequired

The prompt to edit the image.

Example: Replace the first image have the same image style as the second image.
image_urlsstring[] · min: 1 · max: 4Required

List of URLs of input images for editing.

ninteger · enumOptional

n is the number of images to generate, default value is 1.

Default: 1Example: 1Possible values:
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/images/edits
POST /v1/images/edits HTTP/1.1
Host: image.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 369

{
  "model": "gpt-image-1-mini-image-to-image",
  "prompt": "Replace the first image have the same image style as the second image.",
  "image_urls": [
    "https://resource.trustai.sg/image/generated%2Fonerouter_a146ee8a-1fe2-43ce-803a-fb1e7f3f6949.png",
    "https://resource.onerouter.pro/image/generated%2Fonerouter_fe4771ae-d67c-41bb-a366-b07f1411ae06.png"
  ],
  "n": 1,
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/image/generated%2Fonerouter_d7cc967c-b001-4992-bfe6-be8bdd1d011e.png",
      "b64_json": "",
      "revised_prompt": ""
    }
  ],
  "created": 1761218293
}

Last updated