{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-get-company-model-pricing-response-schema.json",
  "title": "GetCompanyModelPricingResponse",
  "description": "Response containing the company's custom model pricing.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-ai-applications-service-api-openapi.yml#/components/schemas/GetCompanyModelPricingResponse",
  "type": "object",
  "properties": {
    "pricing": {
      "allOf": [
        {
          "$ref": "#/$defs/CompanyModelPricing"
        }
      ],
      "description": "The company's custom model pricing."
    }
  },
  "$defs": {
    "CompanyModelPricing": {
      "type": "object",
      "properties": {
        "companyId": {
          "maxLength": 256,
          "minLength": 1,
          "pattern": "^[\\s\\S]+$",
          "type": "string",
          "description": "Company identifier."
        },
        "id": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
          "type": "string",
          "description": "Unique identifier of the pricing record."
        },
        "prices": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ModelPrice"
          },
          "description": "Map of model name to custom price. Replaces all existing prices on set."
        }
      },
      "description": "Company-wide custom model pricing configuration."
    },
    "ModelPrice": {
      "type": "object",
      "properties": {
        "cacheReadPricePerMillionTokens": {
          "type": "number",
          "description": "Cache read token price per one million tokens (USD).",
          "format": "double"
        },
        "cacheWritePricePerMillionTokens": {
          "type": "number",
          "description": "Cache write token price per one million tokens (USD).",
          "format": "double"
        },
        "inputPricePerMillionTokens": {
          "type": "number",
          "description": "Input token price per one million tokens (USD).",
          "format": "double"
        },
        "outputPricePerMillionTokens": {
          "type": "number",
          "description": "Output token price per one million tokens (USD).",
          "format": "double"
        }
      },
      "description": "Custom price for a single model, per one million tokens (USD)."
    }
  }
}