## Specs & substance

### Spec sheet

- **Developed by**: Moonshot  
- **Model family**: Kimi  
- **Category**: coding  
- **Modality**: Text  
- **Context window**: 256K tokens  
- **Architecture**: MoE  
- **Version**: K2.7 Code  
- **License**: Modified MIT  
- **Pricing**: $0.75 in $3.50 out · $0.16 cache  
- **Released**: May 2026  
- **Endpoint**: parasail-kimi-k27-code

Specialized coding model optimized for software engineering and agentic coding workflows.

Kimi K2.7 Code is part of the Kimi family by Moonshot, categorized as a **coding** model. It supports a 256K tokens context window and is built on a MoE architecture.

Key strengths: coding, agentic. Parasail serves Kimi K2.7 Code on a global fleet of current-gen GPUs behind a single OpenAI-compatible endpoint — with per-token pricing, no minimums, and dedicated capacity options when you need guaranteed throughput.

## Integrate

### Drop-in via the OpenAI SDK

Point any OpenAI-compatible chat client at Parasail and change the model name. That's it.

#### Python
```python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.parasail.io/v1"
)

response = client.chat.completions.create(
    model="parasail-kimi-k27-code",
    messages=[\
        {"role": "user", "content": "Hello, what can you do?"}\
    ],
    stream=True,
    stream_options={"include_usage": True},
    top_p=1,
    max_tokens=1000,
    temperature=1
)

for chunk in response:
    if chunk.choices and chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="", flush=True)
```

#### Bash
```bash
curl https://api.parasail.io/v1/chat/completions \
  -H "Authorization: Bearer $PARASAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "parasail-kimi-k27-code",
    "messages": [{"role": "user", "content": "Hello, what can you do?"}],
    "stream": true,
    "max_tokens": 1000
  }'
```
