Moonshot (Kimi)
Long context models with document analysis and web search capabilities.
Overview
Moonshot AI (月之暗面) is a Chinese AI company focused on developing large language models with exceptional long-context understanding capabilities.
Official Website: https://www.moonshot.cn API Documentation: https://platform.moonshot.ai/docs
Key Features
- Long Context — Very large context windows
- Document Analysis — PDF, Word, and other formats
- Web Search — Built-in web search integration
- Enhanced Reasoning — Strong logical and mathematical capabilities
- Bilingual — Excellent Chinese and English performance
Usage Example
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.yuhuanstudio.com/v1"
)
response = client.chat.completions.create(
model="model-id",
messages=[{"role": "user", "content": "你好!"}]
)
print(response.choices[0].message.content)Available Models
Use the Models API to query available models:
curl https://api.yuhuanstudio.com/v1/models?provider=moonshot \
-H "Authorization: Bearer YOUR_API_KEY"Models and pricing are synced automatically. Check the dashboard for current availability and rates.
Official Resources
How is this guide?