Kimi K2.7 Code
Model Information
Display Name: Kimi K2.7 Code
API Model ID: moonshotai/kimi-k2.7-code
Category: Image To Text
Description: Kimi K2.7 Code is Moonshot AI's premier coding model, designed for extended-context programming challenges with enhanced success rates. Built on the K2 Mixture-of-Experts architecture with long thinking and deep reasoning. **Key Features:** - 262K token context window for large codebases - Multimodal: text, image and video input - Long thinking and deep reasoning mode - Function/tool calling - JSON mode and partial mode for structured outputs - Automatic context caching (cheaper cache-hit input pricing) **Best For:** - Code generation and software engineering - Long-horizon agentic coding tasks - Large-codebase analysis and refactoring - Agent and dialogue workloads
Context Window: 262,144 tokens
Max Output: 32,768 tokens
How to Use This Model
To use Kimi K2.7 Code via the HInow.ai API, use the model ID: moonshotai/kimi-k2.7-code
API Request Example (Chat/Text)
POST https://api.hinow.ai/v1/chat/completions
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"model": "moonshotai/kimi-k2.7-code",
"messages": [
{"role": "user", "content": "Your message here"}
]
}
API Request Example (Image Generation)
POST https://api.hinow.ai/v1/images
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"model": "moonshotai/kimi-k2.7-code",
"prompt": "Your image description here"
}
Pricing
- input: $1.33
- output: $5.60
- cached: $0.266
Available Parameters
- temperature: Controls randomness (0-2). Default: 0.7 (Options: 0, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0)
- top_p: Nucleus sampling (0-1). Default: 0.9 (Options: 0.1, 0.5, 0.7, 0.9, 0.95, 1.0)
- max_tokens: Max tokens to generate (1-32768) (Options: 512, 1024, 2048, 4096, 8192, 16384, 32768)
- response_format: Output format (Options: text, json_object, json_schema)
- stop: Up to 4 sequences where the API stops generating further tokens
- thinking: Chain-of-thought reasoning. Default: off (Options: on, off)
- reasoning_effort: Thinking budget when reasoning is on (Options: low, medium, high)
Quick Reference
To use this model, set: "model": "moonshotai/kimi-k2.7-code"
Featured: No
Documentation: https://hinow.ai/models/moonshotai/kimi-k2.7-code
API Endpoint: https://api.hinow.ai/v1



