{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grokzilla-shop/json-schema/grokzilla-shop-llm-cost-quote-request-schema.json",
  "title": "LlmCostQuoteRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grokzilla-shop-openapi.json#/components/schemas/LlmCostQuoteRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 400000
    },
    "input_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "output_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000,
      "default": 500
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 120
      },
      "maxItems": 25
    },
    "top": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 10
    },
    "include_free": {
      "type": "boolean",
      "default": false
    },
    "request_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9._:-]+$",
      "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
    }
  }
}