Home / Docs / API reference

/public/models

GET /public/models

Authentication public, no credential

Response

FieldTypeDescription
floor requiredinteger
models requiredarray of object
models[].provider requiredstring
models[].model requiredstringThe model id. In a request it is optional: without it the key's routing chooses.
models[].familystring or null
models[].contextWindowinteger or null
models[].priceInputPerMillionUsdnumber or null
models[].priceOutputPerMillionUsdnumber or null
models[].partner requiredboolean
Example response (shape)
{
  "floor": 0,
  "models": [
    {
      "provider": "<provider>",
      "model": "provider/model-id",
      "family": "<family>",
      "contextWindow": "<contextWindow>",
      "priceInputPerMillionUsd": "<priceInputPerMillionUsd>",
      "priceOutputPerMillionUsd": "<priceOutputPerMillionUsd>",
      "partner": false
    }
  ]
}
Full schema (JSON)

Response schema

{
  "description": "No credential. 404 when the public pages are switched off. `floor` is the k-floor: a figure backed by fewer calls is null, never a small number.",
  "type": "object",
  "required": [
    "floor",
    "models"
  ],
  "properties": {
    "floor": {
      "type": "integer"
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "provider",
          "model",
          "partner"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "family": {
            "type": [
              "string",
              "null"
            ]
          },
          "contextWindow": {
            "type": [
              "integer",
              "null"
            ]
          },
          "priceInputPerMillionUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "priceOutputPerMillionUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "partner": {
            "type": "boolean"
          }
        }
      }
    }
  }
}