There are a number of variations to this question but feel free to answer whichever based on your own experience. Some examples:<p>1) Stripe: showing the code being animated in an IDE with the response https://stripe.com/<p>2) OpenAI: code that you can copy-paste https://openai.com/api/<p>Some folks make snappy video demos, other more interactive things. What do you do and how do you do it (e.g. tools, process)?
Depending on the nature of the API, you could wrap it in a react component (if that's likely what users would do), and then embed it onto your landing page so that people could interact with it.