{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://atlas.local/schemas/price.schema.json",
  "title": "Atlas price record",
  "type": "object",
  "required": [
    "provider",
    "model_or_service",
    "dimension",
    "currency",
    "unit"
  ],
  "properties": {
    "provider": {
      "enum": [
        "openai",
        "anthropic",
        "xai",
        "gemini"
      ]
    },
    "model_or_service": {
      "type": "string"
    },
    "dimension": {
      "type": "string",
      "description": "input | cached_input | cache_write_5m | cache_write_1h | output | audio_input | audio_output | image_input | image_output | video_output | per_call | per_search | storage_gb_day | container_hour | training_token | inference_input | ..."
    },
    "tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "standard | batch | priority | flex | fast | long_context | null"
    },
    "price": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "currency": {
      "type": "string"
    },
    "unit": {
      "type": "string",
      "description": "per 1M tokens | per 1K tokens | per image | per second | per minute | per call | per 1K calls | per GB per day | per hour | per session"
    },
    "effective_notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "object",
        "array"
      ]
    },
    "retrieved_at": {
      "type": "string"
    }
  }
}
