Input Schema
{
"bodyFields": {
"enable_safety_checker": {
"default": true,
"description": "If set to true, the safety checker will be enabled.",
"example": true,
"required": false,
"type": "boolean"
},
"enhance_prompt_mode": {
"default": "standard",
"description": "The mode to use for enhancing prompt enhancement. Standard mode provides higher quality results but takes longer to generate. Fast mode provides average quality results but takes less time to generate.",
"enum": [
"standard",
"fast"
],
"required": false,
"type": "\"standard\" | \"fast\""
},
"image_size": {
"default": {
"height": 2048,
"width": 2048
},
"description": "The size of the generated image. The minimum total image area is 921600 pixels. Failing this, the image size will be adjusted to by scaling it up, while maintaining the aspect ratio.",
"example": {
"height": 2160,
"width": 3840
},
"required": false,
"type": "ImageSize | \"square_hd\" | \"square\" | \"portrait_4_3\" | \"portrait_16_9\" | \"landscape_4_3\" | \"landscape_16_9\" | \"auto\" | \"auto_2K\" | \"auto_4K\""
},
"max_images": {
"default": 1,
"description": "If set to a number greater than one, enables multi-image generation. The model will potentially return up to `max_images` images every generation, and in total, `num_images` generations will be carried out. In total, the number of images generated will be between `num_images` and `max_images*num_images`.",
"maximum": 6,
"minimum": 1,
"required": false,
"type": "integer"
},
"num_images": {
"default": 1,
"description": "Number of separate model generations to be run with the prompt.",
"enum": [
"1"
],
"required": false,
"type": "integer"
},
"prompt": {
"description": "The text prompt used to generate the image",
"example": "A young woman is sitting on a couch in a room filled with blooming dahlias. She is wearing a purple dress, and her hair is styled in an updo. She is smiling and looking up. The room has a white couch, a white chair, and a white table. There are also several vases of flowers in the room, including a vase of purple flowers on the table and a vase of white flowers on the floor. The walls are white, and there are several paintings on the walls.",
"required": true,
"type": "string"
},
"seed": {
"description": "Random seed to control the stochasticity of image generation.",
"required": false,
"type": "integer"
},
"sync_mode": {
"default": false,
"description": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history.",
"required": false,
"type": "boolean"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"jobId": {
"description": "Unique job identifier",
"type": "string"
},
"message": {
"description": "Human-readable message with status tracking URL",
"type": "string"
},
"statusCode": {
"description": "HTTP status code",
"type": "integer"
},
"statusUrl": {
"description": "URL to check job status",
"type": "string"
},
"timestamp": {
"description": "ISO 8601 timestamp of the response",
"type": "string"
}
}