Making API Requests for Generative AI Results
All of the ElevateAI Generative AI API Endpoints use a similar format, leveraging the unique interactionIdentifier returned upon successfully declaring the audio, transcript, or chat interaction.
When the desired GET request* successfully executes, an HTTP status is returned to indicate the request was successful, along with a JSON response providing details specific to that endpoint. Details specific to an individual endpoint are covered on the Generative AI API Endpoint Details page.
* All endpoints support a GET method. The Ask ElevateAI endpoint supports both POST and GET methods. See the documentation for that endpoint for details.
Following is the general request format to be used for all of the Generative AI API requests:
The following response codes leave the interaction endpoint in a retryable state. Calling code should handle these responses gracefully and retry appropriately.
Response | Message | Meaning |
---|---|---|
408 | RequestTimeout | The Generative AI model was not able to respond in an acceptable amount of time. |
429 | TooManyRequests | By default, each account is allowed up to 10 simultaneous Generative AI requests at one time. This response indicates that more than 10 are being attempted. |