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
View JSON Schema on GitHub

JSON Schema

hugging-face-inference-providers-image-generation-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ImageGenerationRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Image generation model ID"
    },
    "prompt": {
      "type": "string",
      "description": "Text prompt describing the image to generate"
    },
    "n": {
      "type": "integer",
      "description": "Number of images to generate"
    },
    "size": {
      "type": "string",
      "description": "Image dimensions"
    },
    "response_format": {
      "type": "string"
    },
    "negative_prompt": {
      "type": "string",
      "description": "Negative prompt to guide generation"
    },
    "num_inference_steps": {
      "type": "integer",
      "description": "Number of diffusion steps"
    },
    "guidance_scale": {
      "type": "number",
      "description": "Classifier-free guidance scale"
    }
  }
}