If I pull the docker image of NIM to my local computer. When I do API call to my server, will it cost my credit?
No, this will not cost any credits
Confused about the API key in docker run options.
It should not matter whether your personal key was generated in the control panel on build.nvidia.com or on NGC. For example, if you’d like to generate one via NGC, go to the NGC Personal Key Manager, and select Generate Personal Key
You cannot set the NGC_API_KEY variable to something like 111111 yourself. Instead, once you have your personal key generated, use it as the password when running docker login nvcr.io. Then, set the environment variable NGC_API_KEY to your personal key (it should be a string starting with nvapi-). This environment variable will be used inside the NIM container.
Then, you should be able to run the docker run command successfully.
Let me know if this solves your issue and if you have any more questions!