Plans and limits
Read the current plan, model quota and prediction allowance from the API.
Read current plans
The pricing and limits are available without authentication. The SDKs have no plan-catalogue method, so the Python and JavaScript tabs use their standard HTTP clients for this public read.
import json
from urllib.request import urlopen
with urlopen("https://api.spavik.co/v1/plans") as response:
print(json.load(response))The plans are free, build, pro, growth and enterprise. Each one lists
its price, monthly allowance and limits: active models (max_models), rows per
prediction (max_predict_rows), context rows (max_context_rows) and feature
columns (max_feature_columns, target excluded). Context rows are learned from
a sample when a table is larger; feature columns are refused beyond the limit
with 400 TOO_MANY_COLUMNS. Read
that response for current values instead of hardcoding a pricing table in your
integration. The Free plan includes 100 predictions a month, reset on the
first of each calendar month at 00:00 UTC, with no sign-up credits. It allows
one active model, 1,000 context rows, 30 feature columns and 1,000 rows per
prediction. Paid plans reset on their subscription cycle. Check usage for the
available balance.
With one active model on Free, archive or delete a model before training
another one, or change auto_update on the existing model with
PATCH /v1/models/{id}.
Active-model limits
The limit applies across the account's workspaces. Archiving stops serving a model and frees its slot while keeping its artifacts. Restoring takes a slot again and can fail when the quota is full. Permanent deletion is a separate, irreversible API operation.
model.archive()
spavik.restore(model.id)QUOTA_MODELS_EXCEEDED means the plan has no active-model slot left. Choose a
model to archive or change the plan before trying to create another model.
Consumption
Predictions and forecasts consume credits; the other operations are free. See Costs and credits for the billing rule. The monthly allowance and the credit balance both count toward the available predictions.
usage = spavik.usage()
print(usage["predictions_remaining"])predictions_remaining reports available credit units. In this usage response,
an explicit null means there is no enforced prediction-credit limit; the
current API applies this to Enterprise. An absent field does not establish
availability, and included_units_per_month: null has a different meaning:
the plan has no monthly allowance configured, which does not make it unlimited.
On a plan with a monthly allowance, credit_balance alone is not the full
available amount. See Costs and credits for balance snapshots and SDK values.
Retries
Model quota and credit exhaustion require a change in account state, not a retry loop. For other retries, see API conventions.
How is this guide?
Last updated on