Unable to execute MOLMIM - Payment Required

Hi, I’m trying to run the official MolMIM container from NGC using the following command: docker run --rm -it --name molmim --runtime=nvidia -e CUDA_VISIBLE_DEVICES=0 -e NGC_CLI_API_KEY='MY_KEY' -p 8000:8000 nvcr.io/nim/nvidia/molmim:1.0.0. The container starts correctly, but when it tries to download the model molmim:1.3, I get the following error: Client Error: 402 Response: Payment Required. I’ve checked that my NGC API key is valid and active. Is there a special subscription or permission required to access this model version? Any help would be appreciated.

(base) ivan@personal:~/Desktop$ docker run --rm -it --name molmim --runtime=nvidia -e CUDA_VISIBLE_DEVICES=0 -e NGC_CLI_API_KEY='MY_KEY' -p 8000:8000 nvcr.io/nim/nvidia/molmim:1.0.0

=============
== PyTorch ==
=============

NVIDIA Release 23.10 (build 71422337)
PyTorch Version 2.1.0a0+32f93b1

Container image Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

Copyright (c) 2014-2023 Facebook Inc.
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
Copyright (c) 2012-2014 Deepmind Technologies    (Koray Kavukcuoglu)
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
Copyright (c) 2011-2013 NYU                      (Clement Farabet)
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
Copyright (c) 2006      Idiap Research Institute (Samy Bengio)
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
Copyright (c) 2015      Google Inc.
Copyright (c) 2015      Yangqing Jia
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.

Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

NOTE: The SHMEM allocation limit is set to the default of 64MB.  This may be
   insufficient for PyTorch.  NVIDIA recommends the use of the following flags:
   docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 ...

{"timestamp": "2025-05-07 08:51:10,143", "level": "INFO", "message": "NIM VERSION:"}
1.0.0
{"timestamp": "2025-05-07 08:51:10,144", "level": "INFO", "message": "NIM LICENSE:"}
GOVERNING TERMS: The NIM container is governed by the NVIDIA Software License Agreement (found at https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-software-license-agreement/) the Product-Specific Terms for NVIDIA AI Products (found at https://www.nvidia.com/en-us/agreements/enterprise-software/product-specific-terms-for-ai-products/); and the use of this model is governed by the AI Foundation Models Community License Agreement (found at https://docs.nvidia.com/ai-foundation-models-community-license.pdf).

Included third-party software licenses are documented in the “molmim_third_party.txt” file found in this directory.

{"timestamp": "2025-05-07 08:51:10,146", "level": "INFO", "message": "Using model config profile ID 'MolMIM'"}
{"timestamp": "2025-05-07 08:51:10,879", "level": "INFO", "message": "Initializing NGC SDK client with NGC org 0698663906618688"}
{"timestamp": "2025-05-07 08:51:11,585", "level": "INFO", "message": "Creating model store at /home/nvs/.cache/nim"}
{"timestamp": "2025-05-07 08:51:11,587", "level": "INFO", "message": "Downloading model to: /home/nvs/.cache/nim/models/molmim_v1.3"}
{"timestamp": "2025-05-07 08:51:11,587", "level": "INFO", "message": "Downloading model 'nim/nvidia/molmim:1.3' from NGC to /home/nvs/.cache/nim/models/"}
{"timestamp": "2025-05-07 08:51:12,677", "level": "ERROR", "message": "Model=nim/nvidia/molmim:1.3 download failed: Client Error: 402 Response: Payment Required - Request Id: 053554cc-96767 Url: https://api.ngc.nvidia.com/v2/org/nim/team/nvidia/models/molmim/versions/1.3"}
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/utils.py", line 47, in raise_for_status
    response.raise_for_status()
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 402 Client Error: Payment Required for url: https://api.ngc.nvidia.com/v2/org/nim/team/nvidia/models/molmim/versions/1.3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/start_server", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/nimlib/start_server.py", line 49, in main
    nimutils.download_models()
  File "/usr/local/lib/python3.10/dist-packages/nimlib/nimutils.py", line 34, in download_models
    mm.download_models()
  File "/usr/local/lib/python3.10/dist-packages/nimlib/model_manifest.py", line 160, in download_models
    self.download_ngc_model(src=src, dest=dest)
  File "/usr/local/lib/python3.10/dist-packages/nimlib/model_manifest.py", line 144, in download_ngc_model
    self.ngc_client.download_model(uri=src, dest=full_dest_path)
  File "/usr/local/lib/python3.10/dist-packages/nimlib/ngc/client.py", line 90, in download_model
    return self.client.registry.model.download_version(target=uri, destination=dest)
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/util/utils.py", line 540, in wrapper
    retval = func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/registry/api/models.py", line 110, in download_version
    version_resp = self.get_version(mrt.org, mrt.team, mrt.name, mrt.version)
  File "/usr/local/lib/python3.10/dist-packages/registry/api/models.py", line 770, in get_version
    resp = self.connection.make_api_request(
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/connection.py", line 164, in make_api_request
    return self._parse_api_response(
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/connection.py", line 480, in _parse_api_response
    return self._result(response, is_json=json_response, return_content=return_content)
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/connection.py", line 497, in _result
    rest_utils.raise_for_status(response)
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/utils.py", line 51, in raise_for_status
    raise create_api_error_from_http_exception(e) from None
  File "/usr/local/lib/python3.10/dist-packages/ngcbpc/api/utils.py", line 78, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation, status_code=response.status_code)
ngcbpc.errors.NgcAPIError: Client Error: 402 Response: Payment Required - Request Id: 053554cc-96767 Url: https://api.ngc.nvidia.com/v2/org/nim/team/nvidia/models/molmim/versions/1.3

Hi @ivangarcia1,

the MolMIM | NVIDIA NGC container is only available to those with an active NVIDIA AI Enterprise subscription or active trial.

You can check what programs are required to use a NIM by looking at the ‘Associated Products’ section of the container listing in the NGC Catalogue.

Best,

Sophie