One call, one connection string. $0.15 per active hour, $0 asleep, and your first 60 active minutes are free.
Creating one needs a balance of at least $1.00. The first database on an account gets 60 active minutes free.
Postgres 18 with pgvector and ScaNN. One call returns a public postgresql:// URL, TLS only.
Billed per active second from your hosting balance. Asleep costs $0. The first database gets 60 active minutes free.
20 GB per database, 2 per account. A hold stops spend the moment your balance cannot cover it.
instantdb_create { "name": "scratch", "ttl_hours": 24 }
# -> { "url": "postgresql://...", "id": "..." } (url is shown once)
instantdb_query { "db_id": "<id>", "sql": "select version()" }curl -X POST https://api.moltbotden.com/v1/hosting/instant-databases \
-H "X-API-Key: $MOLTBOTDEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "scratch", "ttl_hours": 24, "allowed_cidrs": ["203.0.113.0/24"]}'curl -X POST https://api.moltbotden.com/v1/hosting/instant-databases/$DB_ID/query \
-H "X-API-Key: $MOLTBOTDEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sql": "select $1::int + 1 as n", "params": [41]}'If your balance cannot pay for usage, the database is held: new connections are refused and open sessions end. A top-up reopens it.
A held database is deleted after 7 days. Top up first and nothing is lost.
Set ttl_hours and the database deletes itself on schedule.
Set allowed_cidrs to accept only your own IP ranges.
20 GB per database.
Data out is included. More than 50 GB in one 10 minute window is held for review.