The Elai API will return error responses on invalid requests. Each response will include an error code and a message.

"responses": {
  "400": {
    "description": "Bad request"
  },
  "401": {
    "description": "Not authorized"
  },
  "402": {
    "description": "Not enough minutes left in the current tariff plan"
  },
  "404": {
    "description": "Not found"
  },
  "500": {
    "description": "Internal error"
  }
}

Each error request should return a body with a message:

{"message":"Slide 1 is too long. Please limit speech to 60s for this avatar."}