Moonshot AI: How to access Kimi large model?
Overview
Kimi has been out for a while, and the appearance of Kimi's large model has made the domestic AIGC circle quite lively. I have always wanted to integrate Kimi, but I have not been able to do it recently. It was because a customer bought my AI SEO CN version plug-in a few days ago that I added Kimi to my AI SEO CN version WordPress plug-in in the past two days, so that customers can choose the appropriate large model to generate articles in batches.
Later, I also plan to integrate the Kimi model into my WordPress AI Writer plug-in.
What is Moonshot AI?
Moonshot AI is the company that made the Kimi model. Chinese name: Moon’s Dark Side Technology Co., Ltd.
Official website: https://www.moonshot.cn/
What is the Kimi Big Model?
Kimi is a large language model. Try it out: https://kimi.moonshot.cn/
What are the advantages of Kimi's large model?
Compared with other large models, Kimi's biggest advantage is long text input and output. It currently supports up to 200,000 words of input and output. As of now, it is in internal testing of 2 million words of input and output.
Register and obtain an API key
1. Register an account on the moonshot open platform
Website: https://platform.moonshot.cn/
2. Create an API key
Go to "User Center->API Key Management" and create an API key.
Access to Kimi large model
1. Interface URL
https://api.moonshot.cn/v1/chat/completions
2. Request data format example (PHP)
$data = [ "model" => $model, "messages" => [ ["role" => "user", "content" => $text] ], "temperature" => 0.3 ];
The $ model options are: moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k. The difference between these models is the maximum context length.
3. Setting request headers
[ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer '.$api_key ]
Kimi Price
1. Price
Model | unit of charging | price |
---|---|---|
moonshot-v1-8k | 1M tokens | ¥12.00 |
moonshot-v1-32k | 1M tokens | ¥24.00 |
moonshot-v1-128k | 1M tokens | ¥60.00 |
2. Levels and Restrictions
user level | Cumulative recharge amount | concurrent | RPM | TPM | TPD |
---|---|---|---|---|---|
Free | ¥ 0 | 1 | 3 | 32,000 | 1,500,000 |
Tier 1 | ¥ 50 | 50 | 200 | 128,000 | 10,000,000 |
Tier2 | ¥ 100 | 100 | 500 | 128,000 | 20,000,000 |
Tier 3 | ¥ 500 | 200 | 5,000 | 384,000 | Unlimited |
Tier 4 | ¥ 5,000 | 400 | 5,000 | 768,000 | Unlimited |
Tier 5 | ¥ 20,000 | 1,000 | 10,000 | 2,000,000 | Unlimited |
Summarize
Among the many large models in China, Kimi is pretty good, and it is relatively easy to integrate into your own applications.