Stability AI · Schema

InpaintRequest

3D GenerationAIGenerative AIImage GenerationImage EditingMachine LearningStable DiffusionText to ImageVideo Generation

Properties

Name Type Description
image string The source image to inpaint. Must be a valid image file.
mask string A mask image indicating the region to inpaint. White pixels indicate areas to fill, black pixels indicate areas to preserve.
prompt string Text describing what should appear in the masked region.
negative_prompt string Text describing elements to exclude from the inpainted region.
seed integer A value to control randomness in generation.
output_format string The output format of the edited image.
View JSON Schema on GitHub

JSON Schema

stability-ai-inpaintrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InpaintRequest",
  "title": "InpaintRequest",
  "type": "object",
  "required": [
    "image",
    "prompt"
  ],
  "properties": {
    "image": {
      "type": "string",
      "format": "binary",
      "description": "The source image to inpaint. Must be a valid image file."
    },
    "mask": {
      "type": "string",
      "format": "binary",
      "description": "A mask image indicating the region to inpaint. White pixels indicate areas to fill, black pixels indicate areas to preserve."
    },
    "prompt": {
      "type": "string",
      "maxLength": 10000,
      "description": "Text describing what should appear in the masked region."
    },
    "negative_prompt": {
      "type": "string",
      "maxLength": 10000,
      "description": "Text describing elements to exclude from the inpainted region."
    },
    "seed": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4294967294,
      "default": 0,
      "description": "A value to control randomness in generation."
    },
    "output_format": {
      "type": "string",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "default": "png",
      "description": "The output format of the edited image."
    }
  }
}