Additional steps required here. You have to create a variable (in Flowise) with name apiKey of type runtime and in the Agents Configuration, in Security, enable Override Configuration and then enable the apiKey variable override.