{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/isgenai/json-schema/isgenai-multipart-prompt-input-schema.json",
  "title": "MultipartPromptInput",
  "description": "Upload one nonempty still image. Only file and mode are read from multipart requests; JSON-only URL/text/code inputs are not multipart alternatives. Full multipart body cap is 21,037,056 bytes including boundaries and fields.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/isgenai-openapi.json#/components/schemas/MultipartPromptInput",
  "type": "object",
  "required": [
    "file"
  ],
  "x-maxBodyBytes": 21037056,
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "minLength": 1,
      "x-maxSizeBytes": 20971520,
      "description": "Still PNG, JPEG, WebP or AVIF bytes; nonempty, at most 20,971,520 bytes (20 MiB), at most 40,000,000 decoded pixels, one page/frame. Invalid, unsupported or multipage images return HTTP 400 unsupported_image. File bytes are uploaded to isGenAI, not processed only in the browser."
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "saved_only"
      ],
      "default": "auto",
      "description": "saved_only reads supported saved image records without a model call; no record returns HTTP 422. auto first reads image records, then may reconstruct a prompt when configured and within service limits. Reconstruction availability is not guaranteed."
    }
  }
}