create_image_edit
Edit and generate images using text prompts with OpenAI's GPT Image 1 model. Define inputs like image source, prompt, and settings such as size, quality, and background for precise image customization.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | No | ||
image | Yes | ||
mask | No | ||
n | No | ||
prompt | Yes | ||
quality | No | ||
size | No | ||
user | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"background": {
"enum": [
"transparent",
"opaque",
"auto"
],
"type": "string"
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"additionalProperties": false,
"properties": {
"filePath": {
"type": "string"
},
"isBase64": {
"default": false,
"type": "boolean"
}
},
"required": [
"filePath"
],
"type": "object"
},
{
"items": {
"additionalProperties": false,
"properties": {
"filePath": {
"type": "string"
},
"isBase64": {
"default": false,
"type": "boolean"
}
},
"required": [
"filePath"
],
"type": "object"
},
"type": "array"
}
]
},
"mask": {
"anyOf": [
{
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"filePath": {
"type": "string"
},
"isBase64": {
"default": false,
"type": "boolean"
}
},
"required": [
"filePath"
],
"type": "object"
}
]
},
"n": {
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"prompt": {
"maxLength": 32000,
"type": "string"
},
"quality": {
"enum": [
"high",
"medium",
"low",
"auto"
],
"type": "string"
},
"size": {
"enum": [
"1024x1024",
"1536x1024",
"1024x1536",
"auto"
],
"type": "string"
},
"user": {
"type": "string"
}
},
"required": [
"image",
"prompt"
],
"type": "object"
}