OLLAMADB / API V1

Errors

Errors use a consistent JSON shape with a machine-readable code and a message.

400Bad request
A parameter is invalid. The message says which.
401Unauthorized
Missing, wrong, or revoked API key.
404Not found
The family or model does not exist.
429Too many requests
Wait for the Retry-After interval before retrying.
json
{
  "error": {
    "code": "invalid_api_key",
    "message": "Missing or invalid API key."
  }
}