Dynamically create d1 instance


I am wondering if possible to dynamically create d1 databases and bind them to a worker or page fonction.
My typical use case would be to create a d1 base for each user of a saas product, which will natively enable multitenancy and allow great data isolation.

Is there some API for this use case or would it be not recommanded at all ?

Tanks for your answers