Radom
December 16, 2025, 10:02am
1
On lesson Lesson 5: Tool Calling with Pydantic Models and OpenAI, I cannot submit cell #10 due to a bad API key
ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'API key expired. Please renew the API key.', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': '``type.googleapis.com/google.rpc.ErrorInfo``', 'reason': 'API_KEY_INVALID', 'domain': '``googleapis.com``', 'metadata': {'service': '``generativelanguage.googleapis.com``'}}, {'@type': '``type.googleapis.com/google.rpc.LocalizedMessage``', 'locale': 'en-US', 'message': 'API key expired. Please renew the API key.'}]}}
1 Like
is this error while running in the course provided platform? Also can I know in which platform are you doing the course
Radom
December 16, 2025, 1:21pm
3
Yes, the error happens when using the deeplearning.ai platform. This is the URL (removed the host as I can’t insert links here) courses/pydantic-for-llm-workflows/lesson/kqf4l/tool-calling
@lesly.zerna
could you please look into this.
Thank you for reporting! I think this is what you are referring to…
I’ll check it out with the team!
1 Like
Updates: we’re updating API Keys to the LLMs to fix the issue!
You will see the fixes reflected once the notebooks are re uploaded to the platform!
Thanks again @Radom for reporting!
1 Like
The fixed is updated in the platform now! Thank you again @Radom for reporting!
1 Like