Question on a a Custom Component in a Next JS App

Is it possible to create “live” form on a plasmic site that returns something from an api?

I’d like to allow users to complete a form and then hit a button. The button would submit their inputs to my server api endpoint which would return an image or link. I’d then like to display that image back to the user on the plasmic site.

Is this possible? I’be got plasmic running and integrated with my NextJS site.

I’m getting lost in creating a interactive custom component.