You can visit https://platform.moonshot.cn/console/api-keys to get api key. When you use kimi or kimi-file first time, will prompt you to set api key.