OhMyGPT
Models

Get recent model availability

GET
/v1/models/{creator}/{model}/availability

Answers whether the model works right now and when it had trouble over the last 72 hours, for the model as a whole and for each provider that served it. Counted the same way as /v1/models/{creator}/{model}/stats: overall counts every request for the model by the result the caller received, whoever chose the provider; each provider counts every upstream attempt it was sent. Only rates and minute counts are published.

Path Parameters

creator*string
model*string

Response Body

Successful response

application/json
  1. response
as_of*string
Formatdate-time
model_id*string
overall*

Every request for the model, whoever chose the provider.

providers*array<>

Providers with upstream attempts in the 72 hours, sorted by name.

Example Request
curl -X GET 'https://api.ohmygpt.com/v1/models/string/string/availability'
Example Response
{  "as_of": "2019-08-24T14:15:22Z",  "model_id": "string",  "overall": {    "affected_minutes": 0,    "hourly": [      {        "affected_minutes": 0,        "time": "2019-08-24T14:15:22Z",        "uptime_pct": 0      }    ],    "status": "operational",    "uptime_pct": 0  },  "providers": [    {      "affected_minutes": 0,      "hourly": [        {          "affected_minutes": 0,          "time": "2019-08-24T14:15:22Z",          "uptime_pct": 0        }      ],      "status": "operational",      "uptime_pct": 0,      "provider": "string"    }  ]}