{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rawa-ai/json-schema/rawa-ai-gpt-image25-resize-workflow-input-api-schema.json",
  "title": "GptImage25ResizeWorkflowInputAPI",
  "description": "API input for resize by outpainting.\n\nProvide one input image (via `image_url` or `image_s3_key`) and exactly one of:\n\n- `output_size` as `[width, height]` in pixels: the delivered file is exactly\n  that size. Shortest edge at least 100, longest at most 3840, ratio up to\n  3:1, at most 8,294,400 pixels. The source is centred on the new canvas\n  unless `focal_point` or `blank_space_sides` places it.\n- `target_aspect` as `[width, height]`, up to 3:1: the output pixel\n  dimensions are computed for you. Placement is left to the model and\n  `extra_prompt`.\n\nWith `output_size`, `focal_point` (one of nine regions, such as\n`top-center`) slides the source to that side of the axis the new area is\nadded on. Each side in `blank_space_sides` (`top`, `bottom`, `left`,\n`right`) is kept clear: the source moves to the opposite side, and when it\nalready fills that axis it is shrunk so the side gets a margin of 25% of\nthe canvas. A blank side wins over a focal point on the same axis. Only the\nnew area is repainted. A content-policy fallback to Nano Banana Pro reads\n`extra_prompt` only.\n\nThe subject keeps its proportions and the scene is outpainted to fill the\nnew frame. `output_format` is `png` (the default) or `jpeg`, a smaller file\nwith any transparency flattened on white.\n\nExample:\n\n{\n    \"image_url\": \"https://example.com/portrait.jpg\",\n    \"output_size\": [1080, 1350],\n    \"output_format\": \"jpeg\"\n}",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/rawa-ai-api-openapi.json#/components/schemas/GptImage25ResizeWorkflowInputAPI",
  "properties": {
    "image_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Url"
    },
    "image_s3_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image S3 Key"
    },
    "target_aspect": {
      "anyOf": [
        {
          "prefixItems": [
            {
              "type": "integer"
            },
            {
              "type": "integer"
            }
          ],
          "type": "array",
          "maxItems": 2,
          "minItems": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Aspect"
    },
    "output_size": {
      "anyOf": [
        {
          "prefixItems": [
            {
              "type": "integer"
            },
            {
              "type": "integer"
            }
          ],
          "type": "array",
          "maxItems": 2,
          "minItems": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Size"
    },
    "quality": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "xhigh",
        "max",
        "auto"
      ],
      "title": "Quality",
      "default": "high"
    },
    "extra_prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Prompt"
    },
    "focal_point": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "top-left",
            "top-center",
            "top-right",
            "center-left",
            "center",
            "center-right",
            "bottom-left",
            "bottom-center",
            "bottom-right"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Focal Point"
    },
    "blank_space_sides": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "enum": [
              "top",
              "bottom",
              "left",
              "right"
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Blank Space Sides"
    },
    "output_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Path"
    },
    "output_format": {
      "type": "string",
      "enum": [
        "png",
        "jpeg"
      ],
      "title": "Output Format",
      "default": "png"
    },
    "webhook_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url"
    }
  },
  "type": "object"
}