functions: Set API key as variable