{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/airouter/main/json-schema/airouter-post-v1-v1-id-request-schema.json",
  "title": "PostV1V1IdRequest",
  "x-generated": "2026-10-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/airouter-openapi-generated.yml#/components/schemas/PostV1V1IdRequest",
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      }
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "weighting": {
      "type": "object",
      "properties": {
        "costs": {
          "type": "number"
        },
        "latency": {
          "type": "number"
        },
        "quality": {
          "type": "number"
        }
      }
    },
    "max_tokens": {
      "type": "integer"
    },
    "tools": {
      "type": "boolean"
    }
  }
}