{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trymorse-ai/json-schema/trymorse-ai-model-with-tiers-schema.json",
  "title": "ModelWithTiers",
  "description": "A model, listed once. The fields at the top describe the weights. Each row of tiers is the model at one privacy tier, with the price and limits it is sold at there. A tier with no price is not listed. The plan and included fields describe the Morse app. They do not apply to API keys, which always pay with credits.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trymorse-ai-openapi.json#/components/schemas/ModelWithTiers",
  "type": "object",
  "required": [
    "id",
    "object",
    "created",
    "owned_by",
    "type",
    "tiers"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The model's id."
    },
    "object": {
      "const": "model"
    },
    "created": {
      "type": "integer",
      "description": "Always 0."
    },
    "owned_by": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "chat",
        "image",
        "video",
        "search",
        "fetch",
        "research",
        "transcription",
        "speech"
      ],
      "description": "The endpoint that serves the model, as for a model in the aliases shape."
    },
    "label": {
      "type": "string"
    },
    "input_modalities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Absent when the model reads text only."
    },
    "reasoning_efforts": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "none",
          "minimal",
          "low",
          "medium",
          "high",
          "xhigh",
          "max"
        ]
      },
      "description": "On every chat model: the efforts it takes, lowest first. Empty when it takes none."
    },
    "always_reasons": {
      "const": true,
      "description": "True on a chat model that reasons on every request and takes no effort, whose reasoning_efforts is empty. Absent on every other model."
    },
    "tools": {
      "const": false,
      "description": "False on a chat model served without tools. An API key's request that lets it call a tool (tools, or a tool_choice that calls one, with a tool_choice other than none) is refused with 400 unsupported_parameter naming tools; any other request reaches the host with no tools, tool_choice, or parallel_tool_calls. Absent on every model that takes tools."
    },
    "characters": {
      "const": false,
      "description": "False on a chat model kept out of character chats. A chat that plays a character on it, one that sends X-Character or a character's prompt, is refused with 400 model_unsupported_for_characters before Morse calls the model or holds any credit. Absent on every model that takes character chats."
    },
    "tiers": {
      "type": "array",
      "description": "The tiers the model is sold at, from the least private to the most. Each tier appears once, whichever providers serve it.",
      "items": {
        "$ref": "#/$defs/ModelTier"
      }
    }
  },
  "$defs": {
    "ModelTier": {
      "type": "object",
      "required": [
        "tier",
        "price"
      ],
      "description": "A model at one privacy tier. Its limits are those a request at the tier is held to. A backup provider with a smaller window of its own serves only the chats that fit it and never changes them. Where the tier's main providers differ, a limit is the widest of theirs. Retention is the least private of the tier's providers. A row never names a provider.",
      "properties": {
        "tier": {
          "type": "string",
          "enum": [
            "anon",
            "private",
            "tee",
            "e2ee"
          ],
          "description": "The privacy tier. anon reaches the vendor without your identity, private runs on a provider with zero data retention, tee runs on attested hardware, and e2ee also encrypts the messages to that hardware."
        },
        "retention": {
          "type": "string",
          "enum": [
            "vendor",
            "zdr"
          ]
        },
        "attesters": {
          "type": "array",
          "description": "On a tee or e2ee row: the vendors whose attestation proves the tier. On an e2ee row each also gives the model a sealed body carries.",
          "items": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "sealed_model": {
                "type": "string"
              }
            }
          }
        },
        "quantizations": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "int4",
              "int8",
              "fp4",
              "mxfp4",
              "nvfp4",
              "fp6",
              "fp8",
              "mxfp8",
              "fp16",
              "bf16",
              "fp32",
              "unknown"
            ]
          },
          "description": "On a chat row: the precisions the tier's providers publish for the weights, in OpenRouter's names and order: integers, then floats, each fewest bits first, and unknown last. unknown is a provider that publishes none. The list counts every provider a chat at the tier may run on, backups and e2ee fallbacks included, and names none of them. provider.quantizations chooses among these."
        },
        "context_tokens": {
          "type": "integer"
        },
        "max_output_tokens": {
          "type": "integer",
          "description": "The most output tokens a request served at this tier may produce. A request asking more gets this many below e2ee and is refused with e2ee_output_limit_refused at e2ee."
        },
        "compact_at_tokens": {
          "type": "integer"
        },
        "input_modalities": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "What a chat at this tier reads, present only when it differs from the model's input_modalities: [\"text\"] on a text-only tier of a model that reads images. A client offers the row's value when it has one and the model's otherwise."
        },
        "reasoning_efforts": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "none",
              "minimal",
              "low",
              "medium",
              "high",
              "xhigh",
              "max"
            ]
          },
          "description": "The efforts a chat at this tier takes, lowest first, present only when they differ from the model's reasoning_efforts. A client offers the row's value when it has one and the model's otherwise."
        },
        "default_reasoning_effort": {
          "type": "string",
          "description": "The effort a chat gets when it sets none. Absent when the vendor chooses."
        },
        "plan": {
          "type": "string",
          "description": "The lowest plan the Morse app lists the model under."
        },
        "requires_plan": {
          "type": "string",
          "description": "The lowest plan that may call the model in the Morse app. It does not apply to API keys."
        },
        "included": {
          "type": "object",
          "description": "What plans include in the Morse app. It does not apply to API keys."
        },
        "price": {
          "type": "object",
          "description": "What you pay at this tier, in micro-dollars. 10,000 micros are one credit, which is $0.01. An API key pays the vendor's list price, and a Morse app login pays it at the model's markup. A chat model lists its prompt and completion price per million tokens, an image model its price per image and per reference image, and a search, fetch, research, or transcription model its flat price per call.",
          "properties": {
            "prompt_micros_per_mtok": {
              "type": "integer"
            },
            "completion_micros_per_mtok": {
              "type": "integer"
            },
            "min_hold_micros": {
              "type": "integer"
            },
            "micros_per_image": {
              "type": "integer"
            },
            "micros_per_reference": {
              "type": "integer"
            },
            "micros_per_second": {
              "type": "integer"
            },
            "micros_per_call": {
              "type": "integer"
            }
          }
        }
      }
    }
  }
}