generateImage
Convert text prompts into high-quality images for game and web development projects by specifying output path, size, and quality using OpenAI’s image generation capabilities.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
outputPathAbsolute | Yes | The absolute path where the image should be written out. | |
prompt | Yes | Text description of the desired image content | |
quality | No | The quality of the image. | |
size | No | Size of the generated image |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"outputPathAbsolute": {
"description": "The absolute path where the image should be written out.",
"type": "string"
},
"prompt": {
"description": "Text description of the desired image content",
"type": "string"
},
"quality": {
"description": "The quality of the image.",
"enum": [
"auto",
"low",
"medium",
"high"
],
"type": "string"
},
"size": {
"description": "Size of the generated image",
"enum": [
"1024x1024",
"1024x1536",
"1536x1024",
"auto"
],
"type": "string"
}
},
"required": [
"outputPathAbsolute",
"prompt"
],
"type": "object"
}