Rest API / Pass diagram as query parameter

There is a way that we can query param at dbdiagram eg: https://dbdiagram.io/d?q=Table customer …,
and load at the beginning?
or has a API to generate this diagram exported as pdf ?

I’m creating a command line that generate diagram and open dbdiagram.io/d with the model loaded.

Hi Cristian, I’m Bong from dbdiagram team. We have added your request in our roadmap. However, our visualization is still not good enough so sometimes you have to manually drag them to make all the relationship lines visible. So we will work on improving the visualization first and then we will try to expose the API later.
Thanks for your feedback!