{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opper/json-schema/opper-image-request-schema.json",
  "title": "ImageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opper-images-api-openapi.yml#/components/schemas/ImageRequest",
  "properties": {
    "aspect_ratio": {
      "type": "string"
    },
    "async": {
      "description": "Run generation on the background worker and return a job to poll (202) instead of waiting inline (200). Use for slow models. Single-image only.",
      "type": "boolean"
    },
    "image": {
      "type": "string"
    },
    "mask": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "n": {
      "type": "integer"
    },
    "parameters": {
      "type": "object"
    },
    "prompt": {
      "type": "string"
    },
    "quality": {
      "type": "string"
    },
    "reference_images": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "resolution": {
      "description": "Output-resolution tier for models that declare one (e.g. xAI 1k/2k). Separate axis from quality.",
      "type": "string"
    },
    "response_format": {
      "type": "string"
    },
    "size": {
      "type": "string"
    },
    "store": {
      "description": "Persist each generated image to /v3/files and return a reusable file_id per image. Defaults to false; set true to store.",
      "type": "boolean"
    }
  },
  "required": [
    "model",
    "prompt"
  ],
  "type": "object"
}