Stay inside the Free Allowance #
On this page
Prompt:
Can this small app with a database run for free? Tell me what would make it cost more.
Yes, a small app with a shared database can fit within your account's Free Allowance. A server that stays awake all month, more storage or traffic, and paid extras can take the account over its Free Allowance.
Use this guide to compare the app's expected use with the current rates and what the account has left. When you ask for a "free plan", use the account's monthly Free Allowance as the shared budget for its applications and paid options; there is no free hosting plan or server size to select. An app that stays within it needs no card and does not expire.
Small projects may fit within your Free Allowance. The Static website and Small app examples in the calculator fit without the introduction bonus. A server that stays awake all month can exceed the Free Allowance. Other apps and paid options share the same Free Allowance.
A Shared 0.5 GB production server costs $5 if it stays awake all month. It costs less if it sleeps. A shared database costs $5 per app if you keep it for the full month, even while the server sleeps. Database storage costs $0.125 per GB for a month, and file storage costs $0.02 per GB for a month. These are separate charges before your Free Allowance. Use the calculator below to include data transfer and estimate the total.
Open Small app in the pricing calculator to see separate costs for a Shared 0.5 GB server, a shared database, database storage and file storage.
For a static website, open the pricing calculator. Static hosting has no server, per-request or file storage charge; data transfer still counts against the account's Free Allowance. A custom domain, where available, is a separate monthly item.
That applies to the files you deploy as part of the site. Files your app saves in a storage area are charged at the file storage rate.
Before your AI starts #
For the AI assistant: Check these prerequisites before estimating.
- Check that your connection is signed in to the account that will hold the app (Connect your AI assistant).
- Identify the existing app with
list_applications, or ask which proposed app to estimate. - Ask about expected use: how long production and development will stay awake, how much data and how many files will be stored, and what traffic, email and AI calls to expect. Mark unknowns explicitly.
- For an app that does not exist yet, read the
cost-estimateskill withread_context, idskill:cost-estimate. For a live app, readcost-reviewwithread_context, idskill:cost-review. This task reads and estimates; change settings or add services only when the person asks.
Steps #
For the AI assistant: Read and estimate without changing the application.
1. Read the current amount and rates #
Call read_balance for this UTC month's Free Allowance, what was drawn, what is left, the charged lines and any pause. Call read_rate_card for the current rates and units. The pricing page also lists them.
The line totals include usage recorded but not yet charged. The open_usd_micros field on each line shows that amount. Count it once when you estimate charges still to come.
Use these readings for the estimate. A rate marked unset is unknown, not zero. If a required reading fails or an amount is unset, report what could not be read and stop short of saying the app fits.
Each UTC month brings the account's Free Allowance, including the introduction bonus while it runs. Free Allowance is available in full in the month the account is created and does not roll over. Read the pricing page for the bonus's terms.
2. Count what the app will use #
For an existing app, read its size, production_sleep and development_at_size through read_status. These settings tell you whether production sleeps and which rate to use for development’s awake time. Read read_usage for measured quantities and its freshness information; recent activity may not be included yet. This read reports traffic, stored data and serverless function calls. It does not report server awake time. State awake time as a workload assumption rather than a measurement from this read.
| Item | What to count |
|---|---|
| Shared database | One monthly item for the app, covering production and development together. The daily run counts it even while the servers sleep. The bytes stored in the database are charged separately. |
| Production server | The seconds it is awake, each charged its share of the size's monthly rate. Divide awake seconds by the number of seconds in that actual UTC calendar month to estimate the share. Sleeping time draws nothing for that server. This awake-time rule is for shared production servers. A dedicated production server is charged by the day at its size's rate. |
| Development server | Its awake time as a separate line, at the Shared 0.5 GB rate by default or at production’s size rate when development_at_size is on. Development always sleeps when idle. |
| Database and file storage | A day's share for the bytes held. |
| Data transfer | Bytes sent to clients, downloaded from storage, and sent out through the egress gateway. |
| Other use | Email recipients, including sign-in codes emailed to the app's users; platform AI calls; and account options or images that draw the same balance. |
There is no charge for each request to an application server. Storage and data transfer are still charged. Calls to serverless functions are charged too: use the function-call rate on the rate card to estimate what your calls will cost.
A shared database, a custom domain once it has served, the 30-day log option and tzTrack AI reviews are monthly items. Each daily billing run charges one day’s share for the items it finds held. Removing an item stops new charges from the next run. Earlier charges stay.
Shared 0.5 GB starts with production sleeping when idle, which can reduce awake time. Shared 1 GB starts with production's sleep setting off; count its continuous awake time in the estimate. Development's use counts too. Before deciding whether production may sleep, read Start after idle and response time for the idle period and the next request's delay. Follow Size and usage for setting changes, and Add a database for database setup.
3. Compare the estimate with what is available #
Give two comparisons:
- A full month: count the full monthly rate for items held all month and a day’s share for each day other items are held. Add awake time, storage, transfer and other use across the account. Compare with its Free Allowance.
- The rest of this month: count only future charges across the account and compare them with the balance left. Leave out days already charged for the same item.
Read balance.left for the remaining allowance and balance.credit_left, when present, for the remaining credit.
State the workload assumptions, the date of the rate and balance reads, and what remains unknown. Leave room for activity above the estimate. A low traffic count alone does not establish that the app fits: an awake server and the database's monthly item can draw usage without client requests.
If the estimate does not fit, identify which items account for it and what lower usage or requested setting changes would alter the result. Do not create the app, add an option or change its settings merely to complete this estimate.
4. Check actual usage as the app runs #
Read read_balance again after the app has run and compare its charged lines with the estimate. Balance & usage on the signed-in site also shows the account's balance. Recheck when traffic, stored data, development use or options change.
Warning emails arrive at 50% and 80% used. They show how much of your Free Allowance you have used. While you have credit you can still use, they show how much of your allowance and credit together you have used. Your apps pause when you have used up your Free Allowance and have no live credit.
If your usage passes more than one warning level between checks, you may get one email for the highest level you reached.
A credit grant with credit left that has started and has not expired is live credit. A live operator's grant counts even while prepaid credit is not sold. The platform refuses requests to the app and stops deploy, promote, rollback, restart and resume. You can still read management information, change settings, run check_deploy, export data or request deletion. Balance and usage explains the pause.
A paused account resumes when it has Free Allowance available again or credit it can use. Daily charges can cause pauses. The renewed amount does not guarantee that the app will fit for the whole month.
To check that service is back, confirm state.paused is false on the same account with read_balance, use read_status to check the affected app and environment, and open a route that only reads data. If the environment is still stopped, check whether the owner stopped it separately.
Expected result #
Your AI assistant reports whether the expected use fits, with the current readings, assumptions and uncertain items beside its conclusion. It distinguishes the whole month's budget from the amount left now and names when to recheck. This is an estimate, not a guarantee of future use.
If it cannot establish that the app fits, it says why and what reading or workload decision is needed next. Prepaid credit is not yet sold; buying prepaid credit is not a recovery step.
Refusals #
This table covers common refusals from the task's reads. See the refusals reference for the full list.
| Refusal | Status | Cause | Remedy |
|---|---|---|---|
authentication_required |
401 | The connection presented no accepted credential. | Ask the person to sign in through the connected tool, then repeat the read. |
application_other_account |
403 | The app belongs to a different account from the connection's. | Compare read_account through the connection with the account that holds the app. Use that account's connection and an identifier from list_applications. |
no_such_application |
404 | The identifier names no live app. | Read list_applications again and use an identifier it returns. If the app was deleted, stop estimating it. |
token_scope_refused |
403 | The token's application scope does not allow this read. | Name the token's own app where the read accepts one, or use a signed-in account session or a token with the required reach. |
invalid_request |
400 | A read received an invalid or unsupported argument. | Correct the argument named in detail, using the action reference. |
context_not_found |
404 | The requested context identifier is not visible to the connection. | Follow the identifier, successor, member, or source the refusal gives. When it gives no route, call read_context without an id and copy a listed identifier. For docs, call read_documentation with the tree and part from its catalog entry. Use the tree's index for the page route. If the skill is absent, report that and stop. |
context_changed |
409 | The context changed while its chunks were being read. | Restart read_context at offset zero without a stamp, then continue with the new answer's stamp and next_offset. |
context_unavailable |
503 | The context source could not be read. | Retry later. If it persists, report the refusal and its detail; do not claim the required skill was read. |
Related #
- Size and usage covers usage readings, sleep settings, limits and pauses.
- Add a database covers the database's declaration and setup.
- Free Allowance explains the account's Free Allowance and the static website estimate.
- The action reference describes the balance, rate and usage reads.