Check your API, you can try to generate Image to get the error message the API is correctly configured, so that cannot be the issue