Generative AI
Making API Requests for Generative AI Results
2min
all of the elevateai generative ai api endpoints use a similar format, leveraging the unique interactionidentifier returned upon successfully declaring the audio https //docs elevateai com/tutorials/declare an audio interaction , transcript https //docs elevateai com/tutorials/declare a transcript , or chat https //docs elevateai com/tutorials/declare a chat interaction interaction when the desired get 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 docid\ ol6 woanmvfyubwezq8rp 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 general request format retryable responses 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