List rate
Reads the per-minute limit as it governs the organization the caller acts in: the model requests one person may make in a minute on every surface — the API, chat, coding runs, bots and MCP — the platform's default, which is the most the organization may set, and the organization's own setting.
GET /v1/ai/limits/rate
| Address | https://api.hanzo.ai/v1/ai/limits/rate |
| Method | GET |
| Operation | aiRateLimit |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Reads the per-minute limit as it governs the organization the caller acts in: the model requests one person may make in a minute on every surface — the API, chat, coding runs, bots and MCP — the platform's default, which is the most the organization may set, and the organization's own setting. Any member may read it.
Request
GET /v1/ai/limits/rate takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | aiRate | ok |
default | problem-details | refused |
200 body — 4 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
default | body | integer (int64) | — | Default is the platform's requests a minute, the most the organization may set. |
org | body | string | — | Org is the organization. |
own | body | integer (int64) | — | Own is the organization's own setting, 0 when it holds its people to the default. |
rpm | body | integer (int64) | — | Rpm is the model requests a minute one person may make acting in it now: its own setting where it set less than the default, else the default. |
Failure carries the platform error shape — see Errors.
Examples
hanzo ai limits rate getimport { Configuration, AiApi } from 'hanzoai';
const api = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.aiRateLimit();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AiApi(client).ai_rate_limit()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.AiAPI.AiRateLimit(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, ai_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = ai_api::ai_rate_limit(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AiApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new AiApi(client).aiRateLimit();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/ai/limits/rate \
-H "Authorization: Bearer $HANZO_API_KEY"Tool ai, op aiRateLimit — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ai",
"arguments": {
"op": "aiRateLimit",
"input": {}
}
}
}'