#3135 openai.NotFoundError: Error code: 404 - {'error': {'message': 'No endpoints found for moonshotai/kimi-k2:free.', 'code':

155.117* Posted at: 10 days ago 👁83

Requested resource not found, check model name or API address Error code: 404 - {'error': {'message': 'No endpoints found for moonshotai/kimi-k2:free.', 'code': 404}, 'user_id': 'user_37c1SoKwqGKF0rtvMe2RbTmJNR8'}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 970, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, 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 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openrouter.py", line 58, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.NotFoundError: Error code: 404 - {'error': {'message': 'No endpoints found for moonshotai/kimi-k2:free.', 'code': 404}, 'user_id': 'user_37c1SoKwqGKF0rtvMe2RbTmJNR8'}


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:en
root_dir:C:/Users/Hepta/AppData/Local/Temp/Rar$EXa8440.49179.rartemp

1 Replies

This error indicates that the translation channel (OpenAI-compatible API) you are using cannot find the specified model. The API server (likely OpenRouter) reports that the model endpoint moonshotai/kimi-k2:free does not exist.

Solution:

  1. Verify the model name: In the translation channel settings (e.g., OpenAI/Compatible Interface), check the "Model" field. The error suggests the model moonshotai/kimi-k2:free is incorrect or unavailable.
  2. Use a correct model name: For OpenRouter, you should use a valid model name from their platform. Try a common model like moonshot-v1-8k or moonshot-v1-32k for Kimi. Alternatively, you can use other models like deepseek-chat or gpt-4o.
  3. Check API address and key: Ensure your API URL (e.g., https://openrouter.ai/api/v1) and API Key are correctly entered.
  4. Test connection: After correcting the model name, use the "Test Connection" button in the translation settings to verify it works.

Please refer to the relevant documentation:

Post Your Reply