Home / Docs / API reference

/public/models/{provider}/{model}

GET /public/models/{provider}/{model}

Authentication public, no credential

Path parameters

provider requiredstring
model requiredstring

Response

FieldTypeDescription
provider requiredstring
model requiredstringThe model id. In a request it is optional: without it the key's routing chooses.
familystring or null
contextWindowinteger or null
priceInputPerMillionUsdnumber or null
priceOutputPerMillionUsdnumber or null
partner requiredboolean
latencyobject
latency.p50Msnumber or null
latency.p95Msnumber or null
latency.windowstring Always "24h".
uptimeobject
uptime.5mnull
uptime.30mnull
uptime.1dnumber or null
floorinteger
Example response (shape)
{
  "provider": "<provider>",
  "model": "provider/model-id",
  "family": "<family>",
  "contextWindow": "<contextWindow>",
  "priceInputPerMillionUsd": "<priceInputPerMillionUsd>",
  "priceOutputPerMillionUsd": "<priceOutputPerMillionUsd>",
  "partner": false,
  "latency": {
    "p50Ms": "<p50Ms>",
    "p95Ms": "<p95Ms>",
    "window": "24h"
  },
  "uptime": {
    "5m": null,
    "30m": null,
    "1d": "<1d>"
  },
  "floor": 0
}
Full schema (JSON)

Response schema

{
  "description": "404 {error:not_found} for a name the catalogue and the partner listing do not know. Latency and uptime are null below the k-floor.",
  "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"
    },
    "latency": {
      "type": "object",
      "properties": {
        "p50Ms": {
          "type": [
            "number",
            "null"
          ]
        },
        "p95Ms": {
          "type": [
            "number",
            "null"
          ]
        },
        "window": {
          "const": "24h"
        }
      }
    },
    "uptime": {
      "type": "object",
      "properties": {
        "5m": {
          "type": "null"
        },
        "30m": {
          "type": "null"
        },
        "1d": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "floor": {
      "type": "integer"
    }
  }
}