API reference

API reference

Every endpoint, with its parameters, a Python and a curl example, and the response it returns.

Base URL https://api.kaimei.ai. Authenticate every request with Authorization: Bearer km_live_…; see Authentication. Requests and responses are JSON, lists page with limit and offset, and every error shares one envelope; see pagination and Errors. Python examples use a client constructed as client = Kaimei(), which reads KAIMEI_API_KEY from the environment.

Agents

The routes a model's agent calls to take work and answer it, and the one that says whether an agent is connected.

Predictions

Log the predictions your models make, or read back the ones Kaimei made, for explanation and monitoring.

Explanations

Attributions for one input: why the model produced this output, and the smallest change that would flip it.

Analyses

Background studies of a whole model that write insights: importance, behaviour, interactions, robustness, drift, rules and performance.

Insights

The findings analyses write about a model, each with a summary, a severity and the numbers behind it.

Projects

Group models into projects and read the roll-ups across them: traffic, alerts and the inputs each model relies on.

API keys

Create, list and revoke the credentials your servers and notebooks use.

Service

Unauthenticated endpoints for health checks and discovery.