{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meetkuro-com/json-schema/meetkuro-com-image-request-schema.json",
  "title": "ImageRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meetkuro-com-openapi.json#/components/schemas/ImageRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "image"
      ]
    },
    "prompt": {
      "type": "string",
      "maxLength": 2000,
      "default": ""
    },
    "model": {
      "type": "string",
      "maxLength": 80,
      "description": "Defaults to the server's default image model."
    },
    "aspect_ratio": {
      "type": "string",
      "maxLength": 12,
      "description": "Such as \"9:16\", \"1:1\" or \"16:9\". Defaults to 9:16, snapped to what the model offers."
    },
    "setting": {
      "type": "string",
      "maxLength": 40,
      "description": "The model's one extra setting (`setting` on `GET /v1/models/{id}`), such as its quality."
    },
    "references": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaReference"
      },
      "maxItems": 16,
      "description": "Pictures the model can see. The model's `max_reference_images` applies."
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 120
      },
      "maxItems": 4,
      "description": "Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them."
    },
    "runs_on": {
      "type": "string",
      "maxLength": 40,
      "description": "Who pays: \"credits\", or the vendor of one of your own keys (\"replicate\", \"fal\", …). Leave out to follow the payer order set in Settings → Agents."
    },
    "webhook_url": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri",
      "description": "Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description."
    }
  },
  "required": [
    "type"
  ],
  "$defs": {
    "MediaReference": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "upload"
              ]
            },
            "upload_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "type",
            "upload_id"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "generation"
              ]
            },
            "generation_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "type",
            "generation_id"
          ]
        }
      ],
      "description": "A picture, clip or sound you already have in Kuro."
    }
  }
}