Moonshot: Kimi K2.6

kimi-k2.6
chatMoonshot

Quick Reference

Input
Text, Image
Output
Text
Context
262K
Max Output
16.4K
Input Price
$0.96/M
Output Price
$3.97/M
Author
Moonshot AI
Version
main
Open Source
No

Overview

kimi-k2.6 is Kimi's latest and most intelligent model, with stronger and more stable long-horizon code authoring, and significantly improved instruction following and self-correction. It supports text, image, and video input, thinking and non-thinking modes, and both conversational and Agent tasks.

Input modalities

TextImage

Output modalities

Text

Capabilities

chatreasoningvision

Features

Function Calling
Structured Output
Caching
Batch Processing
Web Search

Pricing

Per-token prices for Moonshot: Kimi K2.6.

Token TypePriceUnit
Input$0.96/Mper million tokens
Output$3.97/Mper million tokens
Cache Read$0.1/Mper million tokens

Specifications

Context Window

262Ktokens

Max Input

246Ktokens

Max Output

16.4Ktokens

API Reference

OpenAI-compatible endpoint at https://api.inferoute.ai/v1.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inferoute.ai/v1",
    api_key=os.environ.get("INFEROUTE_API_KEY"),
)

try:
    response = client.chat.completions.create(
        model="kimi-k2.6",
        messages=[
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Write a haiku about recursion."},
        ],
        max_tokens=512,
        temperature=0.7,
    )

    print(response.choices[0].message.content)
except Exception as e:
    print(f"Error: {e}")