Setup a Form with API

Hi everyone,

I am trying to setup a simple form in WordPress where users can submit text in a field, and the output can be shown based on the API.

I have looked at the API I can use to get the info ( but can anyone guide me on how to connect the API with the form to show the output in real-time?

Like how to configure the API with the form submit button to fetch the input from the field and display the output.

Example: I want to build a tool like this one:

And is this possible with any of the form plugins like WP Forms, Fluent forms, etc.