#4240 ValueError: Missing key inputs argument! To use the Google AI API, provide (`api_key`) arguments. To use the Google Clou

2a02:842a* Posted at: 2 hours ago 👁6

Missing key inputs argument! To use the Google AI API, provide (api_key) arguments. To use the Google Cloud API, provide (vertexai, project & location) arguments.:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 1029, in run
File "videotrans\translator\_base.py", line 100, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 46, in _item_task
File "google\genai\client.py", line 395, in init
File "google\genai\client.py", line 443, in _get_api_client
File "google\genai\_api_client.py", line 683, in init
ValueError: Missing key inputs argument! To use the Google AI API, provide (api_key) arguments. To use the Google Cloud API, provide (vertexai, project & location) arguments.


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:en
root_dir:C:/Users/Utilisateur/Downloads/win-pyvideotrans-v3.99-420

1 Replies

This error means the Google Gemini translation API key has not been filled in correctly in the software settings.

  1. Open Menu -> Translation Settings -> find the Google Gemini configuration panel.
  2. Ensure your API key is correctly entered in the API Key field, with no extra spaces.
  3. If you are using a custom endpoint, make sure the API URL is also filled in correctly.
  4. After saving, restart the translation task.

Please refer to the related documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource