Hugging Face · Schema
ImageGenerationRequest
Properties
| Name | Type | Description |
|---|---|---|
| model | string | Image generation model ID |
| prompt | string | Text prompt describing the image to generate |
| n | integer | Number of images to generate |
| size | string | Image dimensions |
| response_format | string | |
| negative_prompt | string | Negative prompt to guide generation |
| num_inference_steps | integer | Number of diffusion steps |
| guidance_scale | number | Classifier-free guidance scale |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ImageGenerationRequest",
"title": "ImageGenerationRequest",
"type": "object",
"required": [
"model",
"prompt"
],
"properties": {
"model": {
"type": "string",
"description": "Image generation model ID",
"example": "stabilityai/stable-diffusion-xl-base-1.0"
},
"prompt": {
"type": "string",
"description": "Text prompt describing the image to generate",
"example": "example_value"
},
"n": {
"type": "integer",
"minimum": 1,
"maximum": 4,
"default": 1,
"description": "Number of images to generate",
"example": 10
},
"size": {
"type": "string",
"description": "Image dimensions",
"enum": [
"256x256",
"512x512",
"1024x1024"
],
"default": "1024x1024",
"example": "256x256"
},
"response_format": {
"type": "string",
"enum": [
"url",
"b64_json"
],
"default": "url",
"example": "url"
},
"negative_prompt": {
"type": "string",
"description": "Negative prompt to guide generation",
"example": "example_value"
},
"num_inference_steps": {
"type": "integer",
"description": "Number of diffusion steps",
"example": 10
},
"guidance_scale": {
"type": "number",
"format": "float",
"description": "Classifier-free guidance scale",
"example": 42.5
}
}
}