Set API key when initializing