Skip to content
Docs
Join the API waitlist

Limits and usage

Check whether your table fits before uploading it, and understand which requests count against your allowance.
On this page

Request limits

For api.nums.world · Verified . Other deployments may differ.

Limits and usage: table 1
LimitMaximumApplies to
max_rows300,000Rows across context and query
max_features4,095Feature columns, excluding the target
max_cells60,000,000Cells in one request
max_classes64Target classes for classification
max_request_bytes1 GiBRequest size (1,073,741,824 bytes)
max_response_bytes512 MiBResponse size (536,870,912 bytes)

All limits apply together; the maximum row and feature counts cannot necessarily be used in the same request.

Check the latest values

Limits can change. Query GET /v1/limits to check the current values. No API key is required.

Read current request limitsBASH
curl --fail --silent --show-error https://api.nums.world/v1/limits

Account allowance

Your account gets a one-off allowance of 20,000,000 cells when it is created. It is usable for twelve months and does not reset; cells given to the account later are also usable for a year, and the earliest to expire are used first. Your account also has limits on requests per minute and per hour, and an owner can set monthly cell limits for a workspace or a member, which reset on the first of the month. Use your API key with GET https://api.nums.world/v1/usage to check usage and every allowance for that credential. A response that was charged also carries metadata.quota: the one cap that will stop this credential first, with what is used and, for a monthly limit, when it resets. A response that was not charged has no quota. When the allowance runs out the service answers 429 with scope: allowance, which does not reset; write to api@nums.world for more cells. When a monthly limit runs out it answers 429 until the first of the month. Nothing is invoiced and there is no overage.

Asking about your own table

GET https://api.nums.world/v1/estimate tells you whether a table of your shape will be accepted. It needs no key, uploads nothing and runs the same size and time checks as admission control, so a shape it refuses would be refused for the same reason. It does not know what else the GPU is doing: a shape it accepts can still be answered 503 unavailable when the work already waiting would outlast the request's wait. Add n_estimators to ask about a narrower ensemble; the answer says which width it was worked out for.

TerminalBASH
curl 'https://api.nums.world/v1/estimate?n_context=300000&n_query=1000&n_features=10'
JSON
{
  "accepted": false,
  "cells": 3010000,
  "counts_against_allowance": 3010000,
  "estimated_seconds": 99.1,
  "model": "causilo-clf",
  "deadline_s": 300.0,
  "max_context_rows": 299000,
  "code": "request_too_large",
  "reason": "301,000 rows is over the 300,000 row limit."
}

Everything in the answer except the cell count, which is exact, is a prediction from a fitted model. max_context_rows is the number of context rows that fit at your column count, which is the figure a refusal would have named. When a shape is refused, reason gives the same explanation the refusal would give.

How requests are counted

A cell is one value in a table you send, counting the context and query rows together and excluding the target column. A request that names a stored context is counted for the context rows as well, because storing a context saves the upload and not the cells.

A request refused before it runs, whether by validation, a limit or a rate limit, uses no cells, and neither does one whose response is too large to return. The request rate counts POST /v1/predict calls made with an API key. A call the service reads and then refuses for its tables still counts towards the requests per minute and per hour. One refused by the rate limit itself does not, and neither does one the front door refuses before passing it on: a body over the size limit or empty (413 payload_too_large, 400 empty_body), or a 429 for a window or allowance already spent.

A request that ran and whose answer could not be read is the 502 described under Errors. Where the service still holds its charge, the cells come back and the problem says retryable: true; otherwise they may stand. A request stopped at its deadline, the 504, is not counted, unless its answer could not be read while it waited: then it is counted if it ran, and the detail says so.

You can give up on a request with POST /v1/cancel and the X-Causilo-Cancel-Key it carried, or by closing the connection. Before its prediction starts it is not run and its cells come back. Once it has started it runs to the end and is counted, and its answer is deleted rather than kept, so nobody can read it later. The Python client sends a fresh cancel key with every attempt and cancels by itself when its own timeout passes. It then raises CausiloTimeout, whose refunded says how many cells came back: 0 when the run had started, None when the server could not tell or the cancel could not be delivered, in which case the charge may stand. It does not retry, since a retry would be counted again, so give it a timeout long enough to read the answer.

Sending more than one call at a time

The rate limits are not a parallelism budget. Calls beyond what the service is running at the moment wait for the GPU, and the time spent waiting appears as latency. Waiting calls are not taken strictly in arrival order: shorter predicted runs go first, but being passed delays a call by about 60 seconds at most, plus the run of the last call that passes it, so none waits indefinitely. A call is not refused for being concurrent; it is refused with 503 unavailable, and nothing is charged, when the work already ahead of it would outlast its wait.

Sending calls in parallel helps when tables are small and makes little difference when they are large, because large calls wait for the same GPU. Many small queries against one table are faster as a single call with more query rows than as many calls.

A large table also delays the calls waiting behind it, since it holds the GPU for as long as it runs. Where latency matters, keep tables small and store the context instead of sending it again.

elapsed_s in the response measures the prediction alone and excludes the time the call spent queued, so a client measuring wall-clock time will see a larger number. The difference is the time spent waiting for the GPU together with the upload, the download and the network round trip.

Cell accounting and recovery

Cell cost: (n_context + n_query) * n_features. Feature columns exclude the target. Reusing a stored context still counts its rows; the saving is the upload.

ConditionStatusCells chargedNext action
Refused before work starts
validation_failed, request_too_large, rate_limited
422, 413, 4290 cellsFollow the error code and retryable flag
Response cannot be returned
response_too_large
4130 cellsDo not retry the same request
Work ran; answer could not be read, charge not given back
upstream_unavailable
502Full request cells, unless given back laterDo not retry the same request
Work ran; answer could not be read, charge given back
upstream_unavailable
5020 cellsRetry
Stopped at the request deadline
timeout
5040 cellsDo not retry the same request
Wait ended while the answer could not be read
timeout
504Full request cells, if it ranDo not retry the same request
Required store unavailable before work
upstream_unavailable
5030 cellsRetry
You stop waiting for a started request
Client exception: CausiloTimeout
Client timeoutFull request cellsDo not retry the same request
You cancel or hang up before the request starts
Client exception: CausiloTimeout
Client timeout0 cellsDo not retry the same request

Give up on a request with POST /v1/cancel and the X-Causilo-Cancel-Key it carried, or by closing the connection. Before its prediction starts it is not run and its cells come back; once started it runs to the end and is counted, and its answer is not kept. The Python client cancels by itself when its own timeout passes and reports the cells that came back in CausiloTimeout.refunded.

The request rate counts POST /v1/predict calls made with an API key. A call the service reads and then refuses for its tables still counts. One refused by the rate limit itself does not, and neither does one the front door refuses before passing it on: a body over the size limit or empty, or a 429 for a window or allowance already spent.

Limits and usage: table 3
MeasurementUnitIncludes the queue
metadata.elapsed_ssecondsNo
Client wall-clock timesecondsYes

Client wall-clock time also includes the upload, the download and the network round trip.