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-imagegenerationrequest-schema.json Raw ↑
{
  "$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
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/hugging-face-imagegenerationrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.