{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-image-search-request-schema.json",
  "title": "ImageSearchRequest",
  "description": "Image search request.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-images-api-openapi.yml#/components/schemas/ImageSearchRequest",
  "properties": {
    "objective": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Objective",
      "description": "Natural-language description of the images wanted. Used together with search_queries to focus results on the most relevant images. At most 5000 characters."
    },
    "search_queries": {
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "type": "array",
      "title": "Search Queries",
      "description": "Concise keyword image search queries. At least one query is required. Only the first 3 are used, and each can be at most 200 characters."
    },
    "mode": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "fast",
            "advanced"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Mode",
      "description": "`fast`: lowest latency and cost. `advanced` (default): slower, with higher-quality results."
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id",
      "description": "Session identifier that groups related calls made as part of a larger task. Echoed back in the response when nonempty; generated by the server if omitted, null, or empty."
    },
    "client_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Model",
      "description": "The model generating this request and consuming the results."
    },
    "advanced_settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/AdvancedImageSearchSettings"
        },
        {
          "type": "null"
        }
      ],
      "description": "Advanced configuration for location and result count."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "search_queries"
  ],
  "$defs": {
    "AdvancedImageSearchSettings": {
      "properties": {
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location",
          "description": "ISO 3166-1 alpha-2 country code for geo-targeted image results."
        },
        "max_results": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Results",
          "description": "Upper bound on the number of results to return. Defaults to 10 if not provided. Values above the mode's maximum are reduced to it, with a warning."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "AdvancedImageSearchSettings",
      "description": "Advanced image search configuration."
    }
  }
}