Get an API key
api.cloud

Quotas and plans

What each plan includes, how the ceilings are counted, and which refusal you get when one is reached. Read it before writing code that creates storages for other people.

4 plansper storage, not pooledread it at runtime
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

Four plans, three services, and one rule that explains every refusal: the ceiling belongs to a storage, not to the service. Everything below follows from that.

What a plan includes

PlanNoSQL DatabaseSQL DatabaseObject Storage
Free50 MB × 150 MB × 1100 MB × 1
Go500 MB × 2500 MB × 21 GB × 1
Starter1 GB × 21 GB × 22 GB × 1
Enterprise5 GB × 25 GB × 210 GB × 1

500 MB × 2 means two storages, each with its own 500 MB. The plan total is a gigabyte; the guarantee is 500 MB twice, and a write is judged against the second number.

One object storage, and it already exists

Asking for a second is a plan limit, not a fault

Every account is created with its own Object Storage, and that one is the one the plan allows. api.storage.create({ service: "object" }) therefore answers cloud_storage_limit — the storage you were about to make is the one you already have.

Hosting is counted here too

What a host keeps online is charged to the account's Object Storage: the same bytes against the same ceiling, reported as usage().object.hostingBytes. There is no separate hosting allowance to track.

PlanHosts
Freenone — host.create() answers hosting_not_in_plan
Go1
Starterup to 3
Enterpriseup to 10

Add-ons, and what they do to the ceilings

Add-onCoversCredits per GB per periodHeld at most
databaseNoSQL and SQL, as one pool100100 GB
objectObject Storage200100 GB

A period is 30 days. An add-on raises quotaBytes, never perBaseBytes: it is drawn on by whichever storage has passed its own ceiling, so it adds room where room is missing instead of moving a guarantee.

The three refusals, and what each one means

CodeStatusMeansWay out
cloud_storage_limit403The plan's count for that service is used up.Delete one, or change plan.
quota_exceeded403This write would pass a ceiling.Free space, or buy an add-on.
hosting_not_in_plan403The plan has no hosting.Change plan.

All three are refused before anything is written or charged, and all three name the plan in their message — so the text can be shown as it is.

Read the numbers, do not copy them

A copied table drifts; a read one cannot

Every figure on this page is in usage(): perBaseBytes, maxBases, quotaBytes, pricePerGb. Code that reads them keeps working when a plan changes, and an interface that shows them is never out of date.

const usage = await api.cloud.usage();

// What this plan gives, without a table of your own
for (const service of ["nosql", "sql", "object"]) {
  const s = usage[service];
  console.log(service, `${s.bases}/${s.maxBases} storages`, `${s.perBaseBytes} bytes each`);
}

// What a gigabyte would cost
console.log(usage.addons.pricePerGb);          // { database: 100, object: 200 }
usage = api.cloud.usage()

# What this plan gives, without a table of your own
for service in ("nosql", "sql", "object"):
    s = usage[service]
    print(service, f"{s['bases']}/{s['maxBases']} storages", f"{s['perBaseBytes']} bytes each")

# What a gigabyte would cost
print(usage["addons"]["pricePerGb"])   # {"database": 100, "object": 200}

Past a ceiling, reading and deleting still work

Only writing is refused. A full storage can be listed, read and emptied — which is the only way back under the ceiling that does not involve paying.