Image editing
Image editing allows you to modify an existing image using a text prompt. The extension supports image editing through providers that expose an OpenAI-compatible /images/edits endpoint.
Supported providers
| Provider | Editing support |
|---|---|
| OpenAI | Yes |
| Gemini | Yes |
| Cloud Temple | Yes |
| Azure OpenAI | No |
| Grok (X-AI) | No |
| Luma | No |
| Hive | No |
Plugin configuration
Add the Cloud APIM - Image edition backend plugin to your route:
{
"enabled": true,
"plugin": "cp:otoroshi_plugins.com.cloud.apim.otoroshi.extensions.aigateway.plugins.OpenAICompatImagesEdit",
"config": {
"refs": ["image-model-entity-id"],
"max_size_upload": 104857600
}
}
| Parameter | Type | Default | Description |
|---|---|---|---|
refs | array | [] | List of Image Model entity IDs (must support editing) |
max_size_upload | number | 104857600 (100MB) | Maximum upload file size in bytes |