
TypingMind×
DeepInfraHow to use Kimi K2 from DeepInfra with API Key on TypingMind
Learn how to access and use Kimi K2 with your DeepInfra API key through TypingMind. Get started with this powerful AI model in minutes.
DeepInfra is a cloud inference platform providing fast and cost-effective access to a wide range of open-source AI models including Llama, Mistral, DeepSeek, and more through an OpenAI-compatible API.
Key features include serverless inference with pay-per-token pricing, support for text generation, embeddings, and image models, low-latency responses powered by optimized GPU infrastructure, and easy integration with any OpenAI-compatible client or SDK.
Official Documentation: https://deepinfra.com/models
Kimi K2 Overview
| Model Name | Kimi K2 |
| Provider | DeepInfra |
| Model ID | moonshotai/Kimi-K2-Instruct |
| Release Date | Jul 11, 2025 |
| Last Updated | Jul 11, 2025 |
| Knowledge Cutoff | 2024-10 |
| Context Window | 131,072 tokens |
| Max Output | 32,768 tokens |
| Pricing /1M tokens | $0.5 input $2 output |
| Input Modalities | text |
| Output Modalities | text |
| Capabilities | Tool CallingTemperature ControlOpen Weights |
Complete Setup Guide
Get Your DeepInfra API Key
First, you'll need to obtain an API key from DeepInfra. This key allows you to access their AI models directly and pay only for what you use.
- Visit DeepInfra's API console
- Sign up or log in to your account
- Navigate to the API keys section
- Generate a new API key (copy it immediately as some providers only show it once)
- Save your API key in a secure password manager or encrypted note
⚠️ Important: Keep your API key secure and never share it publicly. Store it safely as you'll need it to connect with TypingMind.
Configure TypingMind with DeepInfra API Key
- Open TypingMind in your browser
- Click the "Settings" icon (gear symbol)
- Navigate to "Models" section
- Click "Add Custom Model"
- Fill in the model information:Name:
moonshotai/Kimi-K2-Instruct via DeepInfra(or your preferred name)Endpoint:https://api.deepinfra.com/v1/chat/completionsModel ID:moonshotai/Kimi-K2-InstructContext Length: Enter the model's context window (e.g., 131072 for moonshotai/Kimi-K2-Instruct)
moonshotai/Kimi-K2-Instructhttps://api.deepinfra.com/v1/chat/completionsmoonshotai/Kimi-K2-Instruct via DeepInfrahttps://www.typingmind.com/model-logo.webp131072 - Add custom headers by clicking "Add Custom Headers" in the Advanced Settings section:Authorization:
Bearer <DEEPINFRA_API_KEY>:X-Title:typingmind.comHTTP-Referer:https://www.typingmind.com - Enable "Support Plugins (via OpenAI Functions)" if the model supports the "functions" or "tool_calls" parameter, or enable "Support OpenAI Vision" if the model supports vision.
- Click "Test" to verify the configuration
- If you see "Nice, the endpoint is working!", click "Add Model"
Start chatting with Kimi K2
Now you can start chatting with Kimi K2 through TypingMind:
- Select Kimi K2 from the model dropdown menu
- Start typing your message in the chat input
- Enjoy faster responses and better features than the official interface
- Switch between different AI models as needed

moonshotai/Kimi-K2-Instruct
💡 Pro tips for better results:
- Use specific, detailed prompts for better responses (How to use Prompt Library)
- Create AI agents with custom instructions for repeated tasks (How to create AI Agents)
- Use plugins to extend Kimi K2 capabilities (How to use plugins)
Frequently Asked Questions
Do I need a subscription to use Kimi K2?
No! With DeepInfra API, you pay only for what you use with no monthly subscription. Add credits to your DeepInfra account and pay as you go. TypingMind is also a one-time purchase, not a subscription.
How much will it cost to use Kimi K2?
Kimi K2 costs $0.5/1M input tokens and $2/1M output tokens. A typical conversation might cost $0.01-0.10 depending on length.
Can I use other models besides Kimi K2?
Yes! With DeepInfra API + TypingMind, you can access all DeepInfra models. Switch between them instantly in TypingMind.
Is my data private and secure?
Yes! TypingMind stores conversations locally (web version in browser, desktop version on your device). DeepInfra handles API calls securely. Check DeepInfra's data policy for specifics.
Can I use Kimi K2 for commercial projects?
Yes! Check DeepInfra's terms of service for specific commercial use policies. TypingMind supports commercial use.











