{
  "contract_version": "1",
  "model_id": "debata-ai/qwen-image/high",
  "schema_version": "1.0.0",
  "capabilities": {
    "operations": [
      "text-to-image"
    ],
    "output": {
      "kind": "image",
      "mime_types": [
        "image/png"
      ],
      "default_mime_type": "image/png",
      "format_restrictions": {}
    },
    "num_outputs": {
      "minimum": 1,
      "maximum": 1,
      "default": 1
    },
    "supports_negative_prompt": true,
    "seed_incompatible_with": [
      "debata-ai/qwen-image/fast"
    ],
    "deployed": true
  },
  "model_input_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "prompt"
    ],
    "additionalProperties": false,
    "properties": {
      "prompt": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2000,
        "description": "Text description of the image to generate."
      },
      "steps": {
        "type": "integer",
        "minimum": 20,
        "maximum": 60,
        "default": 40,
        "description": "Inference steps. More is slower, and past the model's sweet spot not better."
      },
      "image_size": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "landscape_16_9",
              "portrait_16_9",
              "square_hd"
            ],
            "title": "Named format",
            "description": "A preset name resolved to exact dimensions declared by this model."
          },
          {
            "type": "object",
            "title": "Custom dimensions",
            "required": [
              "width",
              "height"
            ],
            "additionalProperties": false,
            "properties": {
              "width": {
                "type": "integer",
                "minimum": 512,
                "maximum": 1536,
                "multipleOf": 16
              },
              "height": {
                "type": "integer",
                "minimum": 512,
                "maximum": 1536,
                "multipleOf": 16
              }
            },
            "x-debata-maximum-pixels": 1048576
          }
        ],
        "default": "landscape_16_9",
        "description": "Output canvas. Prompt wording never sets dimensions; this field does."
      },
      "seed": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9223372036854775807,
        "description": "Omit for a random seed. The same seed and prompt reproduce the same image ON THIS MODEL ID AND VERSION only."
      },
      "negative_prompt": {
        "type": "string",
        "maxLength": 2000,
        "description": "What to steer away from."
      }
    }
  },
  "request_envelope_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "model"
    ],
    "additionalProperties": false,
    "properties": {
      "api_version": {
        "type": "string",
        "enum": [
          "v1"
        ],
        "default": "v1"
      },
      "model": {
        "type": "string",
        "description": "Canonical model id. Legacy flat ids are accepted as deprecated aliases."
      },
      "schema_version": {
        "type": "string",
        "description": "Optional. The contract schema_version the caller built against."
      },
      "schema_hash": {
        "type": "string",
        "pattern": "^sha256:[0-9a-f]{64}$",
        "description": "Optional. If present, the server verifies it against the model's current contract and refuses on mismatch - stale-client protection, not an authentication feature. Ordinary API callers simply omit it."
      },
      "delivery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "inline",
              "hosted"
            ],
            "default": "inline",
            "description": "Service-controlled result delivery only."
          }
        }
      }
    }
  },
  "output_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "ok",
      "status",
      "request_id",
      "image_size",
      "metadata"
    ],
    "properties": {
      "ok": {
        "const": true
      },
      "status": {
        "const": "COMPLETED"
      },
      "request_id": {
        "type": "string"
      },
      "image_size": {
        "type": "object",
        "required": [
          "preset",
          "width",
          "height"
        ],
        "properties": {
          "preset": {
            "type": [
              "string",
              "null"
            ]
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      },
      "delivery": {
        "type": "object"
      },
      "metadata": {
        "type": "object"
      },
      "cost": {
        "type": "object"
      },
      "warnings": {
        "type": "array"
      }
    }
  },
  "defaults": {
    "steps": 40,
    "image_size": "landscape_16_9"
  },
  "ui_schema": {
    "order": [
      "prompt",
      "negative_prompt",
      "image_size",
      "steps",
      "seed"
    ],
    "groups": {
      "basic": [
        "prompt",
        "image_size"
      ],
      "advanced": [
        "negative_prompt",
        "steps",
        "seed"
      ]
    },
    "widgets": {
      "prompt": "prompt",
      "image_size": "aspect_preset",
      "steps": "slider",
      "seed": "seed",
      "negative_prompt": "prompt"
    },
    "conditions": {},
    "api_only": [],
    "descriptions": {}
  },
  "aspect_ratios": {
    "default": "landscape_16_9",
    "presets": {
      "landscape_16_9": {
        "width": 1280,
        "height": 720
      },
      "portrait_16_9": {
        "width": 720,
        "height": 1280
      },
      "square_hd": {
        "width": 1024,
        "height": 1024
      }
    },
    "supported_presets": [
      "landscape_16_9",
      "portrait_16_9",
      "square_hd"
    ],
    "allow_custom": true,
    "constraints": {
      "minimum_edge": 512,
      "maximum_edge": 1536,
      "maximum_pixels": 1048576,
      "dimension_multiple": 16
    },
    "recognised_presets": [
      "square",
      "square_hd",
      "portrait_4_3",
      "portrait_16_9",
      "landscape_4_3",
      "landscape_16_9",
      "auto"
    ]
  },
  "billing": {
    "status": "unavailable",
    "estimator": null,
    "display": "Pricing unavailable"
  },
  "execution": {
    "measured_seconds": {
      "1344x768": 24.473
    }
  },
  "recognised_presets": [
    "square",
    "square_hd",
    "portrait_4_3",
    "portrait_16_9",
    "landscape_4_3",
    "landscape_16_9",
    "auto"
  ],
  "schema_hash": "sha256:6929baa6c62e6f9a8a9c65d9b506a18c75726a3da9af501c4d9889f13b78289d"
}
