QPS Limit
curl --request GET \
--url https://text.external-api.pangram.com/limits \
--header 'x-api-key: <api-key>'import requests
url = "https://text.external-api.pangram.com/limits"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"qps_limit": {}
}Account APIs
QPS Limit
Read the billing account’s configured inference requests-per-second limit
GET
/
limits
QPS Limit
curl --request GET \
--url https://text.external-api.pangram.com/limits \
--header 'x-api-key: <api-key>'import requests
url = "https://text.external-api.pangram.com/limits"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"qps_limit": {}
}Read the configured inference QPS (requests per second) limit for your key’s billing account. Keys on the same account share this limit for each metered endpoint.
This read works with zero or negative balances. It does not spend credits or consume inference QPS. Responses use
This value describes the account’s configured inference rate.
Cache-Control: no-store.
Examples
curl https://text.external-api.pangram.com/limits \
--header "x-api-key: $PANGRAM_API_KEY"
from pangram import Pangram
client = Pangram() # Reads PANGRAM_API_KEY.
limits = client.get_limits()
Response
{"qps_limit": 2.5}
Configured inference QPS limit. Fractional values are preserved.
null means no account QPS limit is configured; other service capacity and protection limits still apply.Read limits and errors
This route shares the independent account-read budget with balance and usage calls. The read budget is separate from the inference QPS value returned here. RespectRetry-After on 429.
| Status | Meaning |
|---|---|
401 | Missing, malformed, revoked, inactive, or otherwise invalid key/account. |
429 | Account-read rate or concurrency limit; observe Retry-After. |
503 | Account lookup unavailable or timed out; retry the read later. |