Tool calling with Moonshot's Kimi K2 mode
Moonshot's new Kimi 2 model is extremely inexpensive to use. Moonshot AI (月之暗面) is a prominent Chinese artificial intelligence startup focused on developing large language models with the long-term goal of achieving Artificial General Intelligence (AGI). The company gained significant recognition for its Kimi chatbot, which pioneered an exceptionally large context window capable of processing up to two million Chinese characters in a single prompt. Backed by major investors like Alibaba, Moonshot AI has quickly become one of China's most valuable AI unicorns and a key competitor in the global AI race. November 14, 2025 update: the code below is Python. I have more up to date Common Lisp examples using Kimi K2 here: https://leanpub.com/lovinglisp/read#leanpub-auto-moonshots-kimi-k2-model The release of Kimi 2 last week has been referred to as "another DeepSeek moment." You need a Moonshot API access key from https://platform.moonshot.ai/console/account The direct AP...