Read api_key from environment variable.