Add support to set the API key from the environment variable