{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT input_price_per_token, output_price_per_token\n            FROM model_tariffs\n            WHERE deployed_model_id = $1\n              AND api_key_purpose = $2\n              AND valid_from <= $3\n              AND (valid_until IS NULL OR valid_until > $3)\n              AND ($4::VARCHAR IS NULL OR completion_window = $4 OR api_key_purpose != 'batch')\n            ORDER BY valid_from DESC\n            LIMIT 1\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "input_price_per_token",
        "type_info": "Numeric"
      },
      {
        "ordinal": 1,
        "name": "output_price_per_token",
        "type_info": "Numeric"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "Timestamptz",
        "Varchar"
      ]
    },
    "nullable": [
      false,
      false
    ]
  },
  "hash": "577836758f713f3b932056f6b718ad1a896390aaac0942977de35a5f616dd959"
}
