problems connecting with API

Hi,
I am repeatedly getting this error message:
bioblend.ConnectionError: GET: error 401: b'{"err_msg":"Provided API key is not valid.","err_code":401001}', 0 attempts left: {"err_msg":"Provided API key is not valid.","err_code":401001}
Even though I generate a new API and do it , yet the error persists.
Kindly help.