CoAI Sandbox has no plan and no monthly fee: you pay for the time your sandboxes run, from the credit balance of your CoAI Host account (the same balance as in "Add Funds and account credit").
Prices
Each sandbox is charged from the moment it is running until it ends, per millisecond, with a minimum of one second, by the vCPUs and memory of its template:
| Price (USD, excluding taxes) | |
|---|---|
| vCPU | $0.01453 per vCPU hour |
| Memory | $0.007265 per GiB hour |
Template base (2 vCPU, 512 MiB) | about $0.0327 an hour |
Template code-interpreter-v1 (2 vCPU, 2 GiB) | about $0.0436 an hour |
The developer documentation has the details and more examples. A sandbox that never started running is not charged.
Settlement invoices
Your usage is added up and charged on settlement invoices, which you find in the client area under Billing > My Invoices and in the console. A settlement invoice has one line, "CoAI Sandbox usage" with its period, and is issued:
- when your usage that has not been invoiced yet reaches $10;
- before our daily billing run, when a renewal of another of your services is about to be invoiced (so that the renewal and your sandbox usage do not compete for the same credit at the last moment), from $1;
- at the start of each month, from $1;
- when you end CoAI Sandbox, for any amount from one cent.
Smaller amounts, and fractions of a cent, are carried over to the next settlement invoice. Settlement invoices are not emailed when they are issued; the console shows them.
How a settlement invoice is paid
- Your account credit is applied to it automatically when it is issued. Usually that pays it in full.
- If your credit does not cover it, the rest is due 3 days later. On the due date a saved card is charged automatically, as for your other invoices. You can also pay it yourself in the client area before then.
- If you add funds while a settlement invoice is unpaid, we apply the new credit to it for you, but we keep back what your other services need for renewals that are about to be invoiced (within the next 48 hours).
Reminders and overdue notices are sent for unpaid settlement invoices, like for other invoices. While a settlement invoice is unpaid, its amount counts as used, so you may not be able to create new sandboxes until it is paid.
Adding funds
Add funds in the client area under Billing > Add Funds, as described in "Add Funds and account credit". Each deposit is between $10 and $300, and the maximum balance is $1,000.
One balance for all of your services
Your balance pays the invoices of all of your services. Renewal invoices of your CoAI NAT, CoAI VPS and CoAI Agent services use the credit automatically when they are issued, 7 days before their due date, and they can use it before your sandbox usage is invoiced. Keep enough credit for both, or keep a card saved for what the credit does not cover.
When the balance runs out
- Creating a sandbox is refused with "Insufficient balance" (HTTP 402) when your balance, less what is kept back for the unpaid invoices of your other services and for their renewals that are about to be invoiced, plus your welcome credit, does not cover your unpaid usage and the new sandbox. The message links to Add Funds.
- Running sandboxes are stopped about a minute after your balance runs out. The console and an email notice tell you which.
- If our billing system cannot be reached for a while, creating a sandbox can be refused with "Billing is temporarily unavailable" (HTTP 503); the SDK retries it (waiting about a minute each time, so it can take about 3 minutes before your program sees the error), and running sandboxes are not stopped for that reason.
Refunds and disputes
CoAI Sandbox usage is not refunded. If a settlement invoice is canceled before it was paid, the usage stays due and is invoiced again later. If you think a settlement invoice is wrong, please open a support ticket before disputing a payment with your bank: a disputed or charged-back payment freezes your CoAI Sandbox account until it is settled.