Stability AI · JSON Structure

Stability Ai Image Generation Structure

Structure of a Stability AI image generation request and response

Type: object Properties: 2
3D GenerationAIGenerative AIImage GenerationImage EditingMachine LearningStable DiffusionText to ImageVideo Generation

Stability Ai Image Generation Structure is a JSON Structure definition published by Stability AI, describing 2 properties.

Properties

request response

Meta-schema:

JSON Structure

Raw ↑
{
  "title": "Stability AI Image Generation Structure",
  "description": "Structure of a Stability AI image generation request and response",
  "type": "object",
  "properties": {
    "request": {
      "type": "object",
      "description": "Image generation request parameters",
      "properties": {
        "prompt": {"type": "string", "description": "Text description of the desired image (max 10000 chars)"},
        "negative_prompt": {"type": "string", "description": "Elements to exclude from the image"},
        "model": {"type": "string", "description": "Model variant to use (sd3, sd3.5-large, etc.)"},
        "mode": {"type": "string", "description": "Generation mode (text-to-image, image-to-image)"},
        "image": {"type": "string", "description": "Source image for image-to-image generation (binary)"},
        "strength": {"type": "number", "description": "Image influence strength for i2i (0-1)"},
        "aspect_ratio": {"type": "string", "description": "Output image aspect ratio (1:1, 16:9, etc.)"},
        "seed": {"type": "integer", "description": "Randomness seed for reproducibility (0-4294967294)"},
        "output_format": {"type": "string", "description": "Output format (jpeg, png, webp)"},
        "style_preset": {"type": "string", "description": "Optional style preset for Core model"}
      }
    },
    "response": {
      "type": "object",
      "description": "Image generation response",
      "properties": {
        "image": {"type": "string", "description": "Base64-encoded image (when Accept: application/json)"},
        "finish_reason": {"type": "string", "description": "SUCCESS or CONTENT_FILTERED"},
        "seed": {"type": "integer", "description": "Seed used for generation"}
      }
    }
  }
}