Dynamic Open Graph Image Generator

hello,

I want to use below service as a Dynamic Open Graph Image Generator.

So i need to add a code in head that create a url ending with topic url automatically.

example url;

<meta property="og:image" content="https://ogimage.brixyazilim.com/api/og?url=https://fstdesk.com/t/how-to-produce-invert-sugar-syrup-from-beet-sugar/12825" />


Can i do this with a code like this?

<meta property="og:image" content="https://ogimage.brixyazilim.com/api/og?url=**something**" /**>

Is there way to this.

Thank you in advance.