1. Images
Sionic Opengateway
  • Default module
    • Overview
      • Getting Started With OpenGateway
      • Model Compatible
    • Apis
      • /chat/completions
      • /v1/chat/completions
  • og-onprem
    • Chat Completions
      • Create chat completion
    • Responses
      • Create a model response
    • Messages
      • Create a message (Anthropic Messages format)
    • Embeddings
      • Create embeddings
    • Images
      • Create image
        POST
      • Edit image
        POST
    • Models
      • List models
    • Schemas
      • ModelId
      • DebugCategory
      • FallbackModels
      • DebugCategories
      • Extra
      • Debug
      • OpenAIError
      • OpenAIErrorResponse
      • AnthropicErrorResponse
      • CacheControl
      • ChatContentPart
      • ChatTextPart
      • ChatImagePart
      • ToolCall
      • ChatMessage
      • FunctionDefinition
      • ChatTool
      • ToolChoice
      • ChatCompletionRequest
      • ChatCompletionUsage
      • LogprobToken
      • ChatCompletion
      • ChatCompletionChunk
      • ResponsesInputItem
      • ResponsesMessageItem
      • ResponsesFunctionCallItem
      • ResponsesFunctionCallOutputItem
      • ResponsesTool
      • ResponsesRequest
      • ResponseObject
      • MessagesRequest
      • AnthropicMessage
      • EmbeddingsRequest
      • EmbeddingsResponse
      • ImageGenerationRequest
      • ImageEditRequest
      • ImagesResponse
      • ModelStatus
      • CatalogEndpoint
      • Model
      • ModelList
  1. Images

Edit image

POST
/images/edits
Image edit endpoint (catalog endpoint value images_edits). Accepts application/json and
multipart/form-data. The OpenGateway documentation lists this route but does not document its
request fields; the body follows the OpenAI-compatible image edit format and is modelled here as
an open object with only the documented common fields (model, extra). Responses can include
the top-level debug object when extra.debug is set.

Request

Header Params

Body Params
application/json
Required

Example
{
    "model": "openai/gpt-5-mini",
    "extra": {
        "fallbacks": [
            "openai/gpt-5-mini"
        ],
        "debug": [
            "normalizations"
        ]
    },
    "property1": "string",
    "property2": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/images/edits' \
--header 'x-opengateway-user-id;' \
--header 'x-opengateway-session-id;' \
--header 'x-sionic-task-id;' \
--header 'Content-Type: application/json' \
--data '{
    "model": "openai/gpt-5-mini",
    "extra": {
        "fallbacks": [
            "openai/gpt-5-mini"
        ],
        "debug": [
            "normalizations"
        ]
    },
    "property1": "string",
    "property2": "string"
}'

Responses

🟢200OK
application/json
OpenAI-compatible image response.
Bodyapplication/json

Example
{
    "created": 0,
    "data": [
        {
            "b64_json": "string",
            "url": "string",
            "revised_prompt": "string"
        }
    ],
    "quality": "string",
    "size": "string",
    "usage": {
        "input_tokens": 0,
        "output_tokens": 0,
        "total_tokens": 0,
        "input_tokens_details": {
            "text_tokens": 0,
            "property1": "string",
            "property2": "string"
        },
        "output_tokens_details": {
            "image_tokens": 0,
            "property1": "string",
            "property2": "string"
        }
    },
    "debug": {
        "normalizations": [
            {
                "param": "string",
                "action": "add",
                "before": null,
                "after": null
            }
        ],
        "deprecations": [
            {
                "param": "string",
                "message": "string"
            }
        ],
        "routing": [
            {
                "provider": "string",
                "region": "string",
                "status": "failed",
                "target": "string"
            }
        ]
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠402
🟠429
🔴500Server Error
🔴503Service Unavailable
Modified at 2026-10-27 15:03:30
Previous
Create image
Next
List models
Built with