Microsoft Azure · Schema

imageGenerationsRequest

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Properties

Name Type Description
prompt string A text description of the desired image(s). The maximum length is 4000 characters.
n integer The number of images to generate.
size object
response_format object
user string A unique identifier representing your end-user, which can help to monitor and detect abuse.
quality object
style object
View JSON Schema on GitHub

JSON Schema

microsoft-azure-imagegenerationsrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/imageGenerationsRequest",
  "title": "imageGenerationsRequest",
  "type": "object",
  "properties": {
    "prompt": {
      "description": "A text description of the desired image(s). The maximum length is 4000 characters.",
      "type": "string",
      "format": "string",
      "example": "a corgi in a field",
      "minLength": 1
    },
    "n": {
      "description": "The number of images to generate.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1,
      "default": 1
    },
    "size": {
      "$ref": "#/components/schemas/imageSize"
    },
    "response_format": {
      "$ref": "#/components/schemas/imagesResponseFormat"
    },
    "user": {
      "description": "A unique identifier representing your end-user, which can help to monitor and detect abuse.",
      "type": "string",
      "format": "string",
      "example": "user123456"
    },
    "quality": {
      "$ref": "#/components/schemas/imageQuality"
    },
    "style": {
      "$ref": "#/components/schemas/imageStyle"
    }
  },
  "required": [
    "prompt"
  ]
}