Home / Docs / API reference
/public/models
GET /public/models
Authentication public, no credential
Response
| Field | Type | Description |
|---|---|---|
floor required | integer | |
models required | array of object | |
models[].provider required | string | |
models[].model required | string | The model id. In a request it is optional: without it the key's routing chooses. |
models[].family | string or null | |
models[].contextWindow | integer or null | |
models[].priceInputPerMillionUsd | number or null | |
models[].priceOutputPerMillionUsd | number or null | |
models[].partner required | boolean |
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"
}
}
}
}
}
}