In order to start generating images via API, create a reusable image template first and then make API requests with custom parameters to customize your image. You can change text, images and appearance of the generated image.
Add a text element to your image template and then add text to image by sending API request with custom value for this text element.
Use REST API client of your choice and authenticate your requests using API key. The API key can be found on your account page.